Put jail's /tmp to memory

Status
Not open for further replies.

Zofoor

Patron
Joined
Aug 16, 2016
Messages
219
Hi all!
I am trying to mount in a jail the path /tmp as memory tmpfs file system.

To obtain that I added
allow.mount,allow.mount.devfs,enforce_statfs=1,allow.sysvipc,allow.mount.tmpfs in the sysctl config section of the jail, and then added in /etc/fstab the following line
tmpfs /tmp tmpfs rw,mode=777 0 0

Then I have rebooted the jail and executed df -h but I dont't see the tmp mounted.

If I type mount /tmp then it get mounted (but webserver nginx stops working, even if I restart the service...).

What do you think I am missing?
 
Last edited:

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Status
Not open for further replies.
Top