A Linux storage administrator wants to create a logical volume group.
Which of the following commands is required to start the process?
Click on the arrows to vote for the correct answer
A. B. C. D.B.
https://www.thegeekstuff.com/2010/08/how-to-create-lvm/The correct command to create a logical volume group (VG) on Linux is vgcreate
. Therefore, option B is the correct answer.
Here is a brief explanation of the command and its usage:
vgcreate
is a Linux command that is used to create a new volume group on a Linux system. A volume group is a collection of physical volumes (PVs) that are combined to form a logical storage space. Once a volume group is created, logical volumes (LVs) can be created within it, and file systems can be created on those logical volumes.
To use the vgcreate
command, you need to specify the name of the volume group you want to create and the physical volumes that will be part of the group. Here is the basic syntax of the command:
cssvgcreate [options] VG_NAME PVs
Here, VG_NAME
is the name you want to give to the volume group, and PVs
is a space-separated list of the physical volumes that will be part of the group. The [options]
section can be used to specify additional options, such as the size of the volume group or the metadata type to use.
For example, if you want to create a new volume group called myvg
that includes two physical volumes /dev/sdb
and /dev/sdc
, you would use the following command:
bashvgcreate myvg /dev/sdb /dev/sdc
This command would create a new volume group called myvg
that includes the two physical volumes /dev/sdb
and /dev/sdc
. Once the volume group is created, you can create logical volumes within it using the lvcreate
command and create file systems on those logical volumes using commands like mkfs.xfs
.