ZFS suddenly inactive, unable access the zpools

johny_k

New Member
Sep 11, 2022
1
0
1
Hello gents, I would like to ask you for an advice after hours of googling without success.
After restarting my home servers when plying with VPN, my 1 month old SSD disk which I am using as a NAS (i know, 1 disk, nas, zfs....who does this) stoped working.

I was unable to access the storage, so after some investigation I am posting the output of some stats.
Zpool status shows no result, as I believe I can't work with pools when the whole zfs is inactive.
SMART disk status shows everything fine and PVE sees the disk.
I do not have any valuable data on it, so I might format it and try set it up again, but would prefer so save the data.

What do you thing is the problem? Thank you in advance!

Code:
~ lsblk
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                            8:0    0   1.8T  0 disk
├─sda1                         8:1    0     2G  0 part
└─sda2                         8:2    0   1.8T  0 part

Code:
➜  ~ cat /etc/pve/storage.cfg    
dir: local
        path /var/lib/vz
        content iso,vztmpl,backup

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

zfspool: nas_storage
        pool nas_storage
        content rootdir,images
        mountpoint /nas_storage
        nodes pve

Code:
➜  ~ pvesm status
zfs error: cannot open 'nas_storage': no such pool

internal error: cannot import 'nas_storage': Invalid exchange
zfs error: cannot open 'nas_storage': no such pool

could not activate storage 'nas_storage', zfs error: got signal 6

Name               Type     Status           Total            Used       Available        %
local               dir     active        98497780        17012260        76435972   17.27%
local-lvm       lvmthin     active       354791424        70745409       284046014   19.94%
nas_storage     zfspool   inactive               0               0               0    0.00%

Code:
➜  ~ zpool import -F                                    
   pool: nas_storage
     id: 16535101633831782377
  state: FAULTED
status: One or more devices contains corrupted data.
 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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E
 config:

        nas_storage  FAULTED  corrupted data
          sda2       FAULTED  corrupted data

Code:
1662910630   spa.c:6240:spa_tryimport(): spa_tryimport: importing nas_storage
1662910630   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): LOADING
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': best uberblock found for spa $import. txg 375908
1662910630   spa_misc.c:418:spa_load_note(): spa_load($import, config untrusted): using uberblock with txg=375908
1662910630   vdev.c:2382:vdev_copy_path_impl(): vdev_copy_path: vdev 211273734832273767: path changed from '/dev/sda2' to '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2'
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': metaslab_init failed [error=52]
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': vdev_load: metaslab_init failed [error=52]
1662910630   spa_misc.c:403:spa_load_failed(): spa_load($import, config trusted): FAILED: vdev_load failed [error=52]
1662910630   spa_misc.c:418:spa_load_note(): spa_load($import, config trusted): UNLOADING
1662910630   spa.c:6092:spa_import(): spa_import: importing nas_storage
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config trusted): LOADING
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': best uberblock found for spa nas_storage. txg 375908
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): using uberblock with txg=375908
1662910630   vdev.c:2382:vdev_copy_path_impl(): vdev_copy_path: vdev 211273734832273767: path changed from '/dev/sda2' to '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2'
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': metaslab_init failed [error=52]
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': vdev_load: metaslab_init failed [error=52]
1662910630   spa_misc.c:403:spa_load_failed(): spa_load(nas_storage, config trusted): FAILED: vdev_load failed [error=52]
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config trusted): UNLOADING
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config trusted): spa_load_retry: rewind, max txg: 375907
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config trusted): LOADING
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': best uberblock found for spa nas_storage. txg 375907
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': label discarded as txg is too large (375908 > 375907)
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': failed to read label config
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): using uberblock with txg=375907
1662910630   spa_misc.c:403:spa_load_failed(): spa_load(nas_storage, config untrusted): FAILED: label config unavailable
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): UNLOADING
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): spa_load_retry: rewind, max txg: 375906
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): LOADING
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': best uberblock found for spa nas_storage. txg 374855
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': label discarded as txg is too large (375908 > 374855)
1662910630   vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-id/wwn-0x5002538f4246ca2c-part2': failed to read label config
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): using uberblock with txg=374855
1662910630   spa_misc.c:403:spa_load_failed(): spa_load(nas_storage, config untrusted): FAILED: label config unavailable
1662910630   spa_misc.c:418:spa_load_note(): spa_load(nas_storage, config untrusted): UNLOADING

1662910464299.jpeg