No space left on device

General support questions
Post Reply
rskay
Posts: 12
Joined: 2016/11/18 02:50:12

No space left on device

Post by rskay » 2017/10/03 00:39:03

I have centos 6.5 running on a Virtual Machine. Service failed to start

Code: Select all

# /etc/init.d/centreontrapd start
/etc/init.d/centreontrapd: line 65: /var/run/centreon/centreontrapd.pid: No space left on device
                                                         [  OK  ]

Code: Select all

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_root
                       15G  6.8G  7.1G  49% /
tmpfs                 1.5G     0  1.5G   0% /dev/shm
/dev/sda1             190M   70M  111M  39% /boot

Code: Select all

# df -i
Filesystem           Inodes  IUsed  IFree IUse% Mounted on
/dev/mapper/vg_root-lv_root
                     969136 969136      0  100% /
tmpfs                369562      1 369561    1% /dev/shm
/dev/sda1             50200     50  50150    1% /boot
how do i clear inodes?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: No space left on device

Post by TrevorH » 2017/10/03 00:45:17

how do i clear inodes?
Delete some files/directories. Most likely you have some directory full of 0 bytes or tiny files - like about 900,000 of them.
I have centos 6.5 running on a Virtual Machine. Service failed to start
CentOS 6.5 came out in December 2013 so is now coming on for 4 years old. It contains numerous high severity security vulnerabilities and you need to yum update to get current as soon as possible.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rskay
Posts: 12
Joined: 2016/11/18 02:50:12

Re: No space left on device

Post by rskay » 2017/10/03 06:30:15

Delete some files/directories. Most likely you have some directory full of 0 bytes or tiny files - like about 900,000 of them.
I have not done this before, can you provide some commands to execute?

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: No space left on device

Post by tunk » 2017/10/03 09:34:38

Maybe something like this:
cd /
find -size -10c|more

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: No space left on device

Post by TrevorH » 2017/10/03 15:14:14

Start by looking in /tmp and/or /var/tmp. If this is a web server running php then look in your php.ini file for the location of the sessions directory and check that.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

foxb
Posts: 1927
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: No space left on device

Post by foxb » 2017/10/07 21:44:11

rskay wrote:
Delete some files/directories. Most likely you have some directory full of 0 bytes or tiny files - like about 900,000 of them.
I have not done this before, can you provide some commands to execute?
After you identified what files you can delete(usig directions from other posts) the command to remove them(from terminal) is

Code: Select all

rm <filename>
Here is a related post:
viewtopic.php?t=47624

Post Reply