![]() ![]() LV UUID B0EwV0-5XTH-1GLF-LTW2-8q9q-3Ou0-rsggEMīlock device 253:0 Extending a logical volumeĪn LV can be extended by using the lvextend command. PV UUID rg85Xj-lu0n-HWmE-50D5-8SfC-AGtC-Ln0JaL Logical Volume ~]# lvdisplay Pvdisplay will show an which VG belongs a PV This raises the issue of how we create an LV within a volume group in the first place. Note that any logical volumes using physical extents from PV /dev/hdc will be removed as well. ![]() This same PV can be removed from volume_group_one by the vgreduce command: The following commands convert /dev/hdc into a PV and then adds that PV to volume_group_one: If both /dev/hda and /dev/hdb are 128 GB in size, then the VG volume_group_one will have a total of 2**16 physical extents that can be allocated to logical volumes.Īdditional PVs can be added to this volume group using the vgextend command. Vgcreate volume_group_one /dev/hda /dev/hdbĬreates a new VG called volume_group_one with two disks, /dev/hda and /dev/hdb, and 4 MB PEs. Once you have one or more physical volumes created, you can create a volume group from these PVs using the vgcreate command. Pvcreate /dev/sda2 Creating/Managing a volume group (VG) If a Linux partition is to be converted make sure that it is given partition type 0x8E using fdisk:ĭisk /dev/sda: 375.8 GB, 375809638400 bytesĢ55 heads, 63 sectors/track, 45689 cylinders LVM can't tell that two PVs are on the same physical disk, so if you create a striped LV then the stripes could be on different partitions on the same disk resulting in a decrease in performance rather than an increase.įor example, to convert /dev/sda and /dev/sdb into PVs use the following commands: Converting disks or disk partitions into physical volumes (PVs).Linux - The Linux Logical Volume Manager (Logical Partition) ![]()
0 Comments
Leave a Reply. |