HI All,
I'm seeing strange behaviour with a 5 bay Orico USB external drive chassis that is preventing me from using it with ZFS. The chassis has 4 x 8tb disks installed and each disk appears in /dev - in this case as /dev/sde, /dev/sdf, /dev/sdg and /dev/sdh.
So far so good. But only 3 of the drives appear in /dev/disk/by-id, or more precisely only 3 drives appear at any one time.
So for example, on reboot, "ls -la /dev/disk/by-id | grep usb" shows device id's for sdg, sdh and sdf but not sde.
Running "fdisk /dev/sde" shows the device is actually there. If I modify it with fdisk and check again, /dev/disk/by-id now shows sde, sdg and sdh but now sdf is missing.
This goes round and around until you realise you can only see 3 drives at any one time in /dev/disk/by-id.
The issue of course is that referencing disks as /dev/sdX in a zfs pool risks random change by the OS. Because I can't use /dev/disk/by-id I've tried a few other referencing methods including by-partuuid, GPT partition labels and udev rules.
They all look great and allow the pool to be created. But on the first of second reboot, ZFS decides to map the disks over to /dev/disk/by-id and reports that one of the disks is faulted and has corrupted data. I assume this is because it can only find 3 disks in /dev/disk/by-id but I'm not entirely sure.
The worst part is that I see this behaviour using all referencing methods including /dev/sdX, so the external bay is essentially useless for ZFS.
Is there a way to stop ZFS remapping the drives to /dev/disk/by-id?
Running proxmox-ve: 8.4.0 (kernel 6.8.12-9-pve)
Thanks
I'm seeing strange behaviour with a 5 bay Orico USB external drive chassis that is preventing me from using it with ZFS. The chassis has 4 x 8tb disks installed and each disk appears in /dev - in this case as /dev/sde, /dev/sdf, /dev/sdg and /dev/sdh.
So far so good. But only 3 of the drives appear in /dev/disk/by-id, or more precisely only 3 drives appear at any one time.
So for example, on reboot, "ls -la /dev/disk/by-id | grep usb" shows device id's for sdg, sdh and sdf but not sde.
Running "fdisk /dev/sde" shows the device is actually there. If I modify it with fdisk and check again, /dev/disk/by-id now shows sde, sdg and sdh but now sdf is missing.
This goes round and around until you realise you can only see 3 drives at any one time in /dev/disk/by-id.
The issue of course is that referencing disks as /dev/sdX in a zfs pool risks random change by the OS. Because I can't use /dev/disk/by-id I've tried a few other referencing methods including by-partuuid, GPT partition labels and udev rules.
They all look great and allow the pool to be created. But on the first of second reboot, ZFS decides to map the disks over to /dev/disk/by-id and reports that one of the disks is faulted and has corrupted data. I assume this is because it can only find 3 disks in /dev/disk/by-id but I'm not entirely sure.
The worst part is that I see this behaviour using all referencing methods including /dev/sdX, so the external bay is essentially useless for ZFS.
Is there a way to stop ZFS remapping the drives to /dev/disk/by-id?
Running proxmox-ve: 8.4.0 (kernel 6.8.12-9-pve)
Thanks