unable to import zfs pool

# zpool import
pool: emcpool1
id: 5596268873059055768
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: Sun Message ID: ZFS-8000-3C
config:

    emcpool1      UNAVAIL  insufficient replicas
      emcpower0c  UNAVAIL  cannot open

root@essapl020-u006 # zpool import -f emcpool1
cannot import 'emcpool1': invalid vdev configuration
root@essapl020-u006 #

all information is in your post...

status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.

---------- Post updated at 20:18 ---------- Previous update was at 20:17 ----------

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

Thats the problem .. nothing has been removed and i can see all the devices as earlier

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c3t5006016841E0A08Dd0 <DGC-RAID5-0326 cyl 65533 alt 2 hd 16 sec 890>
          /pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w5006016841e0a08d,0
       3. c3t5006016041E0A08Dd0 <DGC-RAID5-0326 cyl 65533 alt 2 hd 16 sec 890>
          /pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w5006016041e0a08d,0
       4. c3t5006016041E0A08Dd1 <DGC-RAID5-0326 cyl 51198 alt 2 hd 256 sec 16>
          /pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w5006016041e0a08d,1
       5. c3t5006016841E0A08Dd1 <DGC-RAID5-0326 cyl 51198 alt 2 hd 256 sec 16>
          /pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w5006016841e0a08d,1
       6. c5t5006016141E0A08Dd0 <DGC-RAID5-0326 cyl 65533 alt 2 hd 16 sec 890>
          /pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w5006016141e0a08d,0
       7. c5t5006016941E0A08Dd0 <DGC-RAID5-0326 cyl 65533 alt 2 hd 16 sec 890>
          /pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w5006016941e0a08d,0
       8. c5t5006016141E0A08Dd1 <DGC-RAID5-0326 cyl 51198 alt 2 hd 256 sec 16>
          /pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w5006016141e0a08d,1
       9. c5t5006016941E0A08Dd1 <DGC-RAID5-0326 cyl 51198 alt 2 hd 256 sec 16>
          /pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w5006016941e0a08d,1
      10. emcpower0a <DGC-RAID5-0326 cyl 65533 alt 2 hd 16 sec 890>
          /pseudo/emcp@0
      11. emcpower1a <DGC-RAID5-0326 cyl 51198 alt 2 hd 256 sec 16>
          /pseudo/emcp@1
Specify disk (enter its number): Specify disk (enter its number):
root@essapl020-u006 #

from the output we can't know the configuration for your zpool. also if data on one of the drives is missing you won't be able do import your zpool.

So u mean to say that if data on one of my drives is missing .. then i 'm helpless .. how can get the config of zpool and the disks in it ?

if the data on one of the disks is missing and there are no other replicas of this device... your data is gone. zfs is no "wonder" filesystem...
i don't know if you can get the config of an exported zpool. haven't tried this yet...

zpool import -D should show any exported pools on the system and may be able to help show you what the state of the pool is in with devices. If not, then a fmdump -eV on the system may show what type of "device" the pool was, plus some other stuff about the pool.

e.g

pool = vault
pool_guid = 0x2bb202be54c462e
pool_context = 2
pool_failmode = wait
vdev_guid = 0xaa3f2fd35788620b
vdev_type = mirror
parent_guid = 0x2bb202be54c462e
parent_type = root
prev_state = 0x7
__ttl = 0x1
__tod = 0x4a27c183 0x9d8492d

Looks to me like the pool was just a stripe of two RAID5 devices on the EMC and you've lost at least one of devices, hence loss of the pool.

Thanx to all for the efforts but i was able to import the zpool after disabling first HBA cards do not know the reason for this but now the pool is imported and there was not disk lost :slight_smile: