CompTIA Linux+ (XK0-005) — Question 136
A Linux system is getting an error indicating the root filesystem is full. Which of the following commands should be used by the systems administrator to resolve this issue? (Choose three.)
Answer options
- A. df -h /
- B. fdisk -1 /dev/sdb
- C. growpart /dev/mapper/rootvg-rootlv
- D. pvcreate /dev/sdb
- E. lvresize –L +10G -r /dev/mapper/rootvg-rootlv
- F. lsblk /dev/sda
- G. parted -l /dev/mapper/rootvg-rootlv
- H. vgextend /dev/rootvg /dev/sdb
Correct answer: D, E, H
Explanation
The correct commands, D, E, and H, are necessary for managing logical volumes and physical volumes in order to increase filesystem space. Command D initializes a new physical volume, E resizes the logical volume while retaining the filesystem, and H extends the volume group. The other options do not address the root filesystem capacity issue directly.