Hi Kyle,
Except that in the case of spares, you can't replace them.
You'll see a message like the one below.
Cindy
# zpool create pool mirror c1t0d0 c1t1d0 spare c1t5d0
# zpool status
pool: pool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
pool ONLINE 0 0 0
mirror ONLINE 0 0 0
c1t0d0 ONLINE 0 0 0
c1t1d0 ONLINE 0 0 0
spares
c1t5d0 AVAIL
# zpool replace pool c1t5d0 c2t5d0
cannot replace c1t5d0 with c2t5d0: device is reserved as a hot spare
On 08/05/09 14:04, Kyle McDonald wrote:
Will Murnane wrote:
I'm using Solaris 10u6 updated to u7 via patches, and I have a pool
with a mirrored pair and a (shared) hot spare. We reconfigured disks
a while ago and now the controller is c4 instead of c2. The hot spare
was originally on c2, and apparently on rebooting it didn't get found.
So, I looked up what the new name for the hot spare was, then added
it to the pool with "zpool add home1 spare c4t19d0". I then tried to
remove the original name for the hot spare:
r...@box:~# zpool remove home1 c2t0d8
r...@box:~# zpool status home1
pool: home1
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
home1 ONLINE 0 0 0
mirror ONLINE 0 0 0
c4t17d0 ONLINE 0 0 0
c4t24d0 ONLINE 0 0 0
spares
c2t0d8 UNAVAIL cannot open
c4t19d0 AVAIL
errors: No known data errors
So, how can I convince the pool to release its grasp on c2t0d8?
Have you tried making a sparse file with mkfile in /tmp and then ZFS
replace'ing c2t0d8 with the file, and then zfs remove'ing the file?
I don't know if it will work, but at least at the time of the remove,
the device will exist.
-Kyle
Thanks!
Will
_______________________________________________
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
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss