XK0-005 · Question #780
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. The output indicates the /var logical volume is running out of space. 'lvextend -L +5G -r /dev/mapper/rootvg-varlv' extends the logical volume by 5GB and the '-r' flag simultaneously resizes the underlying filesystem - all in one safe, non-destructive command. Option A…
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?
Exhibit
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
(40 responses)- A5% (2)
- B8% (3)
- C73% (29)
- D15% (6)
Explanation
The output indicates the /var logical volume is running out of space. 'lvextend -L +5G -r /dev/mapper/rootvg-varlv' extends the logical volume by 5GB and the '-r' flag simultaneously resizes the underlying filesystem - all in one safe, non-destructive command. Option A (mkfs.xfs) would format /var, destroying all data. Option B (rm -rf /var/*) deletes all contents of /var, which would break the system. Option D targets rootlv, not varlv, so it would extend the wrong volume and not fix the reported issue.
Topics
Community Discussion
No community discussion yet for this question.
