This can occur if the location of the end of the partition has
changed locations. This could be due to the partition actually
shrinking or if more than one partition references the same
starting block, but different ending locations. Check your
partition configuration in format and debug with "zdb -l"
When you can see all 4 labels, then you should be able to
import.
-- richard
Vibhor Neb wrote:> I upgraded powepath on my system and exported the zfs pool after
> upgradation i was able to import the pool but after reboot i ''m
not
> able to import the pool and it fails with error
>
> zpool import emcpool1
> cannot import ''emcpool1'': invalid vdev configuration
>
>
> and digging a lil bit into it i found following things
>
>
> Jun 29 2009 01:54:14.928954823 ereport.fs.zfs.vdev.open_failed
> nvlist version: 0
> class = ereport.fs.zfs.vdev.open_failed
> ena = 0xe503fd84f3200001
> detector = (embedded nvlist)
> nvlist version: 0
> version = 0x0
> scheme = zfs
> pool = 0x4da9f0e3c642b898
> vdev = 0x358cc53d21483bb7
> (end detector)
>
> pool = emcpool1
> pool_guid = 0x4da9f0e3c642b898
> pool_context = 1
> pool_failmode = wait
> vdev_guid = 0x358cc53d21483bb7
> vdev_type = disk
> vdev_path = /dev/dsk/emcpower0c
> parent_guid = 0x4da9f0e3c642b898
> parent_type = root
> prev_state = 0x1
> __ttl = 0x1
> __tod = 0x4a486516 0x375eb9c7
>
>
>
> and zdb for this vdev i get
>
>
> root at essapl020-u006 # zdb -l /dev/dsk/emcpower0c
> --------------------------------------------
> LABEL 0
> --------------------------------------------
> version=4
> name=''emcpool1''
> state=0
> txg=6973090
> pool_guid=5596268873059055768
> hostid=2228473662
> hostname=''essapl020-u006''
> top_guid=3858675847091731383
> guid=3858675847091731383
> vdev_tree
> type=''disk''
> id=0
> guid=3858675847091731383
> path=''/dev/dsk/emcpower0c''
> phys_path=''/pseudo/emcp at 0:c,blk''
> whole_disk=0
> metaslab_array=14
> metaslab_shift=32
> ashift=9
> asize=477788372992
> is_log=0
> --------------------------------------------
> LABEL 1
> --------------------------------------------
> version=4
> name=''emcpool1''
> state=0
> txg=6973090
> pool_guid=5596268873059055768
> hostid=2228473662
> hostname=''essapl020-u006''
> top_guid=3858675847091731383
> guid=3858675847091731383
> vdev_tree
> type=''disk''
> id=0
> guid=3858675847091731383
> path=''/dev/dsk/emcpower0c''
> phys_path=''/pseudo/emcp at 0:c,blk''
> whole_disk=0
> metaslab_array=14
> metaslab_shift=32
> ashift=9
> asize=477788372992
> is_log=0
> --------------------------------------------
> LABEL 2
> --------------------------------------------
> failed to read label 2
> --------------------------------------------
> LABEL 3
> --------------------------------------------
> failed to read label 3
> root at essapl020-u006 #
>
>
> si there any way i can recover it without loosing my data on it ?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>