sarwhost

Member
Feb 17, 2014
13
0
1
cPanel Access Level
Root Administrator
var folder is full please help me for fix problem
Code:
------------------------
df -i
Filesystem             Inodes   IUsed    IFree IUse% Mounted on
/dev/mapper/vg_s-LogVol03
                      5120000   16819  5103181    1% /
tmpfs                 2041732       6  2041726    1% /dev/shm
/dev/sda1              320000      46   319954    1% /boot
/dev/mapper/vg_s-LogVol05
                     83386368 2181397 81204971    3% /home
/dev/mapper/vg_s-LogVol01
                       640848  423755   217093   67% /tmp
/dev/mapper/vg_s-LogVol00
                      1602496  155542  1446954   10% /usr
/dev/mapper/vg_s-LogVol02
                      1602496 1602496        0  100% /var
[[email protected] ~]#

--------------------------------------------------
[[email protected] ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_s-LogVol03
                       77G  1.5G   72G   3% /
tmpfs                 7.8G   80K  7.8G   1% /dev/shm
/dev/sda1             4.7G   73M  4.4G   2% /boot
/dev/mapper/vg_s-LogVol05
                      1.3T   61G  1.2T   6% /home
/dev/mapper/vg_s-LogVol01
                      9.5G  1.7G  7.4G  19% /tmp
/dev/mapper/vg_s-LogVol00
                       24G  5.7G   18G  25% /usr
/dev/mapper/vg_s-LogVol02
                       24G  7.3G   16G  32% /var
[[email protected] ~]#
Code:
[[email protected] ~]# df -i
Filesystem             Inodes   IUsed    IFree IUse% Mounted on
/dev/mapper/vg_s-LogVol03
                      5120000   16819  5103181    1% /
tmpfs                 2041732       6  2041726    1% /dev/shm
/dev/sda1              320000      46   319954    1% /boot
/dev/mapper/vg_s-LogVol05
                     83386368 2181397 81204971    3% /home
/dev/mapper/vg_s-LogVol01
                       640848  423596   217252   67% /tmp
/dev/mapper/vg_s-LogVol00
                      1602496  155542  1446954   10% /usr
/dev/mapper/vg_s-LogVol02
                      1602496 1602496        0  100% /var
[[email protected] ~]# df -i
Filesystem             Inodes   IUsed    IFree IUse% Mounted on
/dev/mapper/vg_s-LogVol03
                      5120000   16819  5103181    1% /
tmpfs                 2041732       6  2041726    1% /dev/shm
/dev/sda1              320000      46   319954    1% /boot
/dev/mapper/vg_s-LogVol05
                     83386368 2181397 81204971    3% /home
/dev/mapper/vg_s-LogVol01
                       640848  423755   217093   67% /tmp
/dev/mapper/vg_s-LogVol00
                      1602496  155542  1446954   10% /usr
/dev/mapper/vg_s-LogVol02
                      1602496 1602496        0  100% /var
[[email protected] ~]# ^C
[[email protected] ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_s-LogVol03
                       77G  1.5G   72G   3% /
tmpfs                 7.8G   80K  7.8G   1% /dev/shm
/dev/sda1             4.7G   73M  4.4G   2% /boot
/dev/mapper/vg_s-LogVol05
                      1.3T   61G  1.2T   6% /home
/dev/mapper/vg_s-LogVol01
                      9.5G  1.7G  7.4G  19% /tmp
/dev/mapper/vg_s-LogVol00
                       24G  5.7G   18G  25% /usr
/dev/mapper/vg_s-LogVol02
                       24G  7.3G   16G  32% /var
[[email protected] ~]# ^C
[[email protected] ~]#
 
Last edited by a moderator:

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
Gotta track down the usage:

Code:
find /var/ -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
Then go into the biggest directories and run:

Code:
find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
Hopefully there is some not needed files you can remove otherwise.. MySQL is located in /var/lib/mysql/ which you may need to relocate.

mysql change data directory - Google Search
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello,

It's likely the inode usage is coming from one of your MySQL databases. You can check to see how much space each database uses with commands such as:

Code:
cd /var/lib/mysql
for i in `find . -xdev -type d `; do echo `ls -a $i | wc -l` $i; done | sort -n
Thank you.