How to Resize LVM
The "lvresize" function resizes the Linux logical volume manager for a hard disk drive. The disk management system uses a set amount of space assigned to the hard disk user, so you can store your data without running out of space. If you need to resize this space to expand the volume or make is smaller, you use the lvresize function in the Linux terminal.
Instructions
-
-
1
Open the terminal. Type "sudo su" and press "Enter" to access the root shell.
-
2
Type "df -kh" and press "Enter." The file system shows and the size of the hard drive and used space are also shown. A percentage of used space is shown. If your volume has more than 90 percent of used space, then you want to expand the volume.
-
-
3
Type "lvresize -L +3GB /dev/volume" and press "Enter." This command expands the "volume" volume by three gigabytes. You can use any numerical value to define the resized volume.
-
4
Display the volume information. The following command shows the new, resized volume information:
lvdisplay /dev/volume
-
1