[OpenIndiana-discuss] Zfs import fails
George Wilson
george.wilson at delphix.com
Thu Feb 7 18:08:59 UTC 2013
Ram,
Would it be possible to get ssh access to the box? If so, then I might
be able to help to figure out why you can't import.
Thanks,
George
On 2/7/13 7:49 AM, Ram Chander wrote:
> The drives are in Coraid connected to the server via Coraid 10G HBA card.
> Its exported and imported on the same host but after OS upgrade ( format OS
> disk and install again ). Before OS upgrade, zpool export was issued and
> when tried to import it faults as below. The pool is not functional in any
> system now. Tried -d /dev/dsk option but no luck.
>
>
> root at storage1:~# zpool import
> pool: pool1
> id: 10136140719439709374
> state: FAULTED
> status: The pool was last accessed by another system.
> action: The pool cannot be imported due to damaged devices or data.
> The pool may be active on another system, but can be imported using
> the '-f' flag.
> see: http://illumos.org/msg/ZFS-8000-EY
> config:
>
> pool1 FAULTED corrupted data
> raidz1-0 ONLINE
> c5t1d0 UNAVAIL corrupted data
> c5t1d1 UNAVAIL corrupted data
> c5t1d2 UNAVAIL corrupted data
> c5t1d3 UNAVAIL corrupted data
> c5t1d4 UNAVAIL corrupted data
> raidz1-1 ONLINE
> c5t1d5 UNAVAIL corrupted data
> c5t1d6 UNAVAIL corrupted data
> c5t1d7 UNAVAIL corrupted data
> c5t1d8 UNAVAIL corrupted data
> c5t1d9 UNAVAIL corrupted data
> raidz1-2 ONLINE
> c5t1d10 UNAVAIL corrupted data
> c5t1d11 UNAVAIL corrupted data
> c5t1d12 UNAVAIL corrupted data
> c5t1d13 UNAVAIL corrupted data
> c5t1d14 UNAVAIL corrupted data
> raidz1-3 ONLINE
> c5t1d15 UNAVAIL corrupted data
> c5t1d16 UNAVAIL corrupted data
> c5t1d17 UNAVAIL corrupted data
> c5t1d18 UNAVAIL corrupted data
> c5t1d19 UNAVAIL corrupted data
> raidz1-4 ONLINE
> c5t1d20 UNAVAIL corrupted data
> c5t1d21 UNAVAIL corrupted data
> c5t1d22 UNAVAIL corrupted data
> c5t1d23 UNAVAIL corrupted data
> c5t1d24 UNAVAIL corrupted data
> raidz1-5 ONLINE
> c5t1d25 UNAVAIL corrupted data
> c5t1d26 UNAVAIL corrupted data
> c5t1d27 UNAVAIL corrupted data
> c5t1d28 UNAVAIL corrupted data
> c5t1d29 UNAVAIL corrupted data
> raidz1-6 ONLINE
> c5t1d30 UNAVAIL corrupted data
> c5t1d31 UNAVAIL corrupted data
> c5t1d32 UNAVAIL corrupted data
> c5t1d33 UNAVAIL corrupted data
> c5t1d34 UNAVAIL corrupted data
> raidz1-7 ONLINE
> c5t2d0 UNAVAIL corrupted data
> c5t2d1 UNAVAIL corrupted data
> c5t2d2 UNAVAIL corrupted data
> c5t2d3 UNAVAIL corrupted data
> c5t2d4 UNAVAIL corrupted data
> raidz1-8 ONLINE
> c5t2d5 UNAVAIL corrupted data
> c5t2d6 UNAVAIL corrupted data
> c5t2d7 UNAVAIL corrupted data
> c5t2d8 UNAVAIL corrupted data
> c5t2d9 UNAVAIL corrupted data
> raidz1-9 ONLINE
> c5t2d10 UNAVAIL corrupted data
> c5t2d11 UNAVAIL corrupted data
> c5t2d12 UNAVAIL corrupted data
> c5t2d13 UNAVAIL corrupted data
> c5t2d14 UNAVAIL corrupted data
> raidz1-10 ONLINE
> c5t2d15 UNAVAIL corrupted data
> c5t2d16 UNAVAIL corrupted data
> c5t2d17 UNAVAIL corrupted data
> c5t2d18 UNAVAIL corrupted data
> c5t2d19 UNAVAIL corrupted data
> raidz1-11 ONLINE
> c5t2d20 UNAVAIL corrupted data
> c5t2d21 UNAVAIL corrupted data
> c5t2d22 UNAVAIL corrupted data
> c5t2d23 UNAVAIL corrupted data
> c5t2d24 UNAVAIL corrupted data
> raidz1-12 ONLINE
> c5t2d25 UNAVAIL corrupted data
> c5t2d26 UNAVAIL corrupted data
> c5t2d27 UNAVAIL corrupted data
> c5t2d28 UNAVAIL corrupted data
> c5t2d29 UNAVAIL corrupted data
> raidz1-13 ONLINE
> c5t2d30 UNAVAIL corrupted data
> c5t2d31 UNAVAIL corrupted data
> c5t2d32 UNAVAIL corrupted data
> c5t2d33 UNAVAIL corrupted data
> c5t2d34 UNAVAIL corrupted data
> raidz1-14 ONLINE
> c5t3d0 ONLINE
> c5t3d1 ONLINE
> c5t3d2 ONLINE
> c5t3d3 ONLINE
> c5t3d4 ONLINE
> raidz1-15 ONLINE
> c5t3d5 ONLINE
> c5t3d6 ONLINE
> c5t3d7 ONLINE
> c5t3d8 ONLINE
> c5t3d9 ONLINE
> raidz1-16 ONLINE
> c5t3d10 ONLINE
> c5t3d11 ONLINE
> c5t3d12 ONLINE
> c5t3d13 ONLINE
> c5t3d14 ONLINE
> raidz1-17 ONLINE
> c5t3d15 ONLINE
> c5t3d16 ONLINE
> c5t3d17 ONLINE
> c5t3d18 ONLINE
> c5t3d19 ONLINE
> raidz1-18 ONLINE
> c5t3d20 ONLINE
> c5t3d21 ONLINE
> c5t3d22 ONLINE
> c5t3d23 ONLINE
> c5t3d24 ONLINE
> raidz1-19 ONLINE
> c5t3d25 ONLINE
> c5t3d26 ONLINE
> c5t3d27 ONLINE
> c5t3d28 ONLINE
> c5t3d29 ONLINE
> raidz1-20 ONLINE
> c5t3d30 UNAVAIL corrupted data
> c5t3d31 UNAVAIL corrupted data
> c5t3d32 UNAVAIL corrupted data
> c5t3d33 UNAVAIL corrupted data
> c5t1d35 UNAVAIL corrupted data
>
> root at host:~# zpool import -FfX pool1
> cannot import 'pool1': one or more devices is currently unavailable
>
> root at host:~# zpool import -f pool1
> cannot import 'pool1': I/O error
> Destroy and re-create the pool from
> a backup source.
>
>
>
> On Wed, Feb 6, 2013 at 5:58 PM, Edward Ned Harvey (openindiana) <
> openindiana at nedharvey.com> wrote:
>
>>> From: Ram Chander [mailto:ramquick at gmail.com]
>>>
>>> I had a zpool thats exported on another system and when i try to import,
>>> it fails. Any idea how to recover ?
>> Start by proving there isn't some other problem. Import the pool again on
>> the same system that did the export. Assuming you can successfully import,
>> capture a "zpool status" and then export again and get back to your new
>> system...
>>
>> Show us the zpool status for the pool while it's functional in the old
>> system.
>>
>> Your error message said missing device. ("one or more devices currently
>> unavailable"). Make sure you "devfsadm -Cv" on the new system, and make
>> sure the new disks are all appearing.
>>
>> Your pool isn't based on partitions or slices, is it? If so, you'll have
>> to specify the devices manually. (I think it's zpool import -d)
>>
>> What type of disk controllers do you have in the new & old systems? Many
>> HBA's will occupy some space for their config & meta data on the drives,
>> transparently to the OS. This makes the drives incompatible with other
>> systems, other than similar compatible HBA's.
>>
>> Ideally, you'll have simple braindead SATA/SAS controllers on both the
>> source and destination machines. Because they won't add any custom data to
>> the drives; they just present the drive to the OS, simple as that.
>>
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the OpenIndiana-discuss
mailing list