Booting Proxmox from alternate disks
- Install proxmox with debug mode enabled
- After the install finishes, you’ll be dropped to a shell prompt.
- This is where we begin our journey.
|
|
|
|
|
|
|
|
|
|
append “rootdelay=5
” to /etc/kernel/cmdline
proxmox-boot-tool format /dev/sdd2
proxmox-boot-tool init /dev/sdd2
proxmox-boot-tool clean
Now… if you HADN’T added the rootdelay
statement to the kernel cmdline
above, proxmox won’t boot like you’d expect.
Previously I thought we needed to do this: zpool export rpool
But it seems like that… wasn’t my best idea, as on the subsequent boot I had to manually:
zpool import rpool
to get things rolling for that boot…
However…. upon the next system boot this was still a problem. I found this: proxmox forum post which helped me realize we need to tell the kernel that it needs to wait for the block devices to be presented somehow.
we need to:
- Append “
rootdelay=10
” to/etc/kernel/cmdline
- Re-run
pve-efiboot-tool refresh
- Reboot
A problem we ran into while playing was that the kernel tries to boot before zfs has made things available. the addition of therootdelay
parameter to/etc/kernel/cmdline
mentioned here was what fixed this for us.. You may need to increase that timeout, depending on your environment.