James Melin writes:
> Is there a good tool to say analyze part of a file system tree and report
> how much space it is using?
>
> Say like /usr/sbin - which is not in it's own file system but part of a
> larger one.
du -s /usr/sbin
Useful variations on a theme are
du -s /foo/bar/*/
to get subtotals of each subdirectory (note the trailing / to force
the glob to match only directories) and including the option "--total"
to print a grand total.
> I'm trying to size a new deployment based on another and adust for growth.
> I am limited at the moment to a mod-9 drive size, so its kinda critical to
> know what parts of the root FS contain the most mass.
>
> I am also limited on the number of volumes I can actually have, so I'm
> trying to figure out the best distribution of limited resources
>
> My thought was this:
Your suggested breakdown of filesystems doesn't fit with usual
practice. If you want to split your filesystem amongst many volumes
(and there are frequently good reasons for doing this), then start
with separate filesystems for:
/, swap, /usr, /tmp, /var, /opt, /home and /usr/local.
These need not be full 3390-3 or 3390-9 volumes but can be
partitions instead (by using the CDL disk layout to get up to 3
partitions on each volume). Typically, you would want to keep the
root filesystem smallish in such a setup. For a larger Linux system,
you would mount extra volumes wherever needed (application specific
data filesystems might want to be on /var/lib/foo/data123,
/opt/foo/data/blah, /home/biggroupname, /usr/local/foo or a variety
of other conventions).
This all assumes that you have a large enough Linux system to make
it worth the complexity of splitting everything up. You can go a
long way with a single filesystem for the entire base system, a
swap partition and, if needed, a separate /usr before you necessarily
need to consider splitting off /var, /tmp, /opt or whatever.
--Malcolm
--
Malcolm Beattie <[EMAIL PROTECTED]>
Linux Technical Consultant
IBM EMEA Enterprise Server Group...
...from home, speaking only for myself