It appears that if you follow this sequence, importing a pool becomes 
impossible:

1) offline a disk
2) replace the same disk
3) export the pool

It would seem a normal course of events to 1) offline a failing disk, 2) wait 
for FedEx to get a new drive to you 3) replace the drive, and go along your way.

The following reflects a test done on a system called sys-06, where sys-05 can 
see the same FC disks used by sys-06. I included all of the steps I tried from 
creating a new pool, and inserted the "*** zpool import on sys-05 - no problem 
***" marker in the text here when I tried a 'zpool import' on sys-05 and saw no 
error. Also, the message ID ZFS-8000-6X does not seem to describe the correct 
error for this problem.

Jeff

--------
# zpool create -f badpool raidz c0t226000C0FFA7C140d6 c0t226000C0FFA7C140d7 
c0t226000C0FFA7C140d8
# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
badpool                23.4G     60K   23.4G     0%  ONLINE     -
# zpool status badpool
 pool: badpool
state: ONLINE
scrub: none requested
config:

       NAME                       STATE     READ WRITE CKSUM
       badpool                    ONLINE       0     0     0
         raidz                    ONLINE       0     0     0
           c0t226000C0FFA7C140d6  ONLINE       0     0     0
           c0t226000C0FFA7C140d7  ONLINE       0     0     0
           c0t226000C0FFA7C140d8  ONLINE       0     0     0

errors: No known data errors
# zpool replace badpool c0t226000C0FFA7C140d8 c1t216000C0FF87C140d6
# zpool status badpool
 pool: badpool
state: ONLINE
scrub: resilver completed with 0 errors on Mon May 15 16:07:57 2006
config:

       NAME                       STATE     READ WRITE CKSUM
       badpool                    ONLINE       0     0     0
         raidz                    ONLINE       0     0     0
           c0t226000C0FFA7C140d6  ONLINE       0     0     0
           c0t226000C0FFA7C140d7  ONLINE       0     0     0
           c1t216000C0FF87C140d6  ONLINE       0     0     0  34.5K resilvered

errors: No known data errors

*** zpool import on sys-05 - no problem ***

# zpool offline badpool c1t216000C0FF87C140d6
Bringing device c1t216000C0FF87C140d6 offline
# zpool online badpool c1t216000C0FF87C140d6
Bringing device c1t216000C0FF87C140d6 online
# zpool status -v
 pool: badpool
state: ONLINE
scrub: resilver completed with 0 errors on Mon May 15 16:09:19 2006
config:

       NAME                       STATE     READ WRITE CKSUM
       badpool                    ONLINE       0     0     0
         raidz                    ONLINE       0     0     0
           c0t226000C0FFA7C140d6  ONLINE       0     0     0
           c0t226000C0FFA7C140d7  ONLINE       0     0     0
           c1t216000C0FF87C140d6  ONLINE       0     0     0  1K resilvered

errors: No known data errors
#

*** zpool import on sys-05 - no problem ***

# zpool replace badpool c1t216000C0FF87C140d6 c0t226000C0FFA7C140d8
# zpool status badpool
 pool: badpool
state: ONLINE
scrub: resilver completed with 0 errors on Mon May 15 16:13:49 2006
config:

       NAME                       STATE     READ WRITE CKSUM
       badpool                    ONLINE       0     0     0
         raidz                    ONLINE       0     0     0
           c0t226000C0FFA7C140d6  ONLINE       0     0     0
           c0t226000C0FFA7C140d7  ONLINE       0     0     0
           c0t226000C0FFA7C140d8  ONLINE       0     0     0  22K resilvered

errors: No known data errors
#

*** zpool import on sys-05 - no problem ***

# zpool offline badpool c0t226000C0FFA7C140d8
Bringing device c0t226000C0FFA7C140d8 offline
# zpool replace badpool c0t226000C0FFA7C140d8 c1t216000C0FF87C140d6
#

*** zpool import on sys-05 - problem follows: ***

config:

       badpool                    UNAVAIL   missing device
         raidz                    ONLINE
           c1t226000C0FFA7C140d6  ONLINE
           c1t226000C0FFA7C140d7  ONLINE
           c1t226000C0FFA7C140d8  ONLINE

       Additional devices are known to be part of this pool, though their
       exact configuration cannot be determined.

 pool: rzpool
   id: 11876640227591411840
state: FAULTED
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
       devices and try again.
  see: http://www.sun.com/msg/ZFS-8000-6X
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to