You are not logged in.

#1 2023-10-21 04:24:36

FallenSnow
Member
Registered: 2014-04-07
Posts: 39

Unable to import ZFS pool with all disks online

My system locked up so I hard powered off the system and decided to take a moment to update the BIOS. After the BIOS update I started getting zfs read/write/checksum errors every few seconds from the disks so I downgraded back to the old BIOS. However even after returning to the old BIOS version I kept getting errors. I did some reading and decided to switch SATA ports on the motherboard. Now I can't import the pool at all.

➜  ~ sudo zpool import
   pool: STORAGE
     id: 13430433581951149895
  state: ONLINE
status: One or more devices contains corrupted data.
 action: The pool can be imported using its name or numeric identifier.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
 config:

        STORAGE                                              ONLINE
          mirror-0                                           ONLINE
            wwn-0x5000cca2c1c857a9                           ONLINE
            wwn-0x5000cca2c1c85c06                           ONLINE
        cache
          nvme1n1p2
          nvme0n1p2
        logs
          mirror-2                                           ONLINE
            nvme-eui.e8238fa6bf530001001b448b41d65cfd-part1  ONLINE
            nvme-eui.e8238fa6bf530001001b448b41d68250-part1  ONLINE
➜  ~ sudo zpool import STORAGE
cannot import 'STORAGE': insufficient replicas
        Destroy and re-create the pool from
        a backup source.

Even though there is a

One or more devices contains corrupted data.

message, it states the pool can still be imported. I'm not really sure what's wrong.

Last edited by FallenSnow (2023-10-21 04:25:14)

Offline

#2 2023-10-21 04:41:27

FallenSnow
Member
Registered: 2014-04-07
Posts: 39

Re: Unable to import ZFS pool with all disks online

I've enabled the zfs debug messages and got the following

timestamp    message
1697863039   spa.c:6400:spa_tryimport(): spa_tryimport: importing STORAGE
1697863039   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): LOADING
1697863039   vdev.c:161:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5000cca2c1c857a9-part1': best uberblock found for spa $import. txg 1223953
1697863039   spa_misc.c:418:spa_load_note(): spa_load($import, config untrusted): using uberblock with txg=1223953
1697863039   spa.c:8543:spa_async_request(): spa=$import async request task=4096
1697863039   spa.c:8543:spa_async_request(): spa=$import async request task=4096
1697863039   spa.c:8543:spa_async_request(): spa=$import async request task=2048
1697863039   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): LOADED
1697863039   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): UNLOADING
1697863090   spa.c:6400:spa_tryimport(): spa_tryimport: importing STORAGE
1697863090   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): LOADING
1697863090   vdev.c:161:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5000cca2c1c857a9-part1': best uberblock found for spa $import. txg 1223953
1697863090   spa_misc.c:418:spa_load_note(): spa_load($import, config untrusted): using uberblock with txg=1223953
1697863090   spa.c:8543:spa_async_request(): spa=$import async request task=4096
1697863090   spa.c:8543:spa_async_request(): spa=$import async request task=4096
1697863090   spa.c:8543:spa_async_request(): spa=$import async request task=2048
1697863090   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): LOADED
1697863090   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): UNLOADING
1697863090   spa.c:6252:spa_import(): spa_import: importing STORAGE
1697863090   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): LOADING
1697863090   vdev.c:161:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5000cca2c1c857a9-part1': best uberblock found for spa STORAGE. txg 1223953
1697863090   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config untrusted): using uberblock with txg=1223953
1697863090   spa.c:8543:spa_async_request(): spa=STORAGE async request task=4096
1697863090   spa.c:8543:spa_async_request(): spa=STORAGE async request task=4096
1697863093   spa_misc.c:404:spa_load_failed(): spa_load(STORAGE, config trusted): FAILED: spa_ld_log_sm_data(): failed at space_map_iterate(obj=1689) [error 52]
1697863093   spa_misc.c:404:spa_load_failed(): spa_load(STORAGE, config trusted): FAILED: spa_ld_log_spacemaps failed [error=52]
1697863093   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): UNLOADING
1697863093   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): spa_load_retry: rewind, max txg: 1223952
1697863093   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): LOADING
1697863093   vdev.c:161:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5000cca2c1c85c06-part1': best uberblock found for spa STORAGE. txg 1223952
1697863093   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config untrusted): using uberblock with txg=1223952
1697863093   spa.c:8543:spa_async_request(): spa=STORAGE async request task=4096
1697863093   spa.c:8543:spa_async_request(): spa=STORAGE async request task=4096
1697863096   spa_misc.c:404:spa_load_failed(): spa_load(STORAGE, config trusted): FAILED: spa_ld_log_sm_data(): failed at space_map_iterate(obj=1689) [error 52]
1697863096   spa_misc.c:404:spa_load_failed(): spa_load(STORAGE, config trusted): FAILED: spa_ld_log_spacemaps failed [error=52]
1697863096   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): UNLOADING
1697863096   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): spa_load_retry: rewind, max txg: 1223951
1697863096   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): LOADING
1697863096   vdev.c:161:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5000cca2c1c85c06-part1': best uberblock found for spa STORAGE. txg 1223949
1697863096   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config untrusted): using uberblock with txg=1223949
1697863096   spa.c:8543:spa_async_request(): spa=STORAGE async request task=4096
1697863096   spa.c:8543:spa_async_request(): spa=STORAGE async request task=4096
1697863099   spa_misc.c:404:spa_load_failed(): spa_load(STORAGE, config trusted): FAILED: spa_ld_log_sm_data(): failed at space_map_iterate(obj=1689) [error 52]
1697863099   spa_misc.c:404:spa_load_failed(): spa_load(STORAGE, config trusted): FAILED: spa_ld_log_spacemaps failed [error=52]
1697863099   spa_misc.c:418:spa_load_note(): spa_load(STORAGE, config trusted): UNLOADING

Offline

#3 2023-10-21 05:27:36

FallenSnow
Member
Registered: 2014-04-07
Posts: 39

Re: Unable to import ZFS pool with all disks online

I've been able to import the pool in a read only state using

sudo zpool import STORAGE -o readonly=on

but now I'm stuck with a read only pool.

Offline

Board footer

Powered by FluxBB