[SOLVED] Proxmox 9 installed on ZFS : snapshot

Ernie95

Member
Sep 1, 2025
44
3
8
Hi All,

I installed PVE9 on ZFS mirror (via standard installation but I choose zfs raid mirror).
Code:
zfs list
rpool                                    17.2G   409G   104K  /rpool
rpool/ROOT                               3.67G   409G    96K  /rpool/ROOT
rpool/ROOT/pve-1                         3.67G   409G  3.67G  /
rpool/data                                 96K   409G    96K  /rpool/data
rpool/swap                               12.8G   422G    72K  -
rpool/var-lib-vz                          710M   409G   710M  /var/lib/vz

All LXC and VM are stored on another zfs mirror pool (other SSD).

I know that snapshots are not backups.

Before to apply update of PVE, I want to snapshot the different datasets of rpool. And if it goes wrong after update of PVE, I comme back to last snapshot.

Does it work ?

I asked this because the structure of / is different :
Code:
root@pve:/# ls
bin   dev  home  lib64  mnt  proc  rpool  sbin  sys  usr  ZFS_Mirror_PVE
boot  etc  lib   media  opt  root  run    srv   tmp  var

And /bin, /dev... are not in rpool.

Thanks for any advice
 
Last edited:
Before to apply update of PVE, I want to snapshot the different datasets of rpool. And if it goes wrong after update of PVE, I comme back to last snapshot.

You can create snapshots manually, of course. (On ZFS-Dataset/Zvol-level, that is.)

What I sometimes do is this: I set a global checkpoint to have a way back to the previous global state of the "rpool".

See man zpool-checkpoint for details. That mechanism has drawbacks, but during maintenance it helps to stay calm if problems rise.

This does not eliminate the need to have backups!
 
  • Like
Reactions: Ernie95
Hi,

Snapshots will not protect from default on the host level, snapshot will we useful when you have failed to update inside VM (or LXC).

Best regards,
 
Hi,

Snapshots will not protect from default on the host level, snapshot will we useful when you have failed to update inside VM (or LXC).

Best regards,
Yes sure but there is several snapshots :
- snapshot in proxmox for VM or LXC (I don' t have as I use raw as I am on ZFS)
- snapshot for ZFS system (snapshot of pool, dataset)

I want using the second one as PVE is on zfs mirror raid.

BR