nerdexam
CompTIA

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.

System Management

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

XK0-004 question #484 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    9% (2)
  • C
    65% (15)
  • D
    22% (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.

AOption A

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.

BOption B

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.

COption CCorrect

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.

DOption D

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

#LVM#physical volume#volume group#logical volume

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice