A Linux administrator has prepared two new partitions, /dev/sdb1 and /dev/sdc1, as LVM physical volumes. The administrator now needs to create a new volume group named datavg that includes both of these physical volumes. Which of the following commands will accomplish this task?
The correct command to create a new volume group is vgcreate. The syntax requires specifying the desired name for the new volume group, followed by the paths to one or more physical volumes that will be included in it. Therefore, vgcreate datavg /dev/sdb1 /dev/sdc1 correctly creates a volume group named datavg using the two specified physical volumes.
The command pvcreate is used to initialize a disk or partition for use by LVM, which was already done according to the scenario. Its syntax is also incorrect here.
The command lvcreate is used to create a logical volume inside an already existing volume group.
Placing the volume group name after the physical volume paths is an incorrect ordering of arguments for the vgcreate command.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a volume group in LVM?
Open an interactive chat with Bash
What is the purpose of the `vgcreate` command?
Open an interactive chat with Bash
What is the difference between `pvcreate`, `vgcreate`, and `lvcreate`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access