Re: ZFS raidz recovery

2010-12-21 Thread Gareth de Vaux
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

Re: ZFS raidz recovery

2010-12-06 Thread Gareth de Vaux
On Sat 2010-11-27 (15:22), Gareth de Vaux wrote: > Hi all, I'm trying to simulate a disk fail and replacement in > a raidz array and failing myself. What'm I doing wrong? Here's Ok I did some science, it looks like the array doesn't like me throwing zeros at the disk when it's 'offline'. If I take

Re: ZFS raidz recovery

2010-11-27 Thread Gareth de Vaux
On Sat 2010-11-27 (07:30), Jeremy Chadwick wrote: > uname -a please -- it matters greatly. $ uname -a FreeBSD file 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Wed Nov 24 07:56:04 SAST 2010 r...@file:/usr/obj/usr/src/sys/COWNEL amd64 ___ freebsd-stabl

Re: ZFS raidz recovery

2010-11-27 Thread Jeremy Chadwick
On Sat, Nov 27, 2010 at 03:22:49PM +0200, Gareth de Vaux wrote: > Hi all, I'm trying to simulate a disk fail and replacement in > a raidz array and failing myself. What'm I doing wrong? Here's > a transcript with interspersed commentary: > > r...@file:~# zpool status > pool: raid > state: ONLIN

ZFS raidz recovery

2010-11-27 Thread Gareth de Vaux
Hi all, I'm trying to simulate a disk fail and replacement in a raidz array and failing myself. What'm I doing wrong? Here's a transcript with interspersed commentary: r...@file:~# zpool status pool: raid state: ONLINE scrub: scrub completed after 0h0m with 0 errors on Sat Nov 27 13:20:06 2010