Used to create LVM volume groups
vgcreate command is used to create LVM volume groups. Volume Group organizes multiple physical volumes into a whole, shielding the underlying physical volume details. Logical volumes are created on a volume group without considering specific physical volume information.
vgcreate(options)(parameters)-l: The maximum number of logical volumes allowed to be created on the volume group;
-p: The maximum number of physical volumes allowed to be added to the volume group;
-s: PE size of the physical volume on the volume group.Use the vgcreate command to create volume group "vg1000", and add physical volumes /dev/sdb1 and /dev/sdb2 to the volume group. Enter the following command at the command line:
[root@localhost ~]# vgcreate vg1000 /dev/sdb1 /dev/sdb2 #Create volume group "vg1000"The output information is as follows:
Volume group "vg1000" successfully created