What is the correct order of tasks for creating an LVM for the first time?

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

What is the correct order of tasks for creating an LVM for the first time?

Explanation:
In LVM, you start by turning the physical storage into a physical volume with pvcreate. This initializes the disk or partition so LVM can use it. Next, you group one or more physical volumes into a volume group with vgcreate; the volume group is the container that holds the space from its PVs. Finally, you create a logical volume with lvcreate inside that volume group, which gives you an LV you can format and mount. The LV depends on the VG existing, which in turn depends on the PV being prepared first. So the sequence PV -> VG -> LV is the correct flow for the first-time LVM setup.

In LVM, you start by turning the physical storage into a physical volume with pvcreate. This initializes the disk or partition so LVM can use it. Next, you group one or more physical volumes into a volume group with vgcreate; the volume group is the container that holds the space from its PVs. Finally, you create a logical volume with lvcreate inside that volume group, which gives you an LV you can format and mount. The LV depends on the VG existing, which in turn depends on the PV being prepared first. So the sequence PV -> VG -> LV is the correct flow for the first-time LVM setup.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy