nerdexam
CompTIA

XK0-004 · Question #138

An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and…

The correct answer is A. The logical volume is not active. The administrator should make it active with lvchange -ay. An LVM logical volume that is not active cannot be mounted. The lvchange -ay command activates the logical volume, resolving the mount failure.

Troubleshooting and Diagnostics

Question

An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:

Upon checking the logical volume status, the administrator receives this information:

Which of the following can be said about the data logical volume, and how can this problem be resolved?

Exhibit

XK0-004 question #138 exhibit

Options

  • AThe logical volume is not active. The administrator should make it active with lvchange -ay
  • BThe logical volume file system has become corrupted. The administrator should repair it with
  • CThe logical volume is OK but the special files are missing. The administrator should
  • DThe file system is read-only. The administrator should remount it as read-write with the command

How the community answered

(25 responses)
  • A
    72% (18)
  • B
    4% (1)
  • C
    16% (4)
  • D
    8% (2)

Why each option

An LVM logical volume that is not active cannot be mounted. The lvchange -ay command activates the logical volume, resolving the mount failure.

AThe logical volume is not active. The administrator should make it active with lvchange -ayCorrect

LVM logical volumes can be in an inactive state after a reboot if volume group auto-activation is disabled or fails. The lvchange -ay command sets the logical volume to active state, making the block device available so the filesystem can be mounted normally.

BThe logical volume file system has become corrupted. The administrator should repair it with

Filesystem corruption would still allow the volume to appear active in lvs output and typically produces different errors such as journal recovery failures; fsck repairs corruption but cannot fix an inactive volume.

CThe logical volume is OK but the special files are missing. The administrator should

Missing device special files under /dev produce a 'no such file or directory' error rather than a state-related mount failure, and are regenerated by udev or vgscan --mknodes, not by activating the volume.

DThe file system is read-only. The administrator should remount it as read-write with the command

A read-only filesystem would still mount successfully with the 'ro' flag and would not cause the volume to show as inactive in lvs output; remounting read-write does not resolve an inactive logical volume.

Concept tested: LVM logical volume activation with lvchange

Source: https://man7.org/linux/man-pages/man8/lvchange.8.html

Topics

#LVM#logical volumes#lvchange#volume activation

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice