I have an interesting situation where an upgrade of OI 151a3 is unable to import my pool, yet booting into a live USB allows access to the pool without problems.

The zpool import fails with this sort of message:
        pool1       UNAVAIL  insufficient replicas
          mirror-0  UNAVAIL  corrupted data
            c3t0d0  ONLINE
            c3t1d0  ONLINE

When I check the disk labels on the disks:

zdb -l /dev/dsk/c3t0d0s0
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 28
    name: 'pool1'
    state: 1
    txg: 7173951
    pool_guid: 8370873525947507187
    hostid: 13162267
    hostname: 'openindiana'
    top_guid: 15064987019855796782
    guid: 4751459059166773513
    vdev_children: 3
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 15064987019855796782
        metaslab_array: 30
        metaslab_shift: 34
        ashift: 9
        asize: 1998985625600
        is_log: 0
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 4751459059166773513
            path: '/dev/dsk/c2t0d0s0'
            devid: 'id1,sd@n600605b002e26410183d783b0e56515a/a'
            phys_path: '/pci@0,0/pci8086,3410@9/pci1014,3c7@0/sd@0,0:a'
            whole_disk: 1
            DTL: 4119
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 7277976899319815787
            path: '/dev/dsk/c2t1d0s0'
            devid: 'id1,sd@n600605b002e264101839b39f123c1210/a'
            phys_path: '/pci@0,0/pci8086,3410@9/pci1014,3c7@0/sd@1,0:a'
            whole_disk: 1
            DTL: 4118
            create_txg: 4

So I noticed that even though the disk is c3t0d0, the path shows in the disk label as c2t0d0s0 (and similarly for the "child"/partner mirrored disk, c3t1d0, yet path shows as c2t1d0), is this what is causing the really strange behaviour, when even though the devices are considered ONLINE, the pool itself is UAVAIL? And if so, is there any way to fix this?

Thanks.

_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to