Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3493610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:54:14+00:00 2026-05-18T11:54:14+00:00

I have a vps slice running centos 5.5 I am supposed to have 15

  • 0

I have a vps slice running centos 5.5 I am supposed to have 15 gigs of disk space, but according to df it seems to double my disk space usage.

when I run du -skh * in / as root i get:

[root@yardvps1 /]# du -skh *
0       aquota.group
0       aquota.user
5.2M    bin
4.0K    boot
4.0K    dev
4.9M    etc
2.5G    home
12M     lib
14M     lib64
4.0K    media
4.0K    mnt
299M    opt
0       proc
692K    root
23M     sbin
4.0K    selinux
4.0K    srv
0       sys
48K     tmp
2.0G    usr
121M    var

this is consistent with what I have uploaded to the machine, and adds up to about 5gigs.

BUT when i run df i get:

[root@yardvps1 /]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/simfs            15728640  11659048   4069592  75% /
none                    262144         4    262140   1% /dev

it is showing me using almost 12 gigs already.

what is causing this discrepancy and is there anything I can do about it, I planned the server out based on 15 gigs but now it is basically only letting me have about 7 gigs of stuff on it.

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:54:15+00:00Added an answer on May 18, 2026 at 11:54 am

    The most common cause of this effect is open files that have been deleted.

    The kernel will only free the disk blocks of a deleted file if it is not in use at the time of its deletion. Otherwise that is deferred until the file is closed, or the system is rebooted.

    A common Unix-world trick to ensure that no temporary files are left around is the following:

    • A process creates and opens a temporary file

    • While still holding the open file descriptor, the process unlinks (i.e. deletes) the file

    • The process reads and writes to the file normally using the file descriptor

    • The process closes the file descriptor when it’s done, and the kernel frees the space

    • If the process (or the system) terminates unexpectedly, the temporary file is already deleted and no clean-up is necessary.

    • As a bonus, deleting the file reduces the chances of naming collisions when creating temporary files and it also provides an additional layer of obscurity over the running processes – for anyone but the root user, that is.

    This behaviour ensures that processes don’t have to deal with files that are suddenly pulled from under their feet, and also that processes don’t have to consult each other in order to delete a file. It is unexpected behaviour for those coming from Windows systems, though, since there you are not normally allowed to delete a file that is in use.

    The lsof command, when run as root, will show all open files and it will specifically indicate deleted files that are deleted:

    # lsof 2>/dev/null | grep deleted
    bootlogd   2024       root    1w      REG                9,3         58     917506 /tmp/init.0W2ARi (deleted)
    bootlogd   2024       root    2w      REG                9,3         58     917506 /tmp/init.0W2ARi (deleted)
    

    Stopping and restarting the guilty processes, or just rebooting the server should solve this issue.

    Deleted files could also be held open by the kernel if, for example, it’s a mounted filesystem image. In this case unmounting the filesystem or rebooting the server should do the trick.

    In your case, judging by the size of the “missing” space I’d look for any references to the file that you used to set up the VPS e.g. the Centos DVD image that you deleted after installing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Kippo running on my VPS, and I can't get it to run
I have a centos 5.8 VPS which is running mod_php rather than fastcgi which
I have a VPS that is running Fedora Core 6, with yum somehow removed
I have just bought a VPS running Ubuntu and I need to install the
I have a VPS with Ubuntu OS. I run solr om my local machine
We have one vps server, at the moment, and we need to run both
[Python/MySQLdb] - CentOS - Linux - VPS I have a page that parses a
I have a VPS and I would like to be able to run ASP.NET
I have a ubuntu lucid VPS server where I try to run my django
I have Centos 6.2 x64, Lynx 2.8.6rel.5 on vps. I try in console [root@turbomoney

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.