OpenSolaris

Printable Version Enter a New Search
Bug ID 6508521
Synopsis zpool online should warn when it is being used incorrectly
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:zfs
Keywords
Responsible Engineer Eric Schrock
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_68
Fixed In snv_68
Release Fixed solaris_nevada(snv_68) , solaris_10u6(s10u6_01) (Bug ID:2156285)
Related Bugs
Submit Date 29-December-2006
Last Update Date 29-April-2008
Description
We had a disk failure on our server. After repalcing the disk - it kept its cxtydz number I tried to enable it in zfs after relabelling the disk.

Hewre is the o/p of zpool status:


estale <root> # zpool status                  
  pool: varpool
 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 in progress, 43.08% done, 0h0m to go
config:

        NAME                STATE     READ WRITE CKSUM
        varpool             DEGRADED     0     0     0
          mirror            DEGRADED     0     0     0
            c0t0d0s3        ONLINE       0     0     0
            c1t0d0s3        UNAVAIL      0     0     0  cannot open
          mirror            ONLINE       0     0     0
            c0t6d0s3        ONLINE       0     0     0
            c1t6d0s3        ONLINE       0     0     0
          mirror            DEGRADED     0     0     0
            c0t0d0s4        ONLINE       0     0     0
            c1t0d0s4        UNAVAIL      0     0     0  cannot open
          mirror            DEGRADED     0     0     0
            c0t0d0s1        ONLINE       0     0     0
            replacing       DEGRADED     0     0     0
              c1t0d0s1/old  UNAVAIL      0     0     0  cannot open
              c1t0d0s1      ONLINE       0     0     0
          mirror            ONLINE       0     0     0
            c0t6d0s1        ONLINE       0     0     0
            c1t6d0s1        ONLINE       0     0     0

errors: No known data errors


I used zpool online to put those devices online:


estale <root> # zpool online varpool c1t0d0s1
Bringing device c1t0d0s1 online

This actually does nothing and does not warn you you should be using the 'replace' option which does work.

estale <root> # zpool replace varpool c1t0d0s1

This does work but does not tell you so but a peek at zpool status shows things are getting better..

estale <root> # zpool status                  
  pool: varpool
 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 in progress, 43.08% done, 0h0m to go
config:

        NAME                STATE     READ WRITE CKSUM
        varpool             DEGRADED     0     0     0
          mirror            DEGRADED     0     0     0
            c0t0d0s3        ONLINE       0     0     0
            c1t0d0s3        UNAVAIL      0     0     0  cannot open
          mirror            ONLINE       0     0     0
            c0t6d0s3        ONLINE       0     0     0
            c1t6d0s3        ONLINE       0     0     0
          mirror            DEGRADED     0     0     0
            c0t0d0s4        ONLINE       0     0     0
            c1t0d0s4        UNAVAIL      0     0     0  cannot open
          mirror            DEGRADED     0     0     0
            c0t0d0s1        ONLINE       0     0     0
            replacing       DEGRADED     0     0     0
              c1t0d0s1/old  UNAVAIL      0     0     0  cannot open
              c1t0d0s1      ONLINE       0     0     0
          mirror            ONLINE       0     0     0
            c0t6d0s1        ONLINE       0     0     0
            c1t6d0s1        ONLINE       0     0     0


So our idea is zpool online should warn that 'replace' should be used.
Work Around
N/A
Comments
N/A