Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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,178
    Likes Received:
    6
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Are there mount errors in dmesg or /var/log/messages for tmpDSK?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,261
    Likes Received:
    390
    Trophy Points:
    583
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice