Linux Scroll

Just another WordPress.com site

Solaris zfs pool degraded

List all zfs pool:

# zpool list

Check zpool status:

# zpool status -xv

  pool: fiapp1
 state: DEGRADED
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-8A
 scrub: none requested
config:
        NAME                                     STATE     READ WRITE CKSUM
        fiapp1                                 DEGRADED     0    28     4
          c1t60060E8016520C000001320C00005216b0  DEGRADED     0    28     4  too many errors

errors: Permanent errors have been detected in the following files:
        /zones/fiapp1/root/var/save/ppf.20110701061422

The lun issue cause zone degraded.After fixed lun.

Scrub the pool:

# zpool scrub fiapp1

Check the status again:

# zpool status -v fiapp1

  pool: fiapp1
 state: DEGRADED
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-9P
 scrub: resilver completed after 0h0m with 0 errors on Sat July 2 11:02:15 2011
config:
        NAME                                     STATE     READ WRITE CKSUM
       fiapp1                                 DEGRADED     0    28     4
          c1t60060E8016520C000001320C00005216b0  DEGRADED     0    28     4  too many errors
errors: No known data errors

Clear error counter:

# zpool clear fiapp1
# zpool status -v fiapp1

  pool: fiapp1
 state: ONLINE
 scrub: resilver completed after 0h0m with 0 errors on July 2 11:02:15 2011
config:
        NAME                                     STATE     READ WRITE CKSUM
        fiapp1                                 ONLINE       0     0     0
          c1t60060E8016520C000001320C00005216b0  ONLINE       0     0     0

errors: No known data errors
# zpool status -xv
all pools are healthy
Advertisements

Comments are closed.

%d bloggers like this: