This discussion is archived
4 Replies Latest reply: Sep 25, 2012 2:52 PM by cindys RSS

Problem in importing the zpool..!!

894267 Newbie
Currently Being Moderated
Hi all,

I am new to Solaris ,I am trying to import the zpool i got this o/p..Any suggestions on" How to import the zpool even though the devices are missing ".
I tried with the -D and -m commands also.

Solaris version:

bash-3.2# uname -a
SunOS Sol222 5.10 Generic_147441-01 i86pc i386 i86pc


bash-3.2# zpool import
pool: tXstpool
id: 7915577984300796769
state: UNAVAIL
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
config:

tXstpool UNAVAIL missing device
mirror-0 DEGRADED
c3t210000E08B92FC85d0 FAULTED corrupted data
c3t210000E08B92FC85d2 ONLINE

Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
  • 1. Re: Problem in importing the zpool..!!
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated
    The answer is included in the "action" section of the zpool message
  • 2. Re: Problem in importing the zpool..!!
    894267 Newbie
    Currently Being Moderated
    But device is there...attached to the machine..!!



    bash-3.2# echo | format
    Searching for disks...done


    AVAILABLE DISK SELECTIONS:
    0. c1d0 <DEFAULT cyl 30398 alt 2 hd 255 sec 63>
    /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
    1. c3t210000E08B92FC85d0 <FALCON-IPSTOR DISK-v1.0-1.99GB>
    /pci@0,0/pci8086,2771@1/pci1077,138@0,1/fp@0,0/disk@w210000e08b92fc85,0
    2. c3t210000E08B92FC85d1 <FALCON-IPSTOR DISK-v1.0-1.99GB>
    /pci@0,0/pci8086,2771@1/pci1077,138@0,1/fp@0,0/disk@w210000e08b92fc85,1
    3. c3t210000E08B92FC85d2 <FALCON-IPSTOR DISK-v1.0-1.99GB>
    /pci@0,0/pci8086,2771@1/pci1077,138@0,1/fp@0,0/disk@w210000e08b92fc85,2
    4. c3t210100E08BB2FC85d0 <FALCON-IPSTOR DISK-v1.0-1.99GB>
    /pci@0,0/pci8086,2771@1/pci1077,138@0,1/fp@0,0/disk@w210100e08bb2fc85,0
    5. c3t210100E08BB2FC85d1 <FALCON-IPSTOR DISK-v1.0-1.99GB>
    /pci@0,0/pci8086,2771@1/pci1077,138@0,1/fp@0,0/disk@w210100e08bb2fc85,1
    6. c3t210100E08BB2FC85d2 <FALCON-IPSTOR DISK-v1.0-1.99GB>
    /pci@0,0/pci8086,2771@1/pci1077,138@0,1/fp@0,0/disk@w210100e08bb2fc85,2
    Specify disk (enter its number): Specify disk (enter its number):
    bash-3.2#
    bash-3.2#
    bash-3.2# zpool import
    pool: tXstpool
    id: 7915577984300796769
    state: UNAVAIL
    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
    config:

    tXstpool UNAVAIL missing device
    mirror-0 DEGRADED
    c3t210000E08B92FC85d0 FAULTED corrupted data
    c3t210000E08B92FC85d2 ONLINE

    Additional devices are known to be part of this pool, though their
    exact configuration cannot be determined.
  • 3. Re: Problem in importing the zpool..!!
    muvvas Explorer
    Currently Being Moderated
    have u tried with

    zpool import -f poolname

    i created a test case with mkfile im able to import

    zpool create disk mirror /lun1 /opt/lun1

    bash-3.2# zpool status disk
    pool: disk
    state: ONLINE
    scan: none requested
    config:

    NAME STATE READ WRITE CKSUM
    disk ONLINE 0 0 0
    mirror-0 ONLINE 0 0 0
    //lun1 ONLINE 0 0 0
    /opt/lun2 ONLINE 0 0 0

    errors: No known data errors

    zpool export disk

    now im removing the /opt/lun2

    bash-3.2# rm /opt/lun2
    bash-3.2# zpool import -d / disk
    bash-3.2# zpool status disk
    pool: disk
    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-2Q
    scan: resilvered 1.50K in 0h0m with 0 errors on Sat Sep 22 21:01:09 2012
    config:

    NAME STATE READ WRITE CKSUM
    disk DEGRADED 0 0 0
    mirror-0 DEGRADED 0 0 0
    //lun1 ONLINE 0 0 0
    9262654545603752000 UNAVAIL 0 0 0 was /opt/lun2

    errors: No known data errors

    refer this:::
    http://blog.solori.net/2010/07/15/zfs-pool-import-fails-after-power-outage/
    http://docs.huihoo.com/opensolaris/solaris-zfs-administration-guide/html/ch04s06.html

    Edited by: muvvas on Sep 25, 2012 10:56 AM
  • 4. Re: Problem in importing the zpool..!!
    cindys Pro
    Currently Being Moderated
    I'm not familiar with FALCON-IPSTOR DISK but they look like some kind of virtual disk. Is this true?
    Regardless, this error message might mean that this pool had a second mirrored pair of disks:

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

    You might be able to confirm that additional disks were part of this pool by using this command:

    # zdb -l /dev/rdsk/c3t210000E08B92FC85d2s0

    I'm not sure of the correct device path but maybe you know what it is. This command should tell
    whether this pool had other devices and whether the existing device labels are still intact.

    This kind of pool recovery is difficult even for experts. You might google for ZFS pool recovery,
    like this one:

    http://mail.opensolaris.org/pipermail/zfs-discuss/2011-August/049733.html

    If other devices (other than the ones listed in the zpool status output) are missing from this pool,
    then I don't see how you would get a complete copy of your data to recover.

    Thanks, Cindy

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points