Date: Wed, 28 Apr 2010 08:47:00 -0700 From: Freddie Cash <fjwcash@gmail.com> To: freebsd-fs@freebsd.org Subject: ZFS: "Cannot replace a replacing drive" Message-ID: <y2pb269bc571004280847od80c334cmc3a073cd7d20a927@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Going through the archives, I see that others have run into this issue, and managed to solve it via "zpool detach". However, looking closely at the archived messages, all the successful tests had one thing in common: 1 drive ONLINE, 1 drive FAULTED. If a drive is online, obviously it can be detached. In all the cases where people have been unsuccessful at fixing this situation, 1 drive is OFFLINE, and 1 drive is FAULTED. As is our case: [fcash@thehive ~]$ zpool status -v pool: storage state: DEGRADED status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using 'zpool upgrade'. Once this is done, the pool will no longer be accessible on older software versions. scrub: none requested config: NAME STATE READ WRITE CKSUM storage DEGRADED 0 0 0 raidz2 DEGRADED 0 0 0 label/disk01 ONLINE 0 0 0 label/disk02 ONLINE 0 0 0 label/disk03 ONLINE 0 0 0 replacing UNAVAIL 0 534 0 insufficient replicas label/disk04/old OFFLINE 0 544 0 label/disk04 FAULTED 0 544 0 corrupted data label/disk13 ONLINE 0 0 0 label/disk14 ONLINE 0 0 0 label/disk15 ONLINE 0 0 0 label/disk16 ONLINE 0 0 0 raidz2 ONLINE 0 0 0 label/disk05 ONLINE 0 0 0 label/disk06 ONLINE 0 0 0 label/disk07 ONLINE 0 0 0 label/disk08 ONLINE 0 0 0 label/disk17 ONLINE 0 0 0 label/disk18 ONLINE 0 0 0 label/disk19 ONLINE 0 0 0 label/disk20 ONLINE 0 0 0 raidz2 ONLINE 0 0 0 label/disk09 ONLINE 0 0 0 label/disk10 ONLINE 0 0 0 label/disk11 ONLINE 0 0 0 label/disk12 ONLINE 0 0 0 label/disk21 ONLINE 0 0 0 label/disk22 ONLINE 0 0 0 label/disk23 ONLINE 0 0 0 label/disk24 ONLINE 0 0 0 cache label/cache ONLINE 0 0 0 errors: No known data errors [fcash@thehive ~]$ sudo zpool replace storage label/disk04 cannot replace label/disk04 with label/disk04: cannot replace a replacing device Note the OFFLINE status for label/disk04/old. I cannot get either drive to detach, or to replace, or to online, or to offline. "zpool online" on the old device changes the status to UNAVAIL. "zpool detach" and "zpool offline" give the same error: no valid replicas. I've tried removing the underlying device, booting with the drive in the system and without the drive in the system, all kinds of zpool commands, all without success. Is there any way to recover from this error? Or am I doomed to destroy a 10 TB pool? FreeBSD thehive.sd73.bc.ca 8.0-STABLE FreeBSD 8.0-STABLE #3: Fri Jan 15 11:08:47 PST 2010 root@thehive.sd73.bc.ca:/usr/obj/usr/src-8/sys/ZFSHOST amd64 ZFSv13 -- Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y2pb269bc571004280847od80c334cmc3a073cd7d20a927>