![]() | Red Hat Enterprise Linux |
Storage - Logical Volume Management (LVM)Creating VolumesSteps
Physical VolumeCreate a new physical volumeExample Displays physical volumes Displays detailed information on physical volumes Volume GroupCreates a new volume groupExample Example Display volume groups Display detailed information on volume groups [root@redhat ~]# vgremove volume_group_name Removes a volume group Logical VolumeCreates a new logical volumeSyntax [root@redhat ~]# lvcreate Options Volume-Group Example Use 100% of free space on volume group [root@redhat ~]# lvcreate -l 100%FREE -p rw -n lv_my_log_vol vg_my_vol_group Displays logical volumes [root@redhat ~]# lvs Displays detailed information on logical volumes [root@redhat ~]# lvdisplay Removes a logical volume [root@rhel8 user1]# lvremove Logical-Volume [root@rhel8 user1]# vgextend Extends an existing volume group [root@rhel8 user1]# lvextend Extends a logical volume [root@redhat ~]# pvresize /dev/sda1 Expand the PV on /dev/sda1 after enlarging the partition with fdisk [root@rhel8 user1]# lvresize Resizes a logical volume [root@rhel8 user1]# lvreduce Reduces a logical volume [root@rhel8 user1]# lvrename Renames a logical volume [root@rhel8 user1]# pvmove Moves/migrates data from one physical volume to another [root@rhel8 user1]# vgreduce Reduces a volume group [root@rhel8 user1]# pvremove Removes a physical volume |