Access .zfs snapshot from inside a jail

cdbessig

Cadet
Joined
Apr 20, 2021
Messages
3
Hello,

I have set snapshot folder visibility to yes on a data set.

I then scheduled a periodic snapshot task to run on my dataset.

I have then created a jail and mounted the dataset as a mount inside the jail.

I then fire up the jail's ssh and navigate to the .zfs/snapshot folder and cannot access the snapshots.

Code:
root@rsnapshot:/mnt/DATA/.zfs/snapshot # ls -al
ls: auto-2021-04-18_00-00: Operation not permitted
ls: auto-2021-04-19_00-00: Operation not permitted
ls: auto-2021-04-20_00-00: Operation not permitted
total 1
dr-xr-xr-x+ 7 root  wheel  7 Apr 20 00:00 .
dr-xr-xr-x+ 3 root  wheel  3 Apr 17 11:52 ..
drwxr-xr-x  2 root  wheel  2 Apr 17 11:52 rsnapshot-manual-2021-04-17_11-54
drwxr-xr-x  2 root  wheel  7 Apr 17 11:56 rsnapshot-manual-2021-04-17_11-57---2


What would I need to do to get the snapshot folders accessible inside the jail for read only access?
 

bozho

Dabbler
Joined
Jan 2, 2019
Messages
19
Hi,

I've been looking into the same thing recently and hit this same problem. I'm on TrueNAS-12.0-U4 .

Curiously, after I've created a new snapshot and do an ls -al /path/to/dataset/.zfs/snapshot (just ls does not help) from the base OS, I can access the new snapshot from jail.

Could this be bug?
 

cdbessig

Cadet
Joined
Apr 20, 2021
Messages
3
I forget where (clearly not in this thread), someone pointed to a freebsd bug report on this issue and claimed that the issue should be reported upstream to freebsd so it trickles down to true nas.

Unfortunately, I did not have the freebsd experience or time to setup a bare freebsd server and test the xfs implementation to confirm it exist in freebsd.

I instead opted to go with a virtual machine instead of a jail.
 
Top