Where is all the data stored in my snapshots? .zfs/snapshot subdirectories are empty.

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
It's likely I'm doing something wrong, but I'm very perplexed why .zfs/snapshots folders are empty.

Further explanation
I have a Snapshot task set on the main pool to take recursive snapshots every 12 hours:

Screen Shot 2020-02-09 at 8.48.02 AM.png


It appears the scheduler is working to create the snapshots as intended (I've just included an example from one of the datasets):
Screen Shot 2020-02-09 at 8.49.53 AM.png


Because the snapshot is of the entire zpool, many of the datasets represent the drive structure for running VM's

My problem however is that the snapshot subdirectories are in fact empty. For example:
Screen Shot 2020-02-09 at 8.52.42 AM.png


That's a directory listing of all the snapshots for this particular dataset. The dataset represents a running VM. A number of manual and auto and manual snapshots are within the directory.

Within each snapshot directory however there are no contents within the directories themselves:
Screen Shot 2020-02-09 at 8.57.12 AM.png


That's just a small snippet.

I even made two manual snapshots of the running VM after creating a new directory and empty file, yet the subdirectories are listed as empty:

Screen Shot 2020-02-09 at 8.58.47 AM.png


So my question -- Where is all changed data reside?
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Your VMs are using vdevs right? You won't see the content of the disk image. It's has its own File system. Try looking at a snapshot of a file share or your jails and you should see the files. Without double checking, this seems normal to me.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
You won’t be able to browse snapshots of block devices used by VMs. Those need to be cloned and mounted with the corresponding VMs
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
So Vdevs are viewable -- and what I mean by this is not to view the actual contents -- but there isn't any record of the block device listed anywhere?

Ok -- I went ahead and cloned the VM zol, and then went ahead and mounted the partitions via the linux install CD. I needed to do a few things in order to mount the partitions (since one was zfs, the other vfat32), but yea I see the old files.

So I just want to be clear -- there isn't any way to tell if there is a change of the "block device" used by the VM. I'd like to avoid individually cloning/mounting snapshots that are the same.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
I'm sorry, when I said vdevs I meant zvol.... Wow that was a derp!
 
Top