zpool upgrade

dodi71

Member
Jan 8, 2020
5
0
6
51
Is it safe to use 'zpool upgrade' on the rpool and nas pool. the Proxmox-boot-tool status is:

04AB-4804 is configured with: uefi (versions: 5.3.18-3-pve, 5.4.106-1-pve, 5.4.98-1-pve), grub (versions: 5.13.19-6-pve, 5.15.35-1-pve)
04AB-8A6C is configured with: uefi (versions: 5.3.18-3-pve, 5.4.106-1-pve, 5.4.98-1-pve), grub (versions: 5.13.19-6-pve, 5.15.35-1-pve)

regards,
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
7,195
1,132
164
Is it safe to use 'zpool upgrade' on the rpool and nas pool. the Proxmox-boot-tool status is:
please post the complete output of proxmox-boot-tool status - the line indicating how that system is currently booted is missing
(it seems as if the system used to be booted with UEFI but switched to legacy with 7.1?! This sounds rather odd)

else to verify which bootloader is used - please check the reference documenation:
https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysboot_determine_bootloader_used

pools, which are not rpool should be safe for upgrading in any case

I hope this helps!
 

dodi71

Member
Jan 8, 2020
5
0
6
51
Thanks @Stoiko Ivanov for your reply. I verified the boot loader used by the system and it is confirmed to be Grub. I have noticed that I have two kernels i.ei :

Automatically selected kernels:
5.13.19-6-pve
5.15.35-1-pve

and the pinned kernel is:

Pinned kernel:
5.15.35-1-pve

I was thinking to remove the old version (5.13.19-6-pve) but wanted to confirm if it is safe?

BTW, I have upgraded the NAS ZFS without any problems. now what is left is the rpool ZFS.

Regards,
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
7,195
1,132
164
and the pinned kernel is:

Pinned kernel:
5.15.35-1-pve
there is no need to pin the latest kernel (it's the one that gets booted automatically anyways)

I was thinking to remove the old version (5.13.19-6-pve) but wanted to confirm if it is safe?
I usually would recommend to keep at least one older version around (in case some upgrade of 5.15.35-1-pve breaks with your hardware you can still boot into 5.13.19-6-pve - and PVE's tooling takes care of removing older version, so they don't waste too much disk-space

I hope this helps!
 

r4dh4l

Active Member
Feb 5, 2018
87
6
28
Hi,

because "zpool status" advices me to use "zpool upgrade"...

Code:
# zpool status
  pool: rpool
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
        still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 1 days 01:17:00 with 0 errors on Mon Aug 15 01:41:02 2022
config:

        NAME                              STATE     READ WRITE CKSUM
        rpool                             ONLINE       0     0     0
          raidz2-0                        ONLINE       0     0     0
            wwn-0x50014ee0aeffd3a2-part2  ONLINE       0     0     0
            wwn-0x50014ee20a994153-part2  ONLINE       0     0     0
            wwn-0x50014ee2b8e68c2d-part2  ONLINE       0     0     0
            wwn-0x50014ee2ba1acc3e-part2  ONLINE       0     0     0

errors: No known data errors
#
...my question is the same as the original poster because the given answer are not completely satisfying for me: Is it safe to "zpool upgrade"?

I'm not aware of using special ZFS features and overall using a Proxmox "default installation", currently Proxmox Virtual Environment 6.4-14, which I want to upgrade to the current version in the next days.

Because it was requested before my output of "proxmox.boot-tool status" is:

Code:
# proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
E: /etc/kernel/proxmox-boot-uuids does not exist.
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
7,195
1,132
164
I'm not aware of using special ZFS features and overall using a Proxmox "default installation", currently Proxmox Virtual Environment 6.4-14, which I want to upgrade to the current version in the next days.

Because it was requested before my output of "proxmox.boot-tool status" is:
from the output I guess you're still using grub to directly boot from ZFS - such setups are in general _not_ safe to run zpool upgrade on!
the procedure to adapt this to use proxmox-boot-tool is described in the pve-wiki:
https://pve.proxmox.com/wiki/ZFS:_Switch_Legacy-Boot_to_Proxmox_Boot_Tool

I hope this helps!
 
  • Like
Reactions: r4dh4l

r4dh4l

Active Member
Feb 5, 2018
87
6
28
from the output I guess you're still using grub to directly boot from ZFS - such setups are in general _not_ safe to run zpool upgrade on!
the procedure to adapt this to use proxmox-boot-tool is described in the pve-wiki:
https://pve.proxmox.com/wiki/ZFS:_Switch_Legacy-Boot_to_Proxmox_Boot_Tool

I hope this helps!
Thank you @Stoiko Ivanov, I'm really happy that I asked before trying it. Yes, I installed Promox when Proxmox 4 or 5 was the current version so it is using grub.
Given that I want to upgrade from Proxmox 6 to 7: Is it mandatory that I do a zpool upgrade (and for this to switch from legacy boot to proxmox boot tool) before I upgrade to Proxmox 7 or can I just keep the current zpool version (and grub) without going into some trouble with Proxmox 7?
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
7,195
1,132
164
Yes, I installed Promox when Proxmox 4 or 5
Hmm - that's been quite a while - and in the meantime the partitioning scheme of the installer changed (a few times) - in order to comfortably use proxmox-boot-tool you need to have a free partition with a size of 512M (smaller might work as well - but you need to manually clear out some kernels every now and then) - since this partition stores the kernel-images and initrds (which can become quite large).
(the wiki-page I linked explains how to find these)

Given that I want to upgrade from Proxmox 6 to 7: Is it mandatory that I do a zpool upgrade (and for this to switch from legacy boot to proxmox boot tool)
No - it's not strictly mandatory - however in my experience booting with grub directly from ZFS is quite fragile (we had a few reports where systems stopped working all of a sudden - and the reasons were quite hard to track down (grub-implementation of an old HP raid-card driver was not able to read past 2G,....)) - so I personally would prefer to use proxmox-boot-tool - additionally you don't have to worry that you render your system unbootable by accidentally upgrading your rpool.

If possible you could consider installing PVE freshly and then restoring your guests from a backup.
else - make sure you have a backup - and I assume if your system ran fine till now it will run after the upgrade as well
 
  • Like
Reactions: r4dh4l

r4dh4l

Active Member
Feb 5, 2018
87
6
28
No - it's not strictly mandatory - however in my experience booting with grub directly from ZFS is quite fragile
Just survived the upgrade to VE 7, thank you! :)

If possible you could consider installing PVE freshly and then restoring your guests from a backup.
else - make sure you have a backup - and I assume if your system ran fine till now it will run after the upgrade as well
That's the point again and again: Nobody told me when I planned to run my own (home) server that the budget should be enough to actually buy two servers (one for production, one for backup). On the other hand: If someone would have told me that I actually need two servers for a serious setup I would never hab beend started running my own server. ;)
But yes, I have to consider a backup system. Maybe the Proxmox Backup Server as VM as part of my current server is a cheap solution with just one additional external hard drive.

However, thanks again for your support. Need some sleep now...
 
Last edited:

Neobin

Active Member
Apr 29, 2021
646
203
43
That's the point again and again: Nobody told me when I planned to run my own (home) server that the budget should be enough to actually buy two servers (one for production, one for backup). On the other hand: If someone would have told me that I actually need two servers for a serious setup I would never start with my own server. ;)
But yes, I have to consider a backup system.

Sorry, but this should be common sense.
If you care about your data and the time and work/effort you have invested in installing and setting up your systems, it should be obvious to have reasonable backups of all of this. (BTW: Raid is no backup!)
 

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 your own in 60 seconds.

Buy now!