zfs remove faulted drive?

kyoko

n00b
Joined
Feb 16, 2011
Messages
19
Hi

I replaced a faulted drive with a new one as you can see

replacing-3 DEGRADED 2 0 0
c12d0/old FAULTED 0 0 0 too many errors
c12d0 ONLINE 0 0 0

but one still says faulted, the c12d0/old. How do i remove this drive from zfs

(i removed the defective drive, put in a new one & did a replace, so this is where i ended up)

Anyone got any idea? :) cheers
 
The pool should show that it's resilvering, only when it's done will the old drive drop from the list. Can you run the following command and show your results please?

zpool status poolname
 
Code:
 pool: POOL
 state: DEGRADED
status: One or more devices has experienced an error resulting in data
	corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
	entire pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-8A
 scan: resilvered 572G in 8h5m with 1 errors on Fri Oct 21 17:48:23 2011
config:

	NAME             STATE     READ WRITE CKSUM
	POOL             DEGRADED   902     0     2
	  raidz1-0       ONLINE       0     0     0
	    c11t0d0      ONLINE       0     0     0
	    c11t1d0      ONLINE       0     0     0
	    c11t2d0      ONLINE       0     0     0
	    c11t4d0      ONLINE       0     0     0
	    c11t5d0      ONLINE       0     0     0
	  raidz1-1       DEGRADED     0     0     4
	    c11t3d0      ONLINE       0     0     0
	    c11t6d0      ONLINE       0     0     0
	    c11t7d0      ONLINE       0     0     0
	    replacing-3  DEGRADED     2     0     0
	      c12d0/old  FAULTED      0     0     0  too many errors
	      c12d0      ONLINE       0     0     0
	    c12d1        ONLINE       0     0     0

errors: 1 data errors, use '-v' for a list

my data is fine atm :)
 
This seems weird. If you did a zpool replace for an inplace disk, it should resilver and drop out the old disk name

I wonder what would happen if you zpool detached the faulted name... seems weird...

Maybe reboot :)
 
it does it like this cus wel.. i didn't have a spare drive & i couldn't add a spare drive, so i didn't replace 1 drive with another slot
i did zpool replace POOL c12d0
 
it does it like this cus wel.. i didn't have a spare drive & i couldn't add a spare drive, so i didn't replace 1 drive with another slot
i did zpool replace POOL c12d0
Yeah, and like the other guy said, and I have, that should drop out the "old disk name" once its complete.

I've done this myself, though typically I have a spare kick in, so I detach the old disk, replace the spare, then detach the spare.
 
i'm totally fine now :) removed a corrupt backup file, removed the /old drive, resilvered & done :)
 
Back
Top