Nutshell: I need to replace a
Details: My monitoring script alerted me to a problem in my zpool:
I thought that the next step would then be (I am using a passphrase only):
However, looking at my notes I seem to have instead made a freebsd-zfs partition, and then encrypted that:
I'm not entirely sure why I have the "additional" partition in there, I presume it was an attempt to assure the blocks are properly 4k aligned (these are 3 TB drives that masquerade with 512 b blocks). Is the
By the way, this is the first hiccup with the pool - using 4 of 20 TB running flawlessly for 16 months without even a single checksum error, and it dutifully warns me when a drive goes belly-up. This is why I corner my colleagues in the break room and try to convince them we need to use ZFS!
geli-encrypted drive in my zpool. Looking at my setup notes, the geli devices in the pool are freebsd-zfs partitions, rather than 'raw' devices. Is that the correct approach?Details: My monitoring script alerted me to a problem in my zpool:
Code:
pool: abyss
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: scrub repaired 0 in 4h40m with 0 errors on Sun Feb 1 05:40:51 2015
config:
NAME STATE READ WRITE CKSUM
abyss DEGRADED 0 0 0
raidz3-0 DEGRADED 0 0 0
gpt/GELI-da0.eli ONLINE 0 0 0
gpt/GELI-da1.eli ONLINE 0 0 0
11837074149101951419 REMOVED 0 0 0 was /dev/gpt/GELI-da2.eli
gpt/GELI-da3.eli ONLINE 0 0 0
gpt/GELI-da4.eli ONLINE 0 0 0
gpt/GELI-da5.eli ONLINE 0 0 0
gpt/GELI-da6.eli ONLINE 0 0 0
gpt/GELI-da7.eli ONLINE 0 0 0
gpt/GELI-da8.eli ONLINE 0 0 0
gpt/GELI-da9.eli ONLINE 0 0 0
gpt/GELI-da11.eli ONLINE 0 0 0
zpool online does not work, the device is immediately removed. Next time I have the system powered down I'll make sure all the cabling is ok, but for the moment I am assuming the drive is wonky and will replace it with the spare, da10. So far I have done:
Code:
set DISKNAME=da10
gpart destroy -F "$DISKNAME"
gpart create -s gpt "$DISKNAME"
I thought that the next step would then be (I am using a passphrase only):
Code:
geli init -s 4096 "/dev/$DISKNAME"
However, looking at my notes I seem to have instead made a freebsd-zfs partition, and then encrypted that:
Code:
gpart add -t freebsd-zfs -l "GELI-$DISKNAME" -b 2048 -a 4k "$DISKNAME"
geli init -s 4096 "/dev/gpt/GELI-$DISKNAME"
I'm not entirely sure why I have the "additional" partition in there, I presume it was an attempt to assure the blocks are properly 4k aligned (these are 3 TB drives that masquerade with 512 b blocks). Is the
gpart add step required, or at least advised? Or have I set things up goofy? If I've been goofy, I presume that the zpool will happily accept the "raw" da10 device (ie, without adding the partition) with it's partitioned brethren? Thanks!By the way, this is the first hiccup with the pool - using 4 of 20 TB running flawlessly for 16 months without even a single checksum error, and it dutifully warns me when a drive goes belly-up. This is why I corner my colleagues in the break room and try to convince them we need to use ZFS!