nerdexam
CompTIA

XK0-005 · Question #10730

A systems administrator received a report about issues with a Linux system. Given the following output: Which of the following is the best command to use to fix this issue?

The correct answer is C. lvextend -L +5G -r /dev/mapper/rootvg-varlv. From the provided output, we can see that the /var filesystem (/dev/mapper/rootvg-varlv) is 100% full, with only 10M available. This is likely causing issues with system operations, as /var is a critical directory that often stores logs, spools, and other essential files. The…

Troubleshooting

Question

A systems administrator received a report about issues with a Linux system. Given the following output: Which of the following is the best command to use to fix this issue?

Options

  • Amkfs.xfs /var
  • Brm -rf /var/*
  • Clvextend -L +5G -r /dev/mapper/rootvg-varlv
  • Dlvresize -L +2G -r /dev/mapper/rootvg-rootlv

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    18% (5)
  • C
    71% (20)
  • D
    4% (1)

Explanation

From the provided output, we can see that the /var filesystem (/dev/mapper/rootvg-varlv) is 100% full, with only 10M available. This is likely causing issues with system operations, as /var is a critical directory that often stores logs, spools, and other essential files. The best solution is to extend the logical volume (lvextend) for /var to provide more space - lvextend -L +5G -r /dev/mapper/rootvg-varlv: -L +5G: This increases the size of the logical volume by 5GB. -r: The -r option resizes the filesystem after the logical volume is extended, ensuring the new space is immediately usable.

Topics

#LVM#Disk Space Management#Filesystem Resizing#Linux Administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice