After rebuilding a server which included moving the disks around and replacing one, zpool status reports the following...

# zpool status
  pool: export
 state: DEGRADED
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-4J
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        export      DEGRADED     0     0     0
          mirror    DEGRADED     0     0     0
            c3d0    FAULTED      0     0     0  corrupted data
            c6t1d0  ONLINE       0     0     0
            c3d0    ONLINE       0     0     0

errors: No known data errors
#

Note there are two disks called c3d0. This is because all 3 disks have physically moved into one of the others' slots, but one was swapped for a new disk, so we've lost the original c3d0, but one of the other disks in the zpool is in that position.

Now, what I want to do is detach the missing disk from the pool. I've been in this situation twice now, and I've crossed my fingers and typed

zpool detach export c3d0

and on both occasions, it has detached the FAULTED disk rather than the ONLINE disk, which is exactly what I wanted. However, was I just lucky each time, or is there logic to pick the FAULTED disk when the disk name isn't unique?

--
Andrew
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to