About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 20 Aug 2004 - 14:19:59 BST


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_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 20 Aug 2004 - 14:20:13 BST by hypermail 2.1.3