ZFS raidz recovery

Gareth de Vaux bsd at lordcow.org
Tue Dec 21 09:04:38 UTC 2010


On Mon 2010-12-06 (13:07), Gareth de Vaux wrote:
> 'zpool replace' also only works if you physically swap out a disk
> at the same port, or replace disk1 with disk2 online. 'zpool remove'
> and 'zpool detach' don't remove devices from a raidz.
> 
> So I can recover an array if I have an extra disk to play with,
> to use temporarily or to swap out with. If I don't and a disk is
> giving trouble I can't drop it from the array, try to do something
> with it, and reinsert it.

As the ZFS guys point out, you can replace the same disk out if you
zero both its EFI labels - about 1MB at the beginning and end of the
disk.


More information about the freebsd-stable mailing list