Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the vgcreate command in Linux

Shulou Source: shulou.com Published: 2022-06-01 15:08:46 10月02日 Update

This article mainly shows you "how to use the vgcreate command in Linux", the content is simple and easy to understand, clear organization, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to use the vgcreate command in Linux" this article bar.

The vgcreate command is used to create LVM volume groups. Volume Groups organize multiple physical volumes into a single entity, masking the details of the underlying physical volumes. Create logical volumes on volume groups regardless of physical volume information.

syntax format

vgcreate [parameters]

Common options:

-l Maximum number of logical volumes allowed to be created on a volume group-p Maximum number of physical volumes allowed to be added to a volume group-s PE size of physical volumes on a volume group Common parameters: Volume group name Name of volume group to be created List of physical volumes to be added to a volume group List of physical volumes to be added to a volume group Reference example

Create volume group "vg1000" :

[root@linux265 ~]# vgcreate vg1000

Create volume group "vg1000" with a maximum of 200 logical volumes:

[root@linux265 ~]# vgcreate -l 200 vg1000

Create volume group "vg1000" that allows adding up to 200 physical volumes:

[root@linux265 ~]# vgcreate -p 200 vg1000

Create volume group "vg1000" and add physical volumes "/dev/sdb1" and "/dev/sdb2" to the volume group:

[root@linux265 ~]# vgcreate vg1000 /dev/sdb1 /dev/sdb2

Create volume group "vg1000" and allow up to 200 physical volumes "/dev/sdb1" to be added to the volume group:

[root@linux265 ~]# vgcreate -p 200 vg1000 /dev/sdb1 Above is "How to use vgcreate command in Linux" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Physics commands maximum number of volumes content frequently used articles logic parameters names learning help no use information multiple size instances underlying overall easy to understand Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL Shulou Technology vpn Linux