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.

var folder is full

Discussion in 'General Discussion' started by sarwhost, Jun 6, 2017.

Tags:
  1. sarwhost

    sarwhost Member

    Joined:
    Feb 17, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    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
    [root@static ~]#
    
    --------------------------------------------------
    [root@static ~]# 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
    [root@static ~]#
    
    Code:
    [root@static ~]# 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
    [root@static ~]# 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
    [root@static ~]# ^C
    [root@static ~]# 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
    [root@static ~]# ^C
    [root@static ~]#
    
     
    #1 sarwhost, Jun 6, 2017
    Last edited by a moderator: Jun 6, 2017
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    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
     
  3. sarwhost

    sarwhost Member

    Joined:
    Feb 17, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Code:
    [root@static ~]# find /var/ -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
    
    1614031 /var
    [root@static ~]#
    [root@static ~]# find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
       1124 ./.cpanm
        475 ./.cpanel
         90 ./.MirrorSearch
         31 .
          7 ./.razor
          7 ./perl5
          5 ./.gnupg
          2 ./.spamassassin
          2 ./.HttpRequest
          2 ./cpanel3-skel
          1 ./.pki
    [root@static ~]#
    
     
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    cd into /var first then run the second command
     
  5. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    102
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Most of the times its mysql folder , try to correctly run the above command you can also check var/lib/mysql folder usage and best would be move mysql as suggest to sort this issue.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  7. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Its not space though, its his inode usage
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Good catch! I've updated the commands referenced in my earlier post.

    Thanks!
     
    Jcats likes this.
Loading...

Share This Page