ZFS Snapshots missing?

Mrt12

Well-Known Member
May 19, 2019
149
13
58
45
CH
Good day,
I have renamed a ZFS dataset that contained a lot of snapshots. I just used
Code:
zfs rename tank/data/mydataset tank/data/newdataset
to rename the dataset and it looks like it worked.
Also when I list the snapshots using
Code:
zfs list -t snap
, they are still all present, even with the correct names, so I was not worrying to much.

However, just for test purposes, I then tried to access one of the snapshots and was a bit shocked: When I `cd` into a snapshot, e.g.

Code:
cd /tank/data/newdataset/.zfs/snapshot/samplesnapshot

all the files in the snapshot are not visible and it looks like the snapshot is empty!
But in `zfs list -t snap` I can clearly see that my snapshot takes some 800GB of space.
Luckily, I can manually mount the snapshot, using `mount -t zfs tank/data/newdataset@samplesnapshot /tmp/test` and this works, I can then access my snapshot data under /tmp/test. But previously, the snapshots did mount themselves automatically, and now this seems no longer to be the case, so I am wondering what is going on here? has anybody ever experienced something like this, and is it possible to fix?

I have the latest PVE version and zfs 2.2.6.
 

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!