Change zfs boot pool name

RealPjotr

New Member
May 31, 2023
1
0
1
Hi. I'm adding a new node to my Proxmox cluster where all earlier nodes use the boot disks for VM storage. I've setup HA syncing via the ZFS rpool.

Now I want to add another node, but I want to have rpool on separate data disks, not the boot media. I've managed to rename the boot disk rpool to spool ok, so now Promox fails to boot because /proc/cmdline looks like this:

initrd=\EFI\proxmox\6.8.4-2-pve\initrd.img-6.8.4-2-pve root=ZFS=rpool/ROOT/pve-1 boot=zfs

I get stuck in initramfs and have trouble editing this file. How can I do this?
 
You can't edit that file. It just gives you a read-only copy to show the command line that was passed to the kernel by the boot loader. At this point, even if you were able to modify it, it's already too late. The kernel has processed all that information.

You probably need to edit /etc/kernel/cmdline and then you have to rebuild all the boot loader files. Usually, this involves executing the proxmox-boot-tool from the running system.

You can in principle do this from the within the initramfs rescue shell. But it's a bit tedious. I am not sure how to walk you through the steps without having access to your computer to keep checking things.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!