The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I don't have tmp partition?

Discussion in 'General Discussion' started by Kent Brockman, Mar 1, 2009.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi, I've noticed the existence of tmpDSK file with 500 MB in size at the /usr folder in my VPS:

    Code:
    [root /usr]# dir /usr/tmpDSK -hlS
    -rw-r--r--  1 root root 500M Jun 15  2007 /usr/tmpDSK
    
    but it is not mounted on the system:

    Code:
    [root /usr]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/simfs             20G   15G  5.1G  75% /
    
    [root /usr]# df -h /tmp
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/simfs             20G   15G  5.1G  75% /
    
    [root /usr]# mount -l
    mount: could not open /proc/partitions, so UUID and LABEL conversion cannot be done.
    
    /dev/simfs on / type reiserfs (rw,usrquota,grpquota)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw)
    
    Why might not be mounted?
    Nobody is using it:

    Code:
    [root /usr]# lsof /tmp
    [root /usr]#
    
    The server is running ok and this file is consuming 500 MB of precious space.
    Should I run securetmp? Should I mount it? Or can I safely delete it?

    Thanks
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Are there mount errors in dmesg or /var/log/messages for tmpDSK?
     
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Nope. The dmesg file has zero bytes in size. And there are no reference to tmpDSK in /var/log/messages.
    That's why I think my VPS is not configured to use that partition. What I've asking is if this is a good scenario, and if so, if it is safe to delete that 500 MB supersized file.
    Thanks
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If it's not mounted, probably. Why not move it first and see what breaks, if in doubt?
     
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Good idea. What's the worst can happen? to lose the control over the web server? :p
    The question is if this file really doesn't matter to be erased.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This is probably happening on a VPS that lacks loop support as a mount option. If it's not appearing in the mount lists ( e.g. /proc/mounts ) then removing the file should not be problematic.

    One last thing to check is lsof output:

    Code:
    lsof | grep -i tmpdsk
    
    If the above has not output then nothing is using it.
     
  7. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yep, all ok. Yesterday I renamed it and nothing bad happened, so I will delete it safely.
    Thanks friends!
     
Loading...

Share This Page