Hi all,
I have a interesting one. I have a disk wedged in a zpool.

It can be seen from format and a analyze works fine, but from zfs the system has it marked as unavailable. (Yes the disk is probably flaky... I don't get my hands on the good disks)

The system is 5.11 snv_55 sun4u sparc SUNW,Sun-Blade-100 and the storage is a D1000.
rebooting makes no difference to the state.
The recommendations from "zpool status" was to either "zpool online" the device or to "zpool replace" the device. Neither worked. I also tried physically unplugging the disk and reconfiguring the device tree.. No difference.
To get it back I had to export and import the pool.
Of course the disk had a lot of checksum errors (ass you would expect), but a scrub fixed them all up. You got to love ZFS :-)

See the output from the z commands below.
_
_Any Idea's on what was the correct way to revive the disk. If it happens again I will force a dump.

Regards
Rodney Lindner.
# zpool status -x pool: D1000
 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-D3
 scrub: resilver completed with 0 errors on Wed Jan  3 08:53:09 2007
config:

        NAME        STATE     READ WRITE CKSUM
        D1000       DEGRADED     0     0     0
          raidz2    DEGRADED     0     0     0
            c1t0d0  UNAVAIL      0     0     0  cannot open
            c1t1d0  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0
            c1t4d0  ONLINE       0     0     0
            c1t5d0  ONLINE       0     0     0

errors: No known data errors
# zpool online D1000 c1t0d0
Bringing device c1t0d0 online
# zpool status -x pool: D1000
 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-D3
 scrub: resilver completed with 0 errors on Wed Jan  3 10:07:20 2007
config:

        NAME        STATE     READ WRITE CKSUM
        D1000       DEGRADED     0     0     0
          raidz2    DEGRADED     0     0     0
            c1t0d0  UNAVAIL      0     0     0  cannot open
            c1t1d0  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0
            c1t4d0  ONLINE       0     0     0
            c1t5d0  ONLINE       0     0     0

errors: No known data errors
# zpool replace D1000 c1t0d0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c1t0d0s0 is part of active ZFS pool D1000. Please see zpool(1M).
# zpool replace -f D1000 c1t0d0
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c1t0d0s0 is part of active ZFS pool D1000. Please see zpool(1M).
#
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to