I'm trying to list the size of all files on a volume group in AIX 5.3. I need to backup a volume group and I need to determine if it will fit on the tapes I have available.
This question lists 'pvdisplay' and 'pvs' which aren't available in AIX it seems.
lsvg -p <volume group>
will list the volumes in a volume group (and sizes)lsvg -l <volume group>
will list the logical volumes (and file systems)To add up file sizes I think you need to look at the file system (
du
command)Use the 'lsvgfs' command against your volume group, and then sum the Used column from 'df' for those filesystems.
You really ought to use a script to make it easier See this post about managing disk space in AIX
The following script will show the space available for each volume group in AIX
this will display