You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 6.8.12-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-4 (2024-11-06T15:04Z) x86_64 GNU/Linux
Distribution Version
see above
Kernel Version
see above
Architecture
see above
OpenZFS Version
zfs-2.2.6
Describe the problem you're observing
About a year ago, I created a ZFS datashet that is since then used as a network share. It works well, and I have implemented regular snapshots such that accidental changes can easily be reverted. It works very good.
However, due to some organizational changes, it was necessary to rename the dataset that I used. So I had the dataset tank/data, and of course, there are a lot of snapshots, e.g. tank/data@2024-04-04-1800 for example, or tank/data@backup. I have previously verified that the snapshots work properly and they do. However, I had now to rename the dataset to tank/projects. According to zfs list -t snap, all snapshots are still there, as I expected, and the data in the dataset is also still accessible; however, when I cd into one of the snapshots, e.g. cd /tank/projects/.zfs/snapshot/backup, where should be visible the contents of this snapshot, it is simply empty. However, according to zfs list -t snap, this particular snapshot consumes 872GB of data, but the snapshot folder is just empty!
Also snapshots that are newly created also appear completely empty.
However, I am not 100% sure what is going on. I can manually mount the snapshot as follows
mount -t zfs tank/projects@backup /tmp/test
and then when viewing /tmp/test I can see the snapshot's contents. So it somehow still works, but it looks to me like the automatical mounting of the snapshots is now broken, due to the renaming of the snapshots.
Can I somehow restore the old behaviour, such that the ZFS snapshots are again automatically mounted?
Describe how to reproduce the problem
Create a dataset, e.g. tank/data. Put some files in it. Make a snapshot, i.e. tank/data@snap.
Verify the snapshot has worked: ls -al /tank/data/.zfs/snapshot/snap shows the files that were present at the time the snapshot was taken.
Rename the dataset, e.g. zfs rename tank/data tank/newdata.
Try to look at the snapshot's contents: ls -al /tank/newdata/.zfs/snapshot/snap.
The files seem not to be present and the snapshot cannot be accessed therefore.
However, when manually mounting, the snapshots can be accessed. Make a temporary folder: mkdir -p /tmp/test.
Mount the snapshot: mount -t zfs tank/newdata@snap /tmp/test.
Look at the snapshot contents: ls -al /tmp/test shows the contens of the snapshot.
The text was updated successfully, but these errors were encountered:
I can confirm, it is probably fixed. I don't know why this happened and I cannot reproduce it. However after a reboot of the machine, all datasets were there again. So it was probably some sort of 'glitch'. Sorry for opening an issue too quickly!
@tcpluess I had no doubts that reboot should "fix" it, since it must be just a mounting issue. But @ixhamza tested in on Linux and I tested it on FreeBSD, and both worked for us. So please report again if you hit it on ZFS 2.3.
System information
Describe the problem you're observing
About a year ago, I created a ZFS datashet that is since then used as a network share. It works well, and I have implemented regular snapshots such that accidental changes can easily be reverted. It works very good.
However, due to some organizational changes, it was necessary to rename the dataset that I used. So I had the dataset
tank/data
, and of course, there are a lot of snapshots, e.g.tank/data@2024-04-04-1800
for example, ortank/data@backup
. I have previously verified that the snapshots work properly and they do. However, I had now to rename the dataset totank/projects
. According tozfs list -t snap
, all snapshots are still there, as I expected, and the data in the dataset is also still accessible; however, when Icd
into one of the snapshots, e.g.cd /tank/projects/.zfs/snapshot/backup
, where should be visible the contents of this snapshot, it is simply empty. However, according tozfs list -t snap
, this particular snapshot consumes 872GB of data, but the snapshot folder is just empty!Also snapshots that are newly created also appear completely empty.
However, I am not 100% sure what is going on. I can manually mount the snapshot as follows
mount -t zfs tank/projects@backup /tmp/test
and then when viewing /tmp/test I can see the snapshot's contents. So it somehow still works, but it looks to me like the automatical mounting of the snapshots is now broken, due to the renaming of the snapshots.
Can I somehow restore the old behaviour, such that the ZFS snapshots are again automatically mounted?
Describe how to reproduce the problem
tank/data
. Put some files in it. Make a snapshot, i.e.tank/data@snap
.ls -al /tank/data/.zfs/snapshot/snap
shows the files that were present at the time the snapshot was taken.zfs rename tank/data tank/newdata
.ls -al /tank/newdata/.zfs/snapshot/snap
.mkdir -p /tmp/test
.mount -t zfs tank/newdata@snap /tmp/test
.ls -al /tmp/test
shows the contens of the snapshot.The text was updated successfully, but these errors were encountered: