Lvm Partition Management - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 12. Managing Disk Storage
parted /dev/sda
View the current partition table to determine the minor number of the partition to resize as well as the
start and end points for the partition:
print
Warning
The used space of the partition to resize must not be larger than the new size.
To resize the partition, use the resize command followed by the minor number for the partition, the
starting place in megabytes, and the end place in megabytes. For example:
resize 3 1024 2048
After resizing the partition, use the print command to confirm that the partition has been resized
correctly, is the correct partition type, and is the correct file system type.
After rebooting the system into normal mode, use the command df to make sure the partition was
mounted and is recognized with the new size.

12.2. LVM Partition Management

The following commands can be found by issuing lvm help at a command prompt.
Command
dumpconfig
formats
help
lvchange
lvcreate
lvdisplay
lvextend
lvmchange
lvmdiskscan
lvmsadc
lvmsar
lvreduce
lvremove
lvrename
lvresize
114
Description
Dump the active configuration
List the available metadata formats
Display the help commands
Change the attributes of logical volume(s)
Create a logical volume
Display information about a logical volume
Add space to a logical volume
Due to use of the device mapper, this command
has been deprecated
List devices that may be used as physical
volumes
Collect activity data
Create activity report
Reduce the size of a logical volume
Remove logical volume(s) from the system
Rename a logical volume
Resize a logical volume

Advertisement

Table of Contents
loading

Table of Contents