Resizing Logical Volumes334.4.3. Resizing Logical VolumesTo reduce the size of a logical volume, use the lvreduce command. If the logical volume contains afile system, be sure to reduce the file system first (or use the LVM GUI) so that the logical volume isalways at least as large as the file system expects it to be.The following command reduces the size of logical volume lvol1 in volume group vg00 by 3 logicalextents.lvreduce -l -3 vg00/lvol14.4.4. Changing the Parameters of a Logical Volume GroupTo change the parameters of a logical volume, use the lvchange command. For a listing of theparameters you can change, see the lvchange(8) man page.You can use the lvchange command to activate and deactivate logical volumes. To activate anddeactivate all the logical volumes in a volume group at the same time, use the vgchange command,as described in Section 4.3.6, “Changing the Parameters of a Volume Group”.The following command changes the permission on volume lvol1 in volume group vg00 to be read-only.lvchange -pr vg00/lvol14.4.5. Renaming Logical VolumesTo rename an existing logical volume, use the lvrename command.Either of the following commands renames logical volume lvold in volume group vg02 to lvnew.lvrename /dev/vg02/lvold /dev/vg02/lvnewlvrename vg02 lvold lvnewFor more information on activating logical volumes on individual nodes in a cluster, see Section 4.8,“Activating Logical Volumes on Individual Nodes in a Cluster”.4.4.6. Removing Logical VolumesTo remove an inactive logical volume, use the lvremove command. If the logical volume is currentlymounted, you must close the volume with the umount command before removing it. In addition, in aclustered environment you must deactivate a logical volume before it can be removed.The following command removes the logical volume /dev/testvg/testlv. from the volume grouptestvg. Note that in this case the logical volume has not been deactivated.