Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Page 1 of 2 12 LastLast
Results 1 to 15 of 19

This is a discussion on Disk Inodes in the VPS & Dedicated forum
It seems that our Disk Inodes is reaching a limit. Although we are only using about 1/3rd our disk space there apparently seems to be ...

  1. #1
    JPC Senior Member
    Join Date
    Apr 2008
    Location
    Festus, MO
    Posts
    81

    Disk Inodes

    It seems that our Disk Inodes is reaching a limit. Although we are only using about 1/3rd our disk space there apparently seems to be too many files.

    Does anybody know standard practices on cleaning this up. Example: Clean out Temp file directories...

    I have had support bump this up a few times already.

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Well, sure... cleaning out temp directories would be a great place to go. How many do you have and how many "real" files are you generating? Has support said there is a hard limit over which they won't go?
    Good luck

  3. #3
    Techinical Support Rep.
    Join Date
    Oct 2008
    Location
    Canada
    Posts
    526
    Hi,

    If you want something that can do a quick estimate, try this:

    Code:
    path=/home; for f in `ls $path`; do inode=`find $path/$f | wc -l`; echo "$inode $path/$f"; done | sort -rn

    If I were you I'd start at / e.g

    Code:
    path=/; for f in `ls $path`; do inode=`find $path/$f | wc -l`; echo "$inode $path/$f"; done | sort -rn
    This will take a long time.

    You can then run the command again on the larger folders to determine which folders within them are using the most inodes.

    This is what the output on my system looks like:

    Code:
    path=/; for f in `ls $path`; do inode=`find $path/$f | wc -l`; echo "$inode $f"; done | sort -rn
    252125 usr
    182104 data
    37490 home
    34317 var
    9281 sys
    4765 proc
    2969 dev
    839 etc
    431 lib
    148 sbin
    116 bin
    28 tftproot
    14 root
    9 mnt
    7 media
    5 tmp
    2 opt
    2 boot
    1 srv
    Last edited by JPC-NickO; 12-22-2008 at 07:29 PM. Reason: tweaked output formatting
    I do work for JaguarPC. If you do need help please provide your ticket number (this isn't sensitive information).

    If I'm not active on the forum please open a ticket instead of PMing me. If you think the issue requires access to your server please open a ticket.

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    You'd think that du or a clone thereof could/should include that functionality...

    Neat command line, NickO
    Good luck

  5. #5
    JPC Senior Member
    Join Date
    Apr 2008
    Location
    Festus, MO
    Posts
    81
    It seems that I have an account I gave to a friend that is utilizing 22913 inodes.

    I also see a directory called /home/cpeasyapache utilizing 12141 inodes. It is a little unclear what I want to keep and remove hear. We are going to clean up a few things but will see if support will raise the limit.

  6. #6
    Loyal Client Pawel Kowalski's Avatar
    Join Date
    Sep 2001
    Location
    Albuquerque NM
    Posts
    1,405
    Support should raise this limit for you, I had a similar issue in the past and they had no problem upping the limit.

  7. #7
    Loyal Client
    Join Date
    Jul 2006
    Posts
    5
    the "path=/; for f in `ls $path`; do inode=`find $path/$f | wc -l`; echo "$inode $path/$f"; done | sort -rn" command does not work for me in ssh,

    what am i doing wrong?

  8. #8
    Techinical Support Rep.
    Join Date
    Oct 2008
    Location
    Canada
    Posts
    526
    Hi,

    Are you getting an error message?

    You must be running as root in order to have the appropriate access to read most of the folders in /.
    I do work for JaguarPC. If you do need help please provide your ticket number (this isn't sensitive information).

    If I'm not active on the forum please open a ticket instead of PMing me. If you think the issue requires access to your server please open a ticket.

  9. #9
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    So if you are not running as root (or can't run as root), in the above example you'd want to alter
    Code:
    path=/;
    to something like
    Code:
    path=/home/<username>;
    if you are on a shared account, for example.
    Or you could just go to the highest level you can reach and use
    Code:
    path=./;
    Good luck

  10. #10
    JPC Senior Member
    Join Date
    Apr 2008
    Location
    Festus, MO
    Posts
    81
    Support raised my limit.

  11. #11
    JPC Dream Team
    Join Date
    Feb 2006
    Location
    Houston, Texas
    Posts
    261
    Quote Originally Posted by atechstl View Post
    Support raised my limit.
    We will raise most limits that are not in regards to RAM without charge.

  12. #12
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    A few things to remember about QoS limits in a VPS:

    1) Don't blindly ask for support to raise the limits!

    2) Investigate why you are hitting the limits.

    3) Is it a specific domain or script? does it need more memory or is it a badly written script?

    4) Are you getting too much concurrent traffic? Make sure you are using cache in your dynamic websites.

    5) Some limits are set too low to begin with, like "numfile", "numproc" and the TCP buffer related limits. A busy VPS will definitely hit those right away.

    6) You may also hit "numiptent", this stores iptables rules, if you don't ban IPs via BFD or modsec or another script then you shouldn't worry about this one.

    7) I suggest you use the memory script or the JagMonitor WHM script, both can be found below in my signature.

  13. #13
    Loyal Client Pawel Kowalski's Avatar
    Join Date
    Sep 2001
    Location
    Albuquerque NM
    Posts
    1,405
    Quote Originally Posted by thisisit3 View Post
    A few things to remember about QoS limits in a VPS:

    1) Don't blindly ask for support to raise the limits!

    2) Investigate why you are hitting the limits.
    Now you have me worried.

    Are disk inodes something that can be used up by a badly written script? What exactly causes the usage in disk inodes? I was under the assumption that this was just how many files you have on your vps.

  14. #14
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    its just that you have many small files and you've reached the disk inode limit, i don't think its related to a script. What i wrote above is a general guide and not specific to disk inodes.

  15. #15
    JPC Senior Member
    Join Date
    Apr 2008
    Location
    Festus, MO
    Posts
    81
    The only scripts I see running on the server is Mail Scanner and Config Server Firewall. As far as user scripts all the users are using scripts from Fantastico such as Cubecart, Joomla, Form Mail, etc.

    I do use the Jag Monitor. My memory loads appear to be fine. Occasionally there are some memory spikes hear and there that last for a few minutes, but the server seems to be running strong.

Page 1 of 2 12 LastLast

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
  •