Skip to main content

var folder is full

Comments

7 comments

  • Jcats
    Gotta track down the usage:
    find /var/ -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
    Then go into the biggest directories and run:
    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
    0
  • sarwhost

    [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 ~]#
    0
  • Jcats
    cd into /var first then run the second command
    0
  • webhostuk
    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.
    0
  • cPanelMichael
    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:
    cd /var/lib/mysql for i in `find . -xdev -type d `; do echo `ls -a $i | wc -l` $i; done | sort -n
    Thank you.
    0
  • Jcats
    Its not space though, its his inode usage
    0
  • cPanelMichael
    Its not space though, its his inode usage

    Good catch! I've updated the commands referenced in my earlier post. Thanks!
    0

Please sign in to leave a comment.