I'm messing with the ZFS array again already. When I replaced the faulted HDD earlier, it was very easy & I had no downtime, just unplug it, put a new HDD in, & do zfs replace pool [insert guid] new_device
, then it automatically did everything & started online the whole time. I tried to replace a healthy HDD now, & it required taking that device offline, which makes sense, & left the array functional in a degraded state, but when unplugging it it seems like my HDDs get scrambled in /dev/, & ZFS is unable to recognize them as the disks they really are. Plugging the replacement in does not fix this, & a reboot is required before I can use zpool replace
successfully. I also have to actually look up the GUID for the device to be replaced because zpool status
doesn't automatically show it for the removed device like it did for the faulted device. I could do zpool status -g
, but that shows the GUID for all devices instead of just the missing one, which is confusing. Maybe zpool status -gx
?
#ZFS #Linux