HP-UX System Administrator's Guide: Routine Management Tasks

select the logical volumes one at a time to obtain similar detailed information for
each logical volume.
6. Clicking on the Volume Groups or File Systems tabs at the top of the page will
display additional information such as overall storage available and file system
distribution.
Finding Large Files
As a preliminary to getting your users to clean up unneeded files from an overfull
volume, it’s useful to identify the largest files (often core files users are unaware of,
postscript files they have long ago printed and been forgotten about, folders containing
ancient mail, and so on). The following commands are examples of how you might
look for these files:
Example 3-1 Producing a directory listing sorted by size
ll dirname | sort -n -k5,6
Example 3-2 Finding files larger than a specific size
This command pipe will provide a listing of files found within a directory tree, rooted
at dirname, greater than 2 million characters in size:
find dirname -size +2000000c|xargs ll -d
You can adjust the value for the size to whatever you like. You can also use other
options to the find command to further refine your search. For example, the above
command pipe can be adjusted to only look for files owned by the user skibby:
find dirname -user skibby -size +2000000c|xargs ll -d
Examining File System Characteristics
To see what characteristics a file system was built with, use the -m option of mkfs. This
works particularly well for JFS:
#bdf | grep /work
/dev/vg01/lvol8 73728 7856 61648 11% /work
#mkfs -m /dev/vg01/lvol8
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=6,inosize=256,logsize=2048,largefiles0
#
How To: 153