I've just received notifications from smartd that one disk in a hp n36 has uncorrectable errors.
zpool status shows no problems (yet).
Looking through the documentation for 8.0.3 shows in chapter 6.3.9 "Replacing a failed drive"
that i should use the GUI to detatch the failed disk, then by using shell commands:
swapoff ( i don't care since i don't swap) and then
zpool offline <the failed disk>
at this point swap drives ( i do not have any spare slots so i have to physically remove the old drive
before installing the new )
with the new drive use gpart -create -s gpt <i suppose i use ada0 here ?Thats the disk i replace)
btw the old disk shows with gpart show ada0:
[root@fnas] ~# gpart show ada0
=> 34 1953525101 ada0 GPT (932G)
34 94 - free - (47K)
128 1953525007 1 freebsd-zfs (932G)
i see 2 partitions, one swap of 94 bytes and one with 1953525007 bytes of type freebsd-zfs.
Thus i guess that the gpart command would be : ( right ?)
gpart add -b 34 -s 94 -t freebsd-swap ada0
gpart add -t freebsd-zfs ada0
finally, still in a shell, i do :
zpool replace <pool> ada0p2
zpool detach <pool> ada0p2/old
HOWEVER, in the same documentation 10.8.4 How do I replace a bad drive?
the procedure is to power down, physically replace the disk, and
zpool replace <pool> ada0
( wait for resilver to finish )
zpool detach <pool> ada0/old
zpool export <pool>
and finally in the GUI Storage -> Volumes -> Auto Import
I'm not unfamiliar doing the whole process in freebsd/sunkos, but then i had spare slots and
no GUI to care for. Whats the recommended procedure in freenas 8.0.3 ?
zpool status shows no problems (yet).
Looking through the documentation for 8.0.3 shows in chapter 6.3.9 "Replacing a failed drive"
that i should use the GUI to detatch the failed disk, then by using shell commands:
swapoff ( i don't care since i don't swap) and then
zpool offline <the failed disk>
at this point swap drives ( i do not have any spare slots so i have to physically remove the old drive
before installing the new )
with the new drive use gpart -create -s gpt <i suppose i use ada0 here ?Thats the disk i replace)
btw the old disk shows with gpart show ada0:
[root@fnas] ~# gpart show ada0
=> 34 1953525101 ada0 GPT (932G)
34 94 - free - (47K)
128 1953525007 1 freebsd-zfs (932G)
i see 2 partitions, one swap of 94 bytes and one with 1953525007 bytes of type freebsd-zfs.
Thus i guess that the gpart command would be : ( right ?)
gpart add -b 34 -s 94 -t freebsd-swap ada0
gpart add -t freebsd-zfs ada0
finally, still in a shell, i do :
zpool replace <pool> ada0p2
zpool detach <pool> ada0p2/old
HOWEVER, in the same documentation 10.8.4 How do I replace a bad drive?
the procedure is to power down, physically replace the disk, and
zpool replace <pool> ada0
( wait for resilver to finish )
zpool detach <pool> ada0/old
zpool export <pool>
and finally in the GUI Storage -> Volumes -> Auto Import
I'm not unfamiliar doing the whole process in freebsd/sunkos, but then i had spare slots and
no GUI to care for. Whats the recommended procedure in freenas 8.0.3 ?