[SOLVED] Change ZFS Poolname?

If you mean the naming of the 'rpool' from the ISO installer - no this is hardcoded currently.

If you mean renaming a zpool after you've created it and mounted it - this should be possible (roughly and without testing: stop the services, export the pool, reimport it with a new pool name (man zpool) - and adapt the config file (datastore path))

I hope this helps!
 
OK, i have change all "rpool" Entries in Config's under /etc /boot to the new Poolname (grep was my friend!),
reboot in debug mode with the Install Image and
zpool import -f rpool 'newname' .
Ready, Boot -> Work!

Thanks for your Help!
 
  • Like
Reactions: Stoiko Ivanov
OK, i have change all "rpool" Entries in Config's under /etc /boot to the new Poolname (grep was my friend!),
reboot in debug mode with the Install Image and
zpool import -f rpool 'newname' .
Ready, Boot -> Work!

Thanks for your Help!
I assume you also exported...
Could you point to which configs you had to change references to rpool??? Or how you got a complete overview??
 
I know this is old, but for whoever stumbles upon this and is running systemd-boot, ensure to do a 'promox-boot-tool refresh' after making your changes in /etc prior to booting in debug mode.
 
I've just spent troubleshooting this for 4 days, but finally realized where I went wrong. It was the order of things. I wanted to change the boot pool name from "rpool" to "spool":
1) Install proxmox, boot it
2) Login and edit most files containing "rpool" in /etc and /boot. I used "find /etc -type f -exec grep -H 'rpool' {} \;" and "find /boot -type f -exec grep -H 'rpool' {} \;". That lists all files, edit each one, except the grub lock files.
3) proxmox-boot-tool refresh
4) Reboot, boot the proxmox installer in debug mode (advanced - graphical debug), press Ctrl-D once to skip first stage
5) "zpool import" lists all your pool including rpool. "zpool import -f rpool spool" to rename, "zfs list" to verify, then "zpool export spool".
6) Reboot into Proxmox and it now works, running from "spool"!
Thanks for the info above!
 
Last edited: