Brad
2010-May-04 23:09 UTC
[zfs-discuss] replaced disk...copy back completed but spare is in use
I yanked a disk to simulate failure to the test pool to test hot spare failover
- everything seemed fine until the copy back completed. The hot spare is still
showing in used...do we need to remove the spare from the pool to get it to
deattach?
# zpool status
pool: ZPOOL.TEST
state: ONLINE
scrub: resilver completed after 7h55m with 0 errors on Tue May 4 16:33:33 2010
config:
NAME STATE READ WRITE CKSUM
ZPOOL.TEST ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A3B6695d0 ONLINE 0 0 0
c10t5000C5001A3CED7Fd0 ONLINE 0 0 0
c10t5000C5001A5A45C1d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A6B2300d0 ONLINE 0 0 0
c10t5000C5001A6BC6C6d0 ONLINE 0 0 0
c10t5000C5001A6C3439d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A6F177Bd0 ONLINE 0 0 0
c10t5000C5001A6FDB0Bd0 ONLINE 0 0 0
c10t5000C5001A6FFF86d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A39D7BEd0 ONLINE 0 0 0
c10t5000C5001A60BED0d0 ONLINE 0 0 0
c10t5000C5001A70D8AAd0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A70D9B0d0 ONLINE 0 0 0
c10t5000C5001A70D89Ed0 ONLINE 0 0 0
c10t5000C5001A70D719d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A700E07d0 ONLINE 0 0 0
c10t5000C5001A701A12d0 ONLINE 0 0 0
c10t5000C5001A701CD0d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A702c10Ed0 ONLINE 0 0 0
c10t5000C5001A702C8Ed0 ONLINE 0 0 0
c10t5000C5001A703D23d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A703FADd0 ONLINE 0 0 0
c10t5000C5001A707D86d0 ONLINE 0 0 0
c10t5000C5001A707EDCd0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A7013D4d0 ONLINE 0 0 0
c10t5000C5001A7013E6d0 ONLINE 0 0 0
c10t5000C5001A7013FDd0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A7021ADd0 ONLINE 0 0 0
c10t5000C5001A7028B6d0 ONLINE 0 0 0
c10t5000C5001A7029A2d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A7036F4d0 ONLINE 0 0 0
c10t5000C5001A7053ADd0 ONLINE 0 0 0
spare ONLINE 6.05M 0 0
c10t5000C5001A7069CAd0 ONLINE 0 0 0 171G
resilvered
c10t5000C5001A703651d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A70104Dd0 ONLINE 0 0 0
c10t5000C5001A70126Fd0 ONLINE 0 0 0
c10t5000C5001A70183Cd0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A70296Cd0 ONLINE 0 0 0
c10t5000C5001A70395Ed0 ONLINE 0 0 0
c10t5000C5001A70587Dd0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A70704Ad0 ONLINE 0 0 0
c10t5000C5001A70830Ed0 ONLINE 0 0 0
c10t5000C5001A701563d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c10t5000C5001A702542d0 ONLINE 0 0 0
c10t5000C5001A702625d0 ONLINE 0 0 0
c10t5000C5001A703374d0 ONLINE 0 0 0
logs
mirror ONLINE 0 0 0
c1t3d0 ONLINE 0 0 0
c1t4d0 ONLINE 0 0 0
cache
c1t1d0 ONLINE 0 0 0
c1t2d0 ONLINE 0 0 0
spares
c10t5000C5001A703651d0 INUSE currently in use
c10t5000C5001A704180d0 AVAIL
c10t5000C5001A708241d0 AVAIL
--
This message posted from opensolaris.org
Ian Collins
2010-May-05 03:00 UTC
[zfs-discuss] replaced disk...copy back completed but spare is in use
On 05/ 5/10 11:09 AM, Brad wrote:> I yanked a disk to simulate failure to the test pool to test hot spare failover - everything seemed fine until the copy back completed. The hot spare is still showing in used...do we need to remove the spare from the pool to get it to deattach? > >Once the "failed" drive is replaced and resilvered, you can "zpool detach" the spare. -- Ian.