Monday, July 1, 2013

ZFS Replacing Disk

[stor] ~> zpool status | more
pool: mpool
state: DEGRADED
status: One or more devices has been removed by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using 'zpool online' or replace the device with
'zpool replace'.
scan: resilvered 985G in 9h47m with 0 errors on Tue Apr 2 07:22:02 2013
config:
NAME STATE READ WRITE CKSUM
mpool DEGRADED 0 0 0
mirror-0 ONLINE 0 0 0
gpt/disk0 ONLINE 0 0 0
gpt/disk8 ONLINE 0 0 0
gpt/disk16 ONLINE 0 0 0
mirror-1 DEGRADED 0 0 0
gpt/disk1 ONLINE 0 0 0
15215693814556243 REMOVED 0 0 0 was /dev/gpt/disk9


Down-down-down... lucky only single disk has failed.
stor# gpart create -s gpt da9stor# gpart add -s 3907029101 -t freebsd-zfs -l disk9 da9stor# zpool replace mpool /dev/gpt/disk9 /dev/gpt/disk9stor# zpool status|more

pool: mpool
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Jul 1 11:11:19 2013
1.12G scanned out of 7.49T at 46.1M/s, 47h20m to go
152M resilvered, 0.01% done
config:

mirror-1 DEGRADED 0 0 0
gpt/disk1 ONLINE 0 0 0
replacing-1 REMOVED 0 0 0
15215693814556243 REMOVED 0 0 0 was /dev/gpt/disk9/old
gpt/disk9 ONLINE 0 0 0 (resilvering)
gpt/disk17 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0



Sunday, April 14, 2013

CVS is Deprecated for FreeBSD Ports

Please update your csup.conf remove ports from cvs/cvsup, new tools is portsnap (i dunno it will eat more bandwidth or not). Here is the announcement:

Hi,

As announced in September the ports tree will no longer be exported to
CVS after February 28th 2013. All users who still use CVS, CVSup or csup
to update the ports tree are encouraged to switch to portsnap(8) or for
users which need more control over their ports collection to use
Subversion directly [1].

A migration guide from CVSup/csup to portsnap is also available in the
FreeBSD handbook [2].

More information regarding the end of ports CVS can be found in the
initial announcement [3].

Beat, on behalf of portmgr@

Thursday, February 7, 2013

My First TIme Using MacBook

How to replace Hostname/ComputerName ?

Apropos hostname didn't show any thing about how to replace hostname. Then try other command, i'm usually using man when seeking manual on BSD Unix & Linux, and from man  i got other command  scutil(8)., aha a new command. What is scutil?  From manual page give me information about scutil (Manage system configuration parameters). 

Now how to replace ComputerName & Hostname? :

$sudo scutil --set ComputerName Monyet
$sudo scutil --set LocalHostName Monyet
$sudo scutil --set HostName Monyet