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.)
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
A. df -h /: To check the disk usage of the root filesystem.
E. lvresize –L +10G -r /dev/mapper/rootvg-rootlv: To resize the logical volume and filesystem.
H. vgextend /dev/rootvg /dev/sdb: To extend the volume group with a new physical volume if needed.
I would also like to think you would need to check first with df -h /
then do lvresize along with vgextend
I don't see the point in creating a whole other physical volume when you can just resize the logical volume and volume group.
Before you can extend the volume group with vgextend, you need to run pvcreate on the new disk/partition. Without this, the disk will not be recognized as part of LVM.
DEH. But in this order: DHE.
D. 'pvcreate /dev/sdb' (Create a physical volume for LVM on the new disk.)
H. 'vgextend /dev/rootvg /dev/sdb' (Extend volume group to include new disk.)
E. 'lvresize –L +10G -r /dev/mapper/rootvg-rootlv' (Add space to logical volume.)
A. df -h /: This command will display the disk usage of the root filesystem in a human-readable format. It’s a good starting point to understand how much space is being used.
C. growpart /dev/mapper/rootvg-rootlv: This command will resize the partition on the disk to use all available space. It’s necessary if the filesystem is smaller than the underlying logical volume.
E. lvresize –L +10G -r /dev/mapper/rootvg-rootlv: This command will resize the logical volume to add an additional 10GB of space and resize the filesystem within the logical volume to use the additional space.
fdisk -1 /dev/sdb is not a valid command, and lsblk /dev/sda would only list block devices and their sizes, but wouldn’t help in resolving the issue. Similarly, parted -l /dev/mapper/rootvg-rootlv would list partition layouts on a device, but wouldn’t help in resolving a full filesystem. Finally, vgextend /dev/rootvg /dev/sdb and pvcreate /dev/sdb would be used if you were adding a new physical disk to a volume group, which is not the case here.
A, E, and H are the commands that a systems administrator should use to resolve the issue of the root filesystem being full.
A. The df -h / command is used to check the disk usage and available space on the root filesystem.
E. The lvresize –L +10G -r /dev/mapper/rootvg-rootlv command is used to resize the logical volume to increase the root filesystem's size.
H. The vgextend /dev/rootvg /dev/sdb command is used to extend the root volume group with the new disk /dev/sdb in order to increase the root filesystem's size.
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Damon54
Highly Voted 1Â year, 8Â months agoIFBBPROSALCEDO
Highly Voted 11Â months agoMistermiyagi
Most Recent 1Â week, 5Â days agoQubert2
5Â months, 4Â weeks agoe418137
1Â year, 1Â month agosademik
1Â year, 2Â months agoDRVision
1Â year, 4Â months agoDRVision
1Â year, 4Â months agoDamon54
1Â year, 8Â months agolinux_admin
2Â years, 2Â months agolinux_admin
2Â years, 1Â month ago