HP-UX System Administrator's Guide: Routine Management Tasks
Reducing a Logical Volume
Here are several examples showing how to reduce the size of logical volumes containing
mounted file systems. The specific procedure to do this varies depending on the type
of file system you are working with.
¸
˚
file system
or
database
lvol2
CAUTION: Before reducing the size of a logical volume that contains a file system,
database, or other important data, back up the data! Even if a file system currently
occupies less space than the new (reduced) size of the logical volume, there is a chance
you could lose data due to truncation when you reduce the size of the logical volume
that contains them.
Reduce the size of the contents (the file system or database) before reducing the size of
the container (the logical volume) to avoid truncating data or critical file system
structures.
NOTE: Though the examples presented here are based on manual commands, the
HP System Management Homepage can do many of the steps in this procedure for
you.
Example: Reducing the size of a logical volume containing a VxFS file system
Procedure summary:
• Make sure no one is actively using the file system during the procedure
• Backup the data (for safety)
• Use fsadm to reduce the size of the file system so that when you reduce the size
of the surrounding logical volume, none of the file system structures or data are
truncated
Managing Disks - Quick Reference Examples 103