FreeKB - LVM (Logical Volume Manager) vgcreate command (create a volume group)
LVM (Logical Volume Manager) - vgcreate command (create a volume group)

The vgcreate command can be used to create an LVM volume group. In this example, physical volumes /dev/sdb1 and /dev/sdc1 are added to a volume group named myVG. This assumes that both /dev/sdb1 and /dev/sdc1 have been set up as LVM physical volumes.

~]# vgcreate myVG /dev/sdb1 /dev/sdc1

 

The vgdisplay command can be used to verify the LVM volume group was created.

--- Volume group ---
VG Name               vg001
System ID
Format                lvm2
Metadata Areas        1
Metadata Sequence No  3
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                2
Open LV               2
Max PV                0
Cur PV                1
Act PV                1
VG Size               <15.51 GiB
PE Size               4.00 MiB
Total PE              3970
Alloc PE / Size       3960 / <15.47 GiB
Free  PE / Size       10 / 40.00 MiB
VG UUID               lgHh9m-9iMP-8ltU-2cxz-Y4wL-uwG0-EHiGFr

 

Next, create a logical volume.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 85f1f in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |