On a fresh install of Proxmox on baremetal with RAID1/zfs, proxmox makes a very poor choice - it builds the RAID array using /dev/sdx notation (going totally against everything recommended by zfs). For many reasons /dev/sdx is a very BAD idea since it doesn't take much rebooting or messing around on most systems to see the specific drives jump to different sdx labels depending upon whether flash drives are inserted at time of boot, the speed of SAS controllers, etc.
So, I tried the reasonable thing to fix this -- booted into the proxmox installer in debug mode out to a command prompt and tried to import the zpool as by-id and re-export it so that on the next boot proxmox gets it right.
Flat out - nothing remotely related to /dev/disk/by-id works at all even with 0.7.4-pve-bpo9 of zfsutils-linux.
Here are the commands:
zpool import -d /dev/disk/by-id rpool (the error message is "no such pool or dataset")
Trust me, the pool exists. The error message is bogus.
zpool import rpool works perfectly fine.
So now we move to an attempted workaround:
zpool detach rpool sdb2
zpool attach rpool sda2 /dev/disk/by-id/mydevice-part2
Same error message "no such pool or dataset"
Tried some MORE messing around:
uninstall zfsutils-linux
try using the debian repositories (missing symbols - so pve has done something strange)
Try to fetch the symbols (after adding pve into the sources) - no dice, not found
try to install zfs-initramfs or zfs-dkms, no dice.
This is EXTREMELY repeatable. Can someone please fix this.
So, I tried the reasonable thing to fix this -- booted into the proxmox installer in debug mode out to a command prompt and tried to import the zpool as by-id and re-export it so that on the next boot proxmox gets it right.
Flat out - nothing remotely related to /dev/disk/by-id works at all even with 0.7.4-pve-bpo9 of zfsutils-linux.
Here are the commands:
zpool import -d /dev/disk/by-id rpool (the error message is "no such pool or dataset")
Trust me, the pool exists. The error message is bogus.
zpool import rpool works perfectly fine.
So now we move to an attempted workaround:
zpool detach rpool sdb2
zpool attach rpool sda2 /dev/disk/by-id/mydevice-part2
Same error message "no such pool or dataset"
Tried some MORE messing around:
uninstall zfsutils-linux
try using the debian repositories (missing symbols - so pve has done something strange)
Try to fetch the symbols (after adding pve into the sources) - no dice, not found
try to install zfs-initramfs or zfs-dkms, no dice.
This is EXTREMELY repeatable. Can someone please fix this.