Go Back   HostGator Peer Support Forums > HostGator Announcements > General Announcements

Notices

Reply
 
Thread Tools
  #26  
Old 12-30-2007, 03:47 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,475
Default Re: Small TOS Update.

Quote:
Originally Posted by OneManShow View Post
when i am using the following code:
Code:
<?php
print system("find . -printf \"%i\n\" | sort -u | wc -l");
?>
i got:
76 76

and when i use the following code:
Code:
<?php
system("/usr/bin/quota | /bin/awk '{ if ( $5 ~ /^[0-9]/) total+=$5 } END {print \"Total Inodes :\" , total}'");
?>
i got this:
Total Inodes : 396

why they are different? and which one is more accurate ? which one i choose?

about GatorDaveC:
how they appear like this ? what is the code that i have to write in inodes.php?

Code:
quota -u davec
Disk quotas for user davec (uid 32388):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/sda1       4  629145600 629145600               3       0       0
      /dev/sda7      84  629145600 629145600              20       0       0
      /dev/sda3       8  629145600 629145600               2       0       0
      /dev/sda2       0  629145600 629145600               1       0       0
find | wc -l
20
1st, remove the "print" from " print system("find . -printf \"%i\n\" | sort -u | wc -l");", that's why it prints it twice.

and if you change it to:
Code:
system("find /home/YOURCPANELUSERNAME -printf \"%i\n\" | sort -u | wc -l");
it will give the right result.
It's because the "." refers to the current directory, i.e. in this case obviously public_html
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #27  
Old 12-31-2007, 07:10 AM
OneManShow's Avatar
OneManShow OneManShow is offline
Junior Croc
 
Join Date: Jul 2007
Location: http://localhost/
Posts: 142
Default Re: Small TOS Update.

Thank you quietFinn
Reply With Quote
  #28  
Old 02-06-2008, 12:37 PM
Quads Quads is offline
Junior Croc
 
Join Date: Jan 2008
Posts: 106
Default Re: Small TOS Update.

Quote:
Originally Posted by quietFinn View Post
Ok so if you don't have shell access you could make a file named inodes.php and copy/paste these lines to it:

Code:
<?php
system("/usr/bin/quota | /bin/awk '{ if ( $5 ~ /^[0-9]/) total+=$5 } END {print \"Total Inodes :\" , total}'");
?>
I'm a little concerned about this.
I have 3 sites which are somewhat active under my account (shared), and a few other domains that are just kind of 'sitting around'.

Running that script, it says I have 23K inodes.
Does this sound 'abnormal'? It seems quite high to me.
Each site is running either an open source CMJ (joomla, geeklog) and the other site running phpBB.

I expected 5 or 8K, but not 23K.
Am I way off base here?
Is there a way to drill down to which inodes by folder usage? (either by a script or via my cpanel?)

Much thanks-
~Q
Reply With Quote
  #29  
Old 02-06-2008, 08:14 PM
kmaw's Avatar
kmaw kmaw is offline
Emperor Croc
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 1,921
Default Re: Small TOS Update.

The limit is by account.

23,000 is normal and just fine.
Reply With Quote
  #30  
Old 02-07-2008, 01:14 AM
Quads Quads is offline
Junior Croc
 
Join Date: Jan 2008
Posts: 106
Default Re: Small TOS Update.

Quote:
Originally Posted by kmaw View Post
The limit is by account.

23,000 is normal and just fine.
Thanks for the input and the feedback.

Is there any way of (easily) drilling down to number of inodes per domain, folders, etc.?
Reply With Quote
  #31  
Old 03-04-2008, 07:25 AM
cabaz777
HostGator Guest
 
Posts: n/a
Default Re: Small TOS Update.

Quote:
Originally Posted by Quads View Post
Is there any way of (easily) drilling down to number of inodes per domain, folders, etc.?
I follow Quads request, I need a php script that can show how many inodes on each domain/folder so I can delete unnecessary files. I received a warning a couple of days ago saying mine was 250,000 inodes, so i quickly went via FTP and remove some old folders to free space, then asked support to recheck them and they said now they are at 145,000 so still too high

however i was not able to find which folder is containig that amount of files in the directoriesvia FTP (I mustcheck 1 by1), surely is some type of cache that is rebuilding php pages, probably wordpress? who knows...

anyway, a script that can help us to find which one is the domain or folder exceeding the limit would be great. hope someone at HG staff can help , really want to get rid of this warning in my account

thanks in advance
Reply With Quote
  #32  
Old 03-04-2008, 02:45 PM
hcacree hcacree is offline
Swamp Croc
 
Join Date: May 2007
Posts: 276
Default Re: Small TOS Update.

It seems we need a good old DOS style tree command that prints out the directory tree structure with the inode count for each directory.
Reply With Quote
  #33  
Old 03-05-2008, 04:13 AM
babylove babylove is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 1
Default Re: Small TOS Update.

I wonder to hear that from HostGator email and feel not good to that TOS.
I just install the joomla script with 5-6 template and 9 article. It's 4628 inode for only one website. That's mean if i need to set it up for 10 Domain. It'll full with TOS. Too bad.


