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…
Question
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)- A7% (2)
- B18% (5)
- C71% (20)
- D4% (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
Community Discussion
No community discussion yet for this question.