I think that PVE should not use /dev/sdX when creating the RAID. It's a common practise (and suggested) to use something unique that doesn't change when moving disks (or on reboots) like /dev/disks/by-id o /dev/disks/by-path
It has been mentioned multiple times in these forums and overall this is the recommended way. I have no idea why PVE folks still don't follow it. I changed the device naming by stopping server booting at the mount state and did a "zfs import -d /dev/disk/by-id/ poolname" where it was necessary.I think that PVE should not use /dev/sdX when creating the RAID. It's a common practise (and suggested) to use something unique that doesn't change when moving disks (or on reboots) like /dev/disks/by-id o /dev/disks/by-path
Sure, but as PVE natively support ZFS, i would expect that PVE is creating a pool in a proper way.This is why I always create the pool manually
It has been mentioned multiple times in these forums and overall this is the recommended way. I have no idea why PVE folks still don't follow it. I changed the device naming by stopping server booting at the mount state and did a "zfs import -d /dev/disk/by-id/ poolname" where it was necessary.
No, you import pools, not disks. e.g. if your pool is called 'tank', then do:
zpool export tank
zpool import -d /dev/disks/by-id tank
No. You will need to boot the node in rescue mode which includes chroot etc.Can this be done to a Proxmox ZFS Root Pool?
No. You will need to boot the node in rescue mode which includes chroot etc.
You can safely do it from initrd:
- reboot, and when grub displays the menu, press 'e' on the first line
- edit the linux line so it has break=mount at the end and then press ctrl-x
- when you get the promt, do 'modprobe zfs'
- now do a 'zpool import -d /dev/disk/by-id/ rpool'
- verify status with 'zpool status' - you should see device ids in place of the standard device names
- ctrl-d to continue booting
From now on you should see your pool based on device ids.
Could /sys/block/sd[x]/device be used as a work around?is not possible in the installer chroot.