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

430096, 435504, 440912, 446320, 451728, 457136, 462544, 467952, 473360, 478768,
484176, 489584, 494992, 500400, 505808, 511216, 516112, 521520
#
6. Mount the new (smaller) file system:
mount /dev/vg01/lvol2 /work/project5
This mounts the file system back to the directory where it was previously mounted.
NOTE: If the reason you are reducing the size of the logical volume is to use it
for a different purpose, you might want to mount it to a different directory. This
is fine.
7. If necessary restore the data from the backup you made in Step 2.. For example:
cd /somewhere_else
pax -rw . /work/project5
recovers the files from the alternate location somewhere_else, created using the
second pax command in Step 2.
8. If /work/project5 was previously, and will continue to be, used by NFS clients,
reshare it from the server:
share -F nfs /work/project5
and remount it on the clients:
mount -F nfs serversys:/work/project5 /work/localproject5
Removing a Logical Volume
In this example we’ll assume you want to remove a logical volume that is either unused
or contains obsolete data. The following example uses HP SMH.
CAUTION: Removing a logical volume will destroy the contents of any file system it
contains.
1. Access the HP SMH Homepage.
2. Select Tools, Disks and File Systems, Logical Volumes. The Logical Volumes
page will be displayed.
3. Select the logical volume you want to remove and click on the Remove LV... action
on the right side of the page. The Remove Logical Volume page will be displayed.
Click Remove.
You can now use this space to extend an existing logical volume, or to build a new
logical volume.
108 Managing Systems