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.

No space left on device

Discussion in 'General Discussion' started by toriqulislam, Aug 13, 2014.

  1. toriqulislam

    toriqulislam Member

    Joined:
    Jun 2, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Please help me to solve this problem.

    No space left on device Error Message When turn on the server.
    When I checked with df -i I got this

    Code:
    # df -i
    Filesystem       Inodes    IUsed   IFree IUse% Mounted on
    /dev/vda1      10485760 10448201   37559  100% /
    tmpfs           2058122        1 2058121    1% /dev/shm
    I also run the df -h and I got this
    Code:
    # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/vda1       158G   89G   61G  60% /
    tmpfs           7.9G     0  7.9G   0% /dev/shm
    I'm also getting this error message when I'm trying to log in to WHM/cPanel
    Code:
    Internal Server Error
    
    500
    
    failed to open session lockfile: FILE=/var/cpanel/sessions/raw/:qqY_2_a5UNfCp1c8lrrCF3Uo69L5HOk0GwbOxBpajgeckKstrk03A2qWQZIx3ifW.lock, No such file or directory at /usr/local/cpanel/Cpanel/Session.pm line 238.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Your server is out of inodes (number of files on your system). You will need to contact your hosting provider to have them increase the inodes available to your VPS.

    Thank you.
     
  3. toriqulislam

    toriqulislam Member

    Joined:
    Jun 2, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We are using server from an un-managed service provider. Even after that I asked for support and they said they are not going to help on this.
    Can't reach our System Administrator right now. So anything that can help to fix this will be great for us.
    Thanks.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can try searching for directories with large number of files, and then remove any unnecessary files to free up inodes. For example, the following instructions found on a third-party website might be helpful for finding where the inode usage is coming from:

    Code:
    cd /root
    vi count_files.sh
    
    Add this input:

    Code:
    echo $(ls -a "$1" | wc -l) $1
    Save the file, then run:

    Code:
    chmod 0755 count_files.sh
    find . -type d -print0 | xargs -0 -n1 /root/count_files.sh | sort -n
    Thank you.
     
  5. toriqulislam

    toriqulislam Member

    Joined:
    Jun 2, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you for your help. I also tried your method but can't solve it. We have been suffered by this about 2 days.
    But after many tries I was able to reach our System Administrator and he solved the problem.
    BTW Is there anyway to prevent this problem so it can't be happen in the future?
    Is there any automatic way to delete those unnecessary files?

    Thanks.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There's no guarantee that any file is unnecessary. It depends which files your system administrator removed to resolve the issue. The best way to resolve the issue is to have your hosting provider increase the inodes available to your VPS.

    Thank you.
     
Loading...

Share This Page