Hi Tim,
I'm not sure why your spare isn't kicking in, but you could manually
replace the failed disk with the spare like this:
# zpool replace fserv c7t5d0 c3t6d0
If you want to run with the spare for awhile, then you can also detach
the original failed disk like this:
# zpool detach fserv c7t5d0
I don't know why the device name changed either.
See a similar example below.
Thanks,
Cindy
# zpool create -f tank raidz2 c2t0d0 c2t1d0 c2t2d0 spare c2t3d0
# zpool status tank
pool: tank
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
c2t0d0 ONLINE 0 0 0
c2t1d0 ONLINE 0 0 0
c2t2d0 ONLINE 0 0 0
spares
c2t3d0 AVAIL
# zpool replace tank c2t2d0 c2t3d0
# zpool status tank
pool: tank
state: ONLINE
scrub: resilver completed after 0h0m with 0 errors on Mon Mar 8
12:03:37 2010
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
c2t0d0 ONLINE 0 0 0
c2t1d0 ONLINE 0 0 0
spare-2 ONLINE 0 0 0
c2t2d0 ONLINE 0 0 0
c2t3d0 ONLINE 0 0 0 91.5K resilvered
spares
c2t3d0 INUSE currently in use
errors: No known data errors
# zpool detach tank c2t2d0
# zpool status tank
pool: tank
state: ONLINE
scrub: resilver completed after 0h0m with 0 errors on Mon Mar 8
12:03:37 2010
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
c2t0d0 ONLINE 0 0 0
c2t1d0 ONLINE 0 0 0
c2t3d0 ONLINE 0 0 0 91.5K resilvered
errors: No known data errors
On 03/08/10 11:33, Tim Cook wrote:
Is there a way to manually trigger a hot spare to kick in? Mine doesn't
appear to be doing so. What happened is I exported a pool to reinstall
solaris on this system. When I went to re-import it, one of the drives
refused to come back online. So, the pool imported degraded, but it
doesn't seem to want to use the hot spare... I've tried triggering a
scrub to see if that would give it a kick, but no-go.
r...@fserv:~$ zpool status
pool: fserv
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas
exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://www.sun.com/msg/ZFS-8000-2Q
scrub: scrub completed after 3h19m with 0 errors on Mon Mar 8 02:28:08
2010
config:
NAME STATE READ WRITE CKSUM
fserv DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
c2t0d0 ONLINE 0 0 0
c2t1d0 ONLINE 0 0 0
c2t2d0 ONLINE 0 0 0
c2t3d0 ONLINE 0 0 0
c2t4d0 ONLINE 0 0 0
c2t5d0 ONLINE 0 0 0
c3t0d0 ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0
c3t2d0 ONLINE 0 0 0
c3t3d0 ONLINE 0 0 0
c3t4d0 ONLINE 0 0 0
12589257915302950264 UNAVAIL 0 0 0 was
/dev/dsk/c7t5d0s0
spares
c3t6d0 AVAIL
--Tim
------------------------------------------------------------------------
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss