|
Re: Context disk limits.: msg#00186linux.vserver
On Fri, Aug 20, 2004 at 01:15:45PM +0100, Chris Murton wrote: > All, > > Has anyone come up with a reliable and scalable solution to get this these > to work post-reboot (detecting the number of inodes in use)? Anything that > will count inodes in a directory will suit me brilliantly, or failing that, > if cqhlim could be modded to do this work itself that'd be even better ;) I'm still waiting for some shiny hero, who will step forward and code a nice tool to calculate the precise number of inodes and blocks for a vserver ... until then there are some options for this, with varying accuracy: - non unified vservers number of inodes: find /path/to/vserver -xdev | wc -l blocks used: du -skx /path/to/vserver - unified vservers, tagged correctly: (means for unified xid=0, for all other xid>0) number of inodes: find /path/to/vserver -xdev \( -links 1 -o -type d \) | wc -l number of blocks (1k): find / -xdev -links 1 -printf "%k\n" \ | gawk '{ S+=$1+1 } END { print S }' - unified vservers, half tagged: some magic with lsxid and or a new utility ... HTH, Herbert > Thanks, > Chris. > > _______________________________________________ > Vserver mailing list > Vserver@xxxxxxxxxxxxxxxxxxxxxx > http://list.linux-vserver.org/mailman/listinfo/vserver _______________________________________________ Vserver mailing list Vserver@xxxxxxxxxxxxxxxxxxxxxx http://list.linux-vserver.org/mailman/listinfo/vserver |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Context disk limits.: 00186, Chris Murton |
|---|---|
| Next by Date: | Re: Vserver And RedHat Kernels: 00186, Alex Lyashkov |
| Previous by Thread: | Context disk limits.i: 00186, Chris Murton |
| Next by Thread: | RE: Context disk limits.: 00186, Chris Murton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |