Wednesday, August 20, 2008

Knowing HP-UX File System Size in GB

Many people struggle to know the file system size in GB on HP-UX. As an administrator I too struggled for the same. However please find below the way to know the file system size in GB.

MB=`lvdisplay /dev/vg00/lvol4 |grep Mbytes |awk '{print $4}'` ; echo "`expr ${MB} / 1024` GB"

In the above command we just need to replace the volume group name and the logical volume name.


No comments: