Slimming down Jails

Status
Not open for further replies.

dpearcefl

Contributor
Joined
Aug 4, 2015
Messages
145
FreeNAS 9.10

When I create a new jail, it winds up taking 1.7GB of disk space according to 'du'. Is this normal? Can I nuke some of the files safely?

I know du isn't real accurate on ZFS except when using the -A flag.

[root@nas-test1 /mnt/Mirror/jails/Test1/usr]# du -h -d 1 -A
289M ./ports
18M ./include
6.0K ./pbi
93M ./lib
849M ./src
80M ./bin
512B ./obj
13M ./sbin
261K ./games
69M ./share
205K ./libdata
2.7M ./libexec
72M ./lib32
234M ./local
1.7G .


Why does the FreeNAS GUI show this jail uses 50.4 MB with 1.12% compression, no dedup.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm not 100% sure, but I bet jails are zfs clones or somehow use zfs not actually take any extra space (except for changes).
ezjail does that though freenas uses warden
 
Status
Not open for further replies.
Top