On 04/15/21 02:02 PM, Stephan Althaus wrote:
Hello!

I have a 1-disk pool which i use only from time to time.

Normally i would expect that i can import the pool after installing the disk again, (on 'cold' machine, boot with --reconfigure) the slot is not relevant.

Just to check that disk and zfs label are ok, i mounted the pool on a linux machine, everything is ok there.

On OI i cant import the pool, the "-f" flag does not help.

Details below.

Btw, just to be clear, I had this same error before i tried to import the pool with linux, so the import with linux is not the origin of the problem here.

Any hints on how to dig into this further are welcome!

Thanks!

Stephan

________________________________________

# zpool import
Password:
   pool: bkp1t
     id: 4466948378057274312
  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:

        bkp1t       FAULTED  corrupted data
          c8t2d0s0  UNAVAIL  corrupted data

# zdb -l /dev/rdsk/c8t2d0s0
------------------------------------
LABEL 0
------------------------------------
    version: 5000
    name: 'bkp1t'
    state: 0
    txg: 26349
    pool_guid: 4466948378057274312
    errata: 0
    hostid: 758768731
    hostname: 'Fuji'
    top_guid: 15764649591111927753
    guid: 15764649591111927753
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 15764649591111927753
        path: '/dev/sda1'
        devid: 'id1,sd@n50000396b5803dd2/a'
        phys_path: '/pci@0,0/pci8086,c01@1/pci1734,11e4@0/sd@4,1:a'
        whole_disk: 0
        metaslab_array: 256
        metaslab_shift: 33
        ashift: 13
        asize: 987837759488
        is_log: 0
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
    labels = 0 1 2 3


_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

The error occurs only on the buildtin AHCI SATA interface.

Now i have tested 2 slots that are on a HBA on an LSI based Raid controller in JOBD mode.
There i could import the pool, the disk is available.

I did not import the pool to keep the current state for further testing.

After connecting the disk back to a 'normal' AHCI port, the import is not possible as statet in the original post.

weird, no?

# /usr/lib/pci/pcieadm show-devs
BDF     TYPE           DRIVER         DEVICE
0/0/0   PCI            --             Xeon E3-1200 v3 Processor DRAM Controller 0/1/0   PCIe Gen 3x8   pcieb3         Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
1/0/0   PCIe Gen 3x8   mr_sas1        MegaRAID SAS 2208
...

$ sudo zpool import
Password:
   pool: bkp1t
     id: 4466948378057274312
  state: ONLINE
 status: The pool was last accessed by another system.
 action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-EY
 config:

        bkp1t        ONLINE
          c10t2d1s0  ONLINE
#  zdb -l /dev/rdsk/c10t2d1s0
------------------------------------
LABEL 0
------------------------------------
    version: 5000
    name: 'bkp1t'
    state: 0
    txg: 26349
    pool_guid: 4466948378057274312
    errata: 0
    hostid: 758768731
    hostname: 'Fuji'
    top_guid: 15764649591111927753
    guid: 15764649591111927753
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 15764649591111927753
        path: '/dev/sda1'
        devid: 'id1,sd@n50000396b5803dd2/a'
        phys_path: '/pci@0,0/pci8086,c01@1/pci1734,11e4@0/sd@4,1:a'
        whole_disk: 0
        metaslab_array: 256
        metaslab_shift: 33
        ashift: 13
        asize: 987837759488
        is_log: 0
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
    labels = 0 1 2 3
#  init 5 && exit
updating /platform/i86pc/amd64/boot_archive (CPIO)
logout
Connection to fuji closed.
steven@dell6510:~$ ssh -YXC fuji
The illumos Project     illumos-6dcbfae4aa      April 2021
You have new mail.
#  zpool import
Password:
   pool: bkp1t
     id: 4466948378057274312
  state: ONLINE
 status: The pool was last accessed by another system.
 action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-EY
 config:

        bkp1t         ONLINE
          c10t15d1s0  ONLINE
#  zdb -l /dev/rdsk/c10t15d1s0
------------------------------------
LABEL 0
------------------------------------
    version: 5000
    name: 'bkp1t'
    state: 0
    txg: 26349
    pool_guid: 4466948378057274312
    errata: 0
    hostid: 758768731
    hostname: 'Fuji'
    top_guid: 15764649591111927753
    guid: 15764649591111927753
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 15764649591111927753
        path: '/dev/sda1'
        devid: 'id1,sd@n50000396b5803dd2/a'
        phys_path: '/pci@0,0/pci8086,c01@1/pci1734,11e4@0/sd@4,1:a'
        whole_disk: 0
        metaslab_array: 256
        metaslab_shift: 33
        ashift: 13
        asize: 987837759488
        is_log: 0
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
    labels = 0 1 2 3
steven@fuji:~$



_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to