XK0-004 · Question #484
A systems administrator is creating a new volume opt _ app in a volume group app_vg. The new volume should utilize all the available disk space from the newly added disk device /dev/ sdb. Which of the
The correct answer is C. Option C. This question tests the correct sequence of LVM commands to initialize a new disk, create a volume group, and provision a logical volume using all available space.
Question
A systems administrator is creating a new volume opt _ app in a volume group app_vg. The new volume should utilize all the available disk space from the newly added disk device /dev/ sdb. Which of the following will achieve the task, assuming the app_vg volume group does not exist yet and the disk device was added but not configured?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
How the community answered
(23 responses)- A4% (1)
- B9% (2)
- C65% (15)
- D22% (5)
Why each option
This question tests the correct sequence of LVM commands to initialize a new disk, create a volume group, and provision a logical volume using all available space.
Option A omits or misororders a required LVM step, such as skipping pvcreate before vgcreate, which would cause the vgcreate command to fail because the device is not yet a recognized physical volume.
Option B uses an incorrect or incomplete set of LVM commands that fails to either initialize the disk with pvcreate or specify 100%FREE when creating the logical volume.
Option C follows the mandatory three-step LVM workflow: pvcreate /dev/sdb marks the raw disk as a physical volume, vgcreate app_vg /dev/sdb creates the volume group from that physical volume, and lvcreate -n opt_app -l 100%FREE app_vg allocates all available extents to the new logical volume. Each step is a prerequisite for the next, and the 100%FREE extent specification ensures no disk space is left unallocated.
Option D either skips the vgcreate step needed to build app_vg before lvcreate is run, or uses incorrect sizing flags that do not consume all available free space in the volume group.
Concept tested: LVM provisioning sequence: pvcreate, vgcreate, lvcreate
Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/index
Topics
Community Discussion
No community discussion yet for this question.