You should active this TOS with new customer not the exiting. Because We believe that you prepare all the space for us. That's mean we can use my space for any reason. Huge files,many inode or install any scripts belong to the space that you allocate to us. This is the best thing you should do for your customer.



By the way, you change your TOS, you have to change your motto from "We eat up the compettition" to "We eat up the client" too.

Reply With Quote
  #34  
Old 03-05-2008, 04:51 AM
Jordanlw's Avatar
Jordanlw Jordanlw is offline
Royal Croc
 
Join Date: Dec 2007
Location: Australia
Posts: 425
Default Re: Small TOS Update.

LOL,
Well for starters there not going to suspend you for going over the inode limit, They will only stop backups on it.
Of course you can continue to backup your site(s) by your self which is what I do with a script I made.
And by the way you do know that the HDD space & bandwidth is oversolled?
Meaning it really doesn't exist.
There may be a 600GB HDD per server and each server having around 500 clients on it.
They only expect each user to use up 50-100MB per site which is true.

~Jordan
__________________
http://free-vent.com Providing FREE PUBLIC Ventrilo (VOIP) use.
Reply With Quote
  #35  
Old 03-23-2008, 03:43 AM
nowares nowares is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 16
Default Re: Small TOS Update.

Thanks for the script.

I'll be sure to keep an eye on this, as a standard IPB forum will use 1,420 files to start with!
Reply With Quote
  #36  
Old 03-23-2008, 08:26 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: Small TOS Update.

Quote:
Originally Posted by nowares View Post
Thanks for the script.

I'll be sure to keep an eye on this, as a standard IPB forum will use 1,420 files to start with!
Yes, but that is a far cry from 50K. When a site gets to the size of 50K inodes, its huge.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #37  
Old 03-23-2008, 11:23 AM
RainbowViper's Avatar
RainbowViper RainbowViper is offline
King Croc
 
Join Date: Mar 2008
Location: St Paul MN
Posts: 814
Default Re: Small TOS Update.

Quote:
Originally Posted by babylove View Post
*****SNIP*****
You should active this TOS with new customer not the exiting. Because We believe that you prepare all the space for us. That's mean we can use my space for any reason. Huge files,many inode or install any scripts belong to the space that you allocate to us. This is the best thing you should do for your customer.
The new terms of service are *LESS RESTRICTIVE* than what was in effect for you before. Why would you want to go "back" to something more restrictive?

This isn't a further restriction, it's a RELAXATION of terms, a very GOOD thing from a customer's point of view. Especially in my case, because I KNOW I'm going to go badly over 50,000 inodes in a very short time.

But as a Tech explained to me yesterday, I could go many times that number over the limit and that won't matter a bit, AS LONG AS... I don't move/delete a whole bunch of files at once or otherwise risk file/directory corruption. And I won't be doing that, so I'm good to go.

Hope that cleared up your confusion about the TOS: You're coming out ahead on this one.

RV
Reply With Quote
  #38  
Old 03-24-2008, 03:02 AM
GatorEricS GatorEricS is offline
Banned User
 
Join Date: Dec 2007
Location: Houston
Posts: 651
Default Re: Small TOS Update.

Hi Jordan,
Yes, we oversell. It's common practice in the industry.
I can assure you, we have significantly more space than a 600GB hard drive (or even a 600GB RAID). We have a redundant RAID array on all of our shared and reseller servers.
I can also assure you, we do not place 500 accounts on our servers, the number is significantly lower.

Quote:
Originally Posted by Jordanlw View Post
LOL,
And by the way you do know that the HDD space & bandwidth is oversolled?
Meaning it really doesn't exist.
There may be a 600GB HDD per server and each server having around 500 clients on it.
Reply With Quote
  #39  
Old 07-27-2008, 02:10 AM
ryanmc ryanmc is offline
Hatchling Croc
 
Join Date: Nov 2005
Posts: 6
Default Re: Small TOS Update.

I just got an email saying I am over the limit.



I ran the above script and it says I have over 98000 inodes.



Can you guys add a program to cpanel that will show us how many inodes we have in each directory so that I can find out where the most are, so I can delete them?



I have a couple installs of gallery and wordpress and I noticed that they both create a lot of cache files. This helps to reduce the server load because they are not dynamic files. So it is a catch 22 either I exceed the 50000 limit and serve static cached pages, or I turn off cache and serve dynamic pages, but increase CPU usage?



I would love to upgrade to a dedicated server, but the price defference it prohibitive, $7.95 vs $174.00 per month is way to much. It would be cheaper to setup multiple shared accounts, 35 shared hatchling = 1 dedicated account in price.



I noticed that you are starting Windows hosting soon. Will Windows hosting have the same file limit?
Reply With Quote
  #40  
Old 07-29-2008, 03:40 PM
tribe tribe is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 40
Default Re: Small TOS Update.

I scanned the thread, but this version worked for me flawlessly. I just named it inodes.php (easy to remember). It just outputs the total.
Quote:
<?php
system("find /home/CPANELUSERNAME -printf \"%i\n\" | sort -u | wc -l");
?>
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 05:50 PM.