Are Jails a clone of a snapshot?

francisaugusto

Contributor
Joined
Nov 16, 2018
Messages
153
Hi,

I was trying to tidy up my snapshot lists, so I see some snapshots related to jails I don't use anymore. I tried to delete them, but I got a message that there were clones of them. I then realized that those clones were actually where the jails are mounted:

Code:
root@freenas[~]# zfs list -o name,origin | egrep ".@."
\LivNAS/iocage/jails/ELK/root                                  LivNAS/iocage/releases/11.2-RELEASE/root@ELK
LivNAS/iocage/jails/Transmission/root                         LivNAS/iocage/releases/11.2-RELEASE/root@Transmission


So trying to remove LivNAS/iocage/releases/11.2-RELEASE/root@ELK for example was not possible.

Is this how it is supposed to be?

Best,

Francis
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
That is correct, jails/plugins are all ZFS clones of an initial snapshot of 11.2-RELEASE, 11.3-RELEASE, etc.
 

francisaugusto

Contributor
Joined
Nov 16, 2018
Messages
153
That is correct, jails/plugins are all ZFS clones of an initial snapshot of 11.2-RELEASE, 11.3-RELEASE, etc.

Thanks @Kris Moore! Now it makes sense that I can't delete that snapshot when the jail is still there. :)
 
Top