OpenVZ Forum


Home » General » Support » mounting tmp - no space on device
mounting tmp - no space on device [message #35666] Sun, 12 April 2009 19:05 Go to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
Hello,

To secure the /tmp partition, we try to mount it with noexec,nosuid with:

mount -t tmpfs -o noexec,nosuid tmpfs /tmp/

However, we notice that after a while it will claim there is no space left on the device on the /tmp partition which causes issues with sessions and other web scripts.

Even after removing all the files in /tmp it will still claim there is no space.

Any ideas how to solve this?


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Re: mounting tmp - no space on device [message #35669 is a reply to message #35666] Mon, 13 April 2009 11:31 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

where did the problem happen, on the HN or inside the VE?
Quote:


we try to mount it with noexec,nosuid


Could you please check if these options caused the problem?
Were there any problems while these options were not used?

Quote:


However, we notice that after a while it will claim there is no space left on the device on the /tmp partition which causes issues with sessions and other web scripts.

Even after removing all the files in /tmp it will still claim there is no space.



Could you please show

# ls -l /proc/mounts
# cat /proc/mounts
# df -h
# df -i

Re: mounting tmp - no space on device [message #35674 is a reply to message #35666] Mon, 13 April 2009 18:49 Go to previous message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 100G 41G 60G 41% /
tmpfs 3.9G 2.6M 3.9G 1% /tmp

# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/simfs 4000000 311266 3688734 8% /
tmpfs 1011060 171 1010889 1% /tmp

# cat /proc/mounts
simfs / simfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
tmpfs /tmp tmpfs rw,nosuid,noexec 0 0

Not sure about if it happens without nosuid and noexec yet.


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Previous Topic: vzprocps top bugfix for centos5.2 x86-64
Next Topic: Gentoo working template
Goto Forum:
  


Current Time: Tue Aug 13 00:57:27 GMT 2024

Total time taken to generate the page: 0.02891 seconds