Hi,
I have a backup system which is a USB3 HDD bay for 5 HDDs.
The 5 HDDs had been added to the system as a ZFS raidz-1.
On the proxmox machine is a script running which is turning on the power supply of the HDD bay 5 minutes before the backup starts.
Then the device was added with the following commands:
This worked perfectly for the past 2 years.
Since I updated proxmox around a month ago, the zfs was failing, at first I thought one of the HDDs is faulty.
So I bought a new one and tried to replace it, just to figure out that zfs was complaining about another HDD.
Long story short, I connected the HDD bay to my windows machine and check all HDDs with HDDscan.
Everything worked perfectly fine (just that afterwards all data on the backup was gone).
So I went back to proxmox and connected the device again.
The I figured out, that randomly one of the devices has the wrong name.
So if I restart the HDD Bay, one of the HDDs has suddenly a differen id.

Also under /dev/disk/by-id the ID is wrong.
One of the devices is getting the USB id as an identifier.
Since this is happening randomly (probably to the HDD which is spinning up first!?) the device identifier is not reliable.

Proxmox: 7.3-6
Kernel: Linux pvetmy1 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64 GNU/Linux
How can I fix this behavior?
How can I ensure the HDD is getting the correct device id, and not the device if of the USB bay?
Thank you.
I have a backup system which is a USB3 HDD bay for 5 HDDs.
The 5 HDDs had been added to the system as a ZFS raidz-1.
On the proxmox machine is a script running which is turning on the power supply of the HDD bay 5 minutes before the backup starts.
Then the device was added with the following commands:
Bash:
/usr/sbin/zpool import BACKUP
/usr/sbin/zfs mount BACKUP
/usr/sbin/pvesm add dir BACKUP -path /BACKUP -content backup
This worked perfectly for the past 2 years.
Since I updated proxmox around a month ago, the zfs was failing, at first I thought one of the HDDs is faulty.
So I bought a new one and tried to replace it, just to figure out that zfs was complaining about another HDD.
Long story short, I connected the HDD bay to my windows machine and check all HDDs with HDDscan.
Everything worked perfectly fine (just that afterwards all data on the backup was gone).
So I went back to proxmox and connected the device again.
The I figured out, that randomly one of the devices has the wrong name.
So if I restart the HDD Bay, one of the HDDs has suddenly a differen id.

Also under /dev/disk/by-id the ID is wrong.
One of the devices is getting the USB id as an identifier.
Since this is happening randomly (probably to the HDD which is spinning up first!?) the device identifier is not reliable.

Proxmox: 7.3-6
Kernel: Linux pvetmy1 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64 GNU/Linux
How can I fix this behavior?
How can I ensure the HDD is getting the correct device id, and not the device if of the USB bay?
Thank you.