This issue appears even though you have available disk space on the system.#

  • #df -h

FilesystemSizeUsedAvailUse%Mounted on
/dev/mapper/lv_root47G37G8.2G82%/
tmpfs1004M01004M0%/dev/shm
/dev/sda1485M52M409M12%/boot

We need to check available inodes on the server to see how many are available

  • #df -i

FilesystemInodesIUsedIFreeIUse%Mounted on
/dev/mapper/lv_root3121152310381317339100%/
tmpfs25687412568731%/dev/shm
/dev/sda1128016441279721%/boot

If we see inodes are 100% or nearly used on the filesystem then this indicates there must be a large number of files on the server and we need to find them using the below command. If the below commands stuck at a folder then it will be better to run it using that absolute path.

for i in /*; do echo $i; find $i |wc -l; done

After finding the folder with large number of files delete them and this will make inodes available to the file system.

This could be php session files located in '/var/lib/php/session' folder containing millions of files. To get rid of them use the following:


# Shutdown apache
---------------
service httpd stop

# Rename php session directory
---------------
mv /var/lib/php/session /var/lib/php/session.old

# Recreate php session directory and set permissions
---------------
mkdir /var/lib/php/session
chmod 1777 /var/lib/php/session

# Start Apache
---------------
service httpd start

# Delete session files
---------------
cd /var/lib/php/session.old
find |xargs rm

The above command might take a day to delete the files depending upon the number of files in that folder.

Back to Linux

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 24-May-2017 15:30 by Hyve Support
G’day (anonymous guest) My Prefs
  • View Page Source
  • This clear IPSec security association,
    clear ipsec sa peer X.X.X.X
    

All Pages

Page views: 2474

Private Tomcat

Linux

MySQL

Email

SQL Server

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

Gaming

ASP.NET

Persits ASPUpload

Wiki Help

Referring Pages:
...nobody

JSPWiki v2.8.1