Which command creates a new volume group named vg_data using the device /dev/sdb1?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command creates a new volume group named vg_data using the device /dev/sdb1?

Explanation:
In LVM, a volume group is created with the vgcreate command to define a new VG and include one or more physical volumes. Using vgcreate vg_data /dev/sdb1 creates a brand-new volume group named vg_data and adds /dev/sdb1 as its physical volume. Once the VG exists, you can then create logical volumes inside it with lvcreate. Understanding the other options helps: pvcreate initializes a device as a physical volume but does not create a volume group by itself. vgextend adds one or more physical volumes to an existing volume group, not create a new one. lvcreate creates a logical volume inside an existing volume group. So the command that establishes a new volume group using the given device is vgcreate vg_data /dev/sdb1.

In LVM, a volume group is created with the vgcreate command to define a new VG and include one or more physical volumes. Using vgcreate vg_data /dev/sdb1 creates a brand-new volume group named vg_data and adds /dev/sdb1 as its physical volume. Once the VG exists, you can then create logical volumes inside it with lvcreate.

Understanding the other options helps: pvcreate initializes a device as a physical volume but does not create a volume group by itself. vgextend adds one or more physical volumes to an existing volume group, not create a new one. lvcreate creates a logical volume inside an existing volume group. So the command that establishes a new volume group using the given device is vgcreate vg_data /dev/sdb1.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy