Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 11 of 11

This is a discussion on Find high Inode Usage in the VPS & Dedicated forum
Is there an easy way to find High Inode usage? I am using only about 8% of my storage capacity but 77% of my Inode ...

  1. #1
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386

    Find high Inode Usage

    Is there an easy way to find High Inode usage?

    I am using only about 8% of my storage capacity but 77% of my Inode Capacity according to virtuozzo

    I need to find where these excessive numbers of files are and if it is a server problem fix it, if it is a user problem well fix that as well

    But right now I can not find any 1 place that has an excessive number of files so......
    -------------------------
    the_ancient
    MP Technology Group

  2. #2
    JPC Member
    Join Date
    Sep 2011
    Posts
    2
    To me it seems jaguar does not set the limit high enough to ever use your full storage capacity.

  3. #3
    JPC Member
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    21
    Are you confident in SSH? A quick google (and having a go myself) shows that putting this command in SSH should help:

    Code:
    echo "Detailed Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"

  4. #4
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    Right now I dont think it is limit problem..

    High Inode counts plays havoc on the backups so keeping them under control is important, more important than raw size IMO
    -------------------------
    the_ancient
    MP Technology Group

  5. #5
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    Right now I dont think it is limit problem..

    High Inode counts plays havoc on the backups so keeping them under control is important, more important than raw size IMO
    -------------------------
    the_ancient
    MP Technology Group

  6. #6
    JPC Member
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    21
    No luck on my command then? Should do the trick

  7. #7
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    Quote Originally Posted by Jamsori View Post
    No luck on my command then? Should do the trick
    Thanks, I have not tried it yet, when I do I will report back, right now I am still dealing with my Mail Server problems
    -------------------------
    the_ancient
    MP Technology Group

  8. #8
    Voluntarily Retired gohighvoltage's Avatar
    Join Date
    Jan 2011
    Posts
    641
    Let me know how you make out with the high inode usage ancient. I thought I was told most VPS's have high inode usage.

  9. #9
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Quote Originally Posted by the_ancient View Post
    I am using only about 8% of my storage capacity but 77% of my Inode Capacity according to virtuozzo
    77% is based on the limit of inode number of your VPS, so its relative value. Until we know what this % represent, its hard to say if its high or low. If you have a VPS for sometime, the VPS plans by default had very low inode limit set which actually caused problem that on normal use you'll hit the inode limit before you hit any major disk usage.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  10. #10
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    Limit is 300,000

    Disk Inodes
    Used: 233,273
    Used %: 77.8%
    Free: 66,727
    Total:300,000

    I have had the VPS since March 12th 2010, about 20 months
    -------------------------
    the_ancient
    MP Technology Group

  11. #11
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    I think its not that high. I checked a fresh cPanel VPS and it has 150,182 inode usage. This is just plain cPanel VPS without any addons that we normally add after cPanel setup.

    Jamsori thanks for the neat ssh script. ancient you should try that. Here's the usage on a cPanel VPS freshly setup with no customization:

    Detailed Inode usage for: /
    111 - bin
    32 - boot
    542 - dev
    1765 - etc
    33196 - home
    3943 - lib
    312 - lib64
    1 - lost+found
    1 - media
    1 - misc
    2 - mnt
    1 - net
    594 - opt
    14997 - proc
    458 - root
    262 - sbin
    1 - selinux
    1 - .spamassassin
    1 - srv
    6197 - sys
    13 - tmp
    111592 - usr
    1826 - var
    Total: 175857
    So many in /home from the cPanel install scripts

    drwxr-xr-x 5 root root 4096 Aug 26 03:09 .cpan/
    drwxr-xr-x 3 root root 4096 Nov 8 22:41 .cpanm/
    drwx------ 4 root root 4096 Nov 8 22:40 .cpcpan/
    drwx------ 3 root root 4096 Aug 26 03:32 cpeasyapache/
    drwxr-xr-x 3 root root 4096 Aug 26 02:40 installd/
    Interestingly I checked one of testbed VPS and it has 522,419 inode usage but the limit is at 5M so I'm at 11% usage. Just ask support to up the limit. You'll be fine if you don't find anything unusual in usage report.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •