ZFS pool import issues after upgrade

I still have my /dev/disk/by-id/ata-* devices (which are indeed referenced in active rpool and data pools)
I currently assume your system simply was not affected by the issue - else you might have encountered devices in your zpool being marked as unavailable.

I assume your disks are connected to an on-board SATA/SAS controller (or a NVMe), instead of through a HBA-card?

If this is true - a reboot should be fine (of course I cannot guarantee that - as I don't know your system in detail)
should you run into issues - as far as I know - importing the pool after it fails with `zpool import -d /dev/disk/by-id <poolname> ` should get everything back up.
 
could you try the following patch for the udev-rules file?:
Code:
diff --git a/scripts/55-scsi-sg3_id.rules b/scripts/55-scsi-sg3_id.rules
--- a/scripts/55-scsi-sg3_id.rules
+++ b/scripts/55-scsi-sg3_id.rules
@@ -69,6 +69,13 @@ IMPORT{program}="/usr/bin/sg_inq --export --page=di $env{.INQUIRY_DEV}"

 LABEL="compat"

+# Leave ID_* identification of ATA, ATAPI, and USB block devices to
+# 60-persistent-storage.rules (ata_id/usb_id) so SATA disks behind SAS HBAs or
+# USB-SAT bridges keep /dev/disk/by-id/ata-* links without VPD 0x83 T10 ATA.
+SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", GOTO="sg3_utils_id_end"
+SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{type}=="5", ATTRS{scsi_level}=="[6-9]*", GOTO="sg3_utils_id_end"
+SUBSYSTEM=="block", SUBSYSTEMS=="usb", GOTO="sg3_utils_id_end"
+
 # scsi_id compat mappings
 ENV{ID_VENDOR}!="?*", ENV{SCSI_VENDOR}=="?*", ENV{ID_VENDOR}="$env{SCSI_VENDOR}"
 ENV{ID_VENDOR_ENC}!="?*", ENV{SCSI_VENDOR_ENC}=="?*", ENV{ID_VENDOR_ENC}="$env{SCSI_VENDOR_ENC}"

copy the block above to a file - sg3-utils-udev.patch on your machine
then in the directory where the file is run:
Code:
patch -d /usr/lib/udev/rules.d/ -p2 < sg3-utils-rules.patch

afterward let udev recreate all links for blockdevices with the new rules:
Code:
udevadm trigger --action=change --subsystem-match=block
First I updated the purged files to the version 1.48-3+mp3, after reboot, it didn't change anything.

After that I tested it with your patch:
Code:
root@proxmox:~# cat sg3-utils-udev.patch
diff --git a/scripts/55-scsi-sg3_id.rules b/scripts/55-scsi-sg3_id.rules
--- a/scripts/55-scsi-sg3_id.rules
+++ b/scripts/55-scsi-sg3_id.rules
@@ -69,6 +69,13 @@ IMPORT{program}="/usr/bin/sg_inq --export --page=di $env{.INQUIRY_DEV}"

 LABEL="compat"

+# Leave ID_* identification of ATA, ATAPI, and USB block devices to
+# 60-persistent-storage.rules (ata_id/usb_id) so SATA disks behind SAS HBAs or
+# USB-SAT bridges keep /dev/disk/by-id/ata-* links without VPD 0x83 T10 ATA.
+SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", GOTO="sg3_utils_id_end"
+SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{type}=="5", ATTRS{scsi_level}=="[6-9]*", GOTO="sg3_utils_id_end"
+SUBSYSTEM=="block", SUBSYSTEMS=="usb", GOTO="sg3_utils_id_end"
+
 # scsi_id compat mappings
 ENV{ID_VENDOR}!="?*", ENV{SCSI_VENDOR}=="?*", ENV{ID_VENDOR}="$env{SCSI_VENDOR}"
 ENV{ID_VENDOR_ENC}!="?*", ENV{SCSI_VENDOR_ENC}=="?*", ENV{ID_VENDOR_ENC}="$env{SCSI_VENDOR_ENC}"
root@proxmox:~# cp /usr/lib/udev/rules.d/55-scsi-sg3_id.rules .
root@proxmox:~# patch -d /usr/lib/udev/rules.d/ -p2 < sg3-utils-udev.patch
patching file 55-scsi-sg3_id.rules
Hunk #1 succeeded at 80 with fuzz 2 (offset 11 lines).
root@proxmox:~# udevadm trigger --action=change --subsystem-match=block
root@proxmox:~# zpool import -aN -d /dev/disk/by-id -o cachefile=none
root@proxmox:~# zpool status -Dvt vault
  pool: vault
 state: ONLINE
  scan: resilvered 1.46M in 00:00:02 with 0 errors on Wed Nov 25 17:34:04 2026
config:

        NAME                                                   STATE     READ WRITE CKSUM
        vault                                                  ONLINE       0     0     0
          raidz2-0                                             ONLINE       0     0     0
            wwn-0x5000cca415c9f8e0                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca415ca6ca9                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca415cc1631                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fadd2f1b                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fadcbf5d                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca418c56dd3                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fadcb4b0                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fade39bf                             ONLINE       0     0     0  (trim unsupported)
        logs
          mirror-3                                             ONLINE       0     0     0
            ata-SanDisk_SDSSDH3_1T00_<redacted>-part4        ONLINE       0     0     0  (100% trimmed, completed at Mon Nov 23 15:23:13 2026)
            ata-SanDisk_SDSSDH3_1T00_<redacted>-part4        ONLINE       0     0     0  (100% trimmed, completed at Mon Nov 23 15:23:13 2026)
        cache
          nvme-Sabrent_Rocket_nano_<redacted>-part1  ONLINE       0     0     0  (untrimmed)

errors: No known data errors

 dedup: DDT entries 83351, size 39.8M on disk, 17.8M in core

bucket              allocated                       referenced
______   ______________________________   ______________________________
refcnt   blocks   LSIZE   PSIZE   DSIZE   blocks   LSIZE   PSIZE   DSIZE
------   ------   -----   -----   -----   ------   -----   -----   -----
     1    81.2K   10.0G   9.96G   9.97G    81.2K   10.0G   9.96G   9.97G
     2      164   17.4M   17.1M   17.3M      334   34.9M   34.3M   34.7M
     4        1    128K    128K    128K        4    512K    512K    512K
    16        1      1K      1K   8.53K       27     27K     27K    230K
 Total    81.4K   10.0G   9.98G   9.98G    81.6K   10.1G   9.99G   10.0G

root@proxmox:~#

It didn't work, so...

Edit: I think I applied the patch correctly:
Code:
root@proxmox:~# diff /usr/lib/udev/rules.d/55-scsi-sg3_id.rules 55-scsi-sg3_id.rules
83,89d82
< # Leave ID_* identification of ATA, ATAPI, and USB block devices to
< # 60-persistent-storage.rules (ata_id/usb_id) so SATA disks behind SAS HBAs or
< # USB-SAT bridges keep /dev/disk/by-id/ata-* links without VPD 0x83 T10 ATA.
< SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", GOTO="sg3_utils_id_end"
< SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{type}=="5", ATTRS{scsi_level}=="[6-9]*", GOTO="sg3_utils_id_end"
< SUBSYSTEM=="block", SUBSYSTEMS=="usb", GOTO="sg3_utils_id_end"
<
 
Last edited:
I currently assume your system simply was not affected by the issue - else you might have encountered devices in your zpool being marked as unavailable.

I assume your disks are connected to an on-board SATA/SAS controller (or a NVMe), instead of through a HBA-card?

If this is true - a reboot should be fine (of course I cannot guarantee that - as I don't know your system in detail)
should you run into issues - as far as I know - importing the pool after it fails with `zpool import -d /dev/disk/by-id <poolname> ` should get everything back up.
Not quiet, the zfs data sets won't get mounted that way.
 
These are the packages I'm also getting from the test repository:
- sg3-utils (1.48-3+pmx3)
- sg3-utils-udev (1.48-3+pmx3)
- multipath-tools (0.11.1-2)

Same behavior also with both kernels:
- 7.0.14-30-pve
- 7.3.6-1-pve
 
Not quiet, the zfs data sets won't get mounted that way.
how - not mounted - your pool is imported - and I assume zfs list and mount show the datasets are mounted?
(If something apart from the device-names listed in `zpool status` is different or not working - please write - so we don't miss something)

First I updated the purged files to the version 1.48-3+mp3, after reboot, it didn't change anything.
the patch is what's included in version 1.48-3+pmx3 - so there was no need for it with that version anymore - to get everything
back as it should be just reinstall the packages:
Code:
apt install --reinstall sg3-utils sg3-utils-udev
 
how - not mounted - your pool is imported - and I assume zfs list and mount show the datasets are mounted?
(If something apart from the device-names listed in `zpool status` is different or not working - please write - so we don't miss something)


the patch is what's included in version 1.48-3+pmx3 - so there was no need for it with that version anymore - to get everything
back as it should be just reinstall the packages:
Code:
apt install --reinstall sg3-utils sg3-utils-udev
Sorry, I should clarify, after importing the pool, the datasets didn't mount automatically (is this the behavior?), after rebooting the machine, the data sets mounted correctly.

the patch is what's included in version 1.48-3+pmx3 - so there was no need for it with that version anymore - to get everything
back as it should be just reinstall the packages:
OK, let me know, if I can test anything.

I'm exporting my pool for now, since I don't want to risk any corruption or data lost, because of the kernel message:
Code:
ZFS: Using ZFS with kernel 7.3.6-1-pve is EXPERIMENTAL and SERIOUS DATA LOSS may occur!
 
Thanks! - looks like a candidate - yes...

could you share:
Code:
dmsetup ls
multipath -ll
Bash:
root@b04:~# dmsetup ls
No devices found
root@b04:~# multipath -ll
# nothing
see also https://bugzilla.proxmox.com/show_bug.cgi?id=8376 for further information.

zfs-zed listens on udev events, and might have caused the pool(rather a vdev in it0 to be marked as unailable due
to the changed udev-rules removing the device link.

we uploaded a new version of sg3-utils (and all resulting binary packages) to our pve-test repository:
could you try installing the packages with version `1.48-3+pmx3` and see if the issue reoccurs?

(it's postinst messages writes that you might need to run `udevadm trigger --action=change --subsystem-match=block`
to regenerate all links - posting it here as well as it might be easier to copy)
Upgraded to latest libpve-rs-perl libpve-storage-perl libsgutils2-1.48 proxmox-ve proxmox-widget-toolkit pve-docs pve-manager sg3-utils sg3-utils-udev
No errors this time and ata-XXX block devices appeared again on "/dev/disk/by-id/" without needing to reboot.
 
  • Like
Reactions: Stoiko Ivanov
ZFS: Using ZFS with kernel 7.3.6-1-pve is EXPERIMENTAL and SERIOUS DATA LOSS may occur!
The warning stems from the point that ZFS 2.4.4 back when it was released did not support kernel 7.3 (IIRC because that kernel was not released back then).

We did backport/pick the patches needed for kernel 7.3 support before releasing this kernel (and have tested it internally, and run it on a number of machines - without any issues).

The warning should be gone once we build our kernel with ZFS 2.4.5 (which should be released soon as far as I know).


Sorry, I should clarify, after importing the pool, the datasets didn't mount automatically (is this the behavior?), after rebooting the machine, the data sets mounted correctly.
ok - thanks for the clarification! - the datasets did not mount, because the pool could not be imported - once you imported it (with zpool import -d /dev/disk/by-id) everything worked.
I assume the pool could not be imported because the zpool.cache file still had the /dev/disk/by-id links on record which were not present with sg3-utils in version 1.48-3+pmx2. The issue here was sg3-utils 1.48-3+pmx2 having the regressions, which should be fixed with 1.48-3+pmx3

I hope this explains it!
 
I'm also on the latest version (with applying apt install --reinstall sg3-utils sg3-utils-udev.
.
I'm having three types of symlinks for the devices:
Code:
root@proxmox:~# ls -lah /dev/disk/by-id/|grep sda
lrwxrwxrwx 1 root root    9 Nov 25 21:11 ata-WDC_WD240EDGZ-<redacted> -> ../../sda
lrwxrwxrwx 1 root root   10 Nov 25 21:11 ata-WDC_WD240EDGZ-<redacted>-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov 25 21:11 ata-WDC_WD240EDGZ-<redacted>-part9 -> ../../sda9
lrwxrwxrwx 1 root root    9 Nov 25 21:11 scsi-35000cca415c9f8e0 -> ../../sda
lrwxrwxrwx 1 root root   10 Nov 25 21:11 scsi-35000cca415c9f8e0-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov 25 21:11 scsi-35000cca415c9f8e0-part9 -> ../../sda9
lrwxrwxrwx 1 root root    9 Nov 25 21:11 wwn-0x5000cca415c9f8e0 -> ../../sda
lrwxrwxrwx 1 root root   10 Nov 25 21:11 wwn-0x5000cca415c9f8e0-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov 25 21:11 wwn-0x5000cca415c9f8e0-part9 -> ../../sda9

After udevadm trigger --action=change --subsystem-match=block or udevadm trigger --action=change --settle /dev/sda still same symlinks:
Code:
root@proxmox:~# udevadm trigger --action=change --subsystem-match=block
root@proxmox:~# udevadm trigger --action=change --settle /dev/sda
root@proxmox:~# ls -lah /dev/disk/by-id/|grep sda
lrwxrwxrwx 1 root root    9 Nov 25 21:11 ata-WDC_WD240EDGZ-<redacted> -> ../../sda
lrwxrwxrwx 1 root root   10 Nov 25 21:11 ata-WDC_WD240EDGZ-<redacted>-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov 25 21:11 ata-WDC_WD240EDGZ-<redacted>-part9 -> ../../sda9
lrwxrwxrwx 1 root root    9 Nov 25 21:11 scsi-35000cca415c9f8e0 -> ../../sda
lrwxrwxrwx 1 root root   10 Nov 25 21:11 scsi-35000cca415c9f8e0-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov 25 21:11 scsi-35000cca415c9f8e0-part9 -> ../../sda9
lrwxrwxrwx 1 root root    9 Nov 25 21:11 wwn-0x5000cca415c9f8e0 -> ../../sda
lrwxrwxrwx 1 root root   10 Nov 25 21:11 wwn-0x5000cca415c9f8e0-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov 25 21:11 wwn-0x5000cca415c9f8e0-part9 -> ../../sda9
root@proxmox:~# zpool import -d /dev/disk/by-id vault
root@proxmox:~# zpool status -Dvt vault
  pool: vault
 state: ONLINE
  scan: resilvered 1.46M in 00:00:02 with 0 errors on Wed Nov 25 17:34:04 2026
config:

        NAME                                                   STATE     READ WRITE CKSUM
        vault                                                  ONLINE       0     0     0
          raidz2-0                                             ONLINE       0     0     0
            wwn-0x5000cca415c9f8e0                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca415ca6ca9                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca415cc1631                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fadd2f1b                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fadcbf5d                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca418c56dd3                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fadcb4b0                             ONLINE       0     0     0  (trim unsupported)
            wwn-0x5000cca2fade39bf                             ONLINE       0     0     0  (trim unsupported)
        logs
          mirror-3                                             ONLINE       0     0     0
            ata-SanDisk_SDSSDH3_1T00_<redacted>-part4        ONLINE       0     0     0  (100% trimmed, completed at Mon Nov 23 15:23:13 2026)
            ata-SanDisk_SDSSDH3_1T00_<redacted>-part4        ONLINE       0     0     0  (100% trimmed, completed at Mon Nov 23 15:23:13 2026)
        cache
          nvme-Sabrent_Rocket_nano_<redacted>-part1  ONLINE       0     0     0  (untrimmed)

errors: No known data errors

But the import still imports them with wwn, how can I revert this?
 
Last edited:
The warning stems from the point that ZFS 2.4.4 back when it was released did not support kernel 7.3 (IIRC because that kernel was not released back then).

We did backport/pick the patches needed for kernel 7.3 support before releasing this kernel (and have tested it internally, and run it on a number of machines - without any issues).

The warning should be gone once we build our kernel with ZFS 2.4.5 (which should be released soon as far as I know).



ok - thanks for the clarification! - the datasets did not mount, because the pool could not be imported - once you imported it (with zpool import -d /dev/disk/by-id) everything worked.
I assume the pool could not be imported because the zpool.cache file still had the /dev/disk/by-id links on record which were not present with sg3-utils in version 1.48-3+pmx2. The issue here was sg3-utils 1.48-3+pmx2 having the regressions, which should be fixed with 1.48-3+pmx3

I hope this explains it!
No the datasets did not mount after a succesful importing, see:
root@proxmox:~# zpool import -d /dev/disk/by-id vault
root@proxmox:~# zpool status -Dvt vault
pool: vault
state: ONLINE
scan: resilvered 1.46M in 00:00:02 with 0 errors on Wed Nov 25 17:34:04 2026
config:

NAME STATE READ WRITE CKSUM
vault ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
wwn-0x5000cca415c9f8e0 ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca415ca6ca9 ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca415cc1631 ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca2fadd2f1b ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca2fadcbf5d ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca418c56dd3 ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca2fadcb4b0 ONLINE 0 0 0 (trim unsupported)
wwn-0x5000cca2fade39bf ONLINE 0 0 0 (trim unsupported)
logs
mirror-3 ONLINE 0 0 0
ata-SanDisk_SDSSDH3_1T00_<redacted>-part4 ONLINE 0 0 0 (100% trimmed, completed at Mon Nov 23 15:23:13 2026)
ata-SanDisk_SDSSDH3_1T00_<redacted>-part4 ONLINE 0 0 0 (100% trimmed, completed at Mon Nov 23 15:23:13 2026)
cache
nvme-Sabrent_Rocket_nano_<redacted>-part1 ONLINE 0 0 0 (untrimmed)

errors: No known data errors

dedup: DDT entries 83351, size 39.8M on disk, 17.8M in core

bucket allocated referenced
______ ______________________________ ______________________________
refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE
------ ------ ----- ----- ----- ------ ----- ----- -----
1 81.2K 10.0G 9.96G 9.97G 81.2K 10.0G 9.96G 9.97G
2 164 17.4M 17.1M 17.3M 334 34.9M 34.3M 34.7M
4 1 128K 128K 128K 4 512K 512K 512K
16 1 1K 1K 8.53K 27 27K 27K 230K
Total 81.4K 10.0G 9.98G 9.98G 81.6K 10.1G 9.99G 10.0G

root@proxmox:~# ls -la /vault/
ls: cannot access '/vault/': No such file or directory
After a reboot though, the datasets are mounted again.
Code:
root@proxmox:~# uptime
 21:41:39 up 1 min,  2 users,  load average: 3.06, 0.87, 0.30
root@proxmox:~# ls -la /va
var/   vault/
root@proxmox:~# ls -la /vault/
total 61K
drwxr-xr-x  4 root root  4 Jul 17 15:04 .
drwxr-xr-x 20 root root 24 Nov 25 21:41 ..
drwxr-xr-x  6 root root  7 Aug 28 15:13 backup
drwxr-xr-x  9 root root  9 Jul 29 18:16 storage
root@proxmox:~#

I understood the problem you have fixed, but how can I invalidate that cache and revert back to ata-* listing?
 
Last edited:
I currently assume your system simply was not affected by the issue - else you might have encountered devices in your zpool being marked as unavailable.

I assume your disks are connected to an on-board SATA/SAS controller (or a NVMe), instead of through a HBA-card?

If this is true - a reboot should be fine (of course I cannot guarantee that - as I don't know your system in detail)
should you run into issues - as far as I know - importing the pool after it fails with `zpool import -d /dev/disk/by-id <poolname> ` should get everything back up.

The rpool has 2 mirrored ata-* disks on the onboard SATA Controller.
The data pool has 8 ata-* SATA disks on a MegaRAID SAS-3 3108 (Dell Perc H730) in HBA mode (and 2 mirrored nvme-* disks as svdev).
All ata* disks have been referenced as both ata-* and wwn-* in /dev/disk/by-id/ after installing pmx2 and later pmx3 (and also before that).

The 'best practice' question however was also more generic; what kind of setups/package versions are affected by this?
Mainly to warn users / avoid running into unpleasant surprises after rebooting systems on the next kernel update.

Is wwn-* prefered over ata-*?

Bash:
root@b04:~# dmsetup ls
No devices found
root@b04:~# multipath -ll
# nothing
Same here,
 
Last edited:
Fyi, same happened to me this morning, rebooted after update, and only 2 of 3 pools were mounted, one pool was manually started by proxmox itself looking for vm storage, second pool was started by docker asserting on missing storage, third pool remained missing until i manually fixed the cache, issue is that all the original pool registrations were done using ata designations and they disappeared, and i now use the wwn designations, after I manually re-registered the 3 pools in the zfs cache a reboot now returns all the pools healthy, gave me quite a scare.