exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 97 discussion

Actual exam question from CompTIA's XK0-005
Question #: 97
Topic #: 1
[All XK0-005 Questions]

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
  • F. lsblk /dev/sda
  • G. parted -l /dev/mapper/rootvg-rootlv
  • H. vgextend /dev/rootvg /dev/sdb
Show Suggested Answer Hide Answer
Suggested Answer: DEH 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Damon54
Highly Voted 1 year, 8 months ago
Selected Answer: DEH
pvcreate /dev/sdb vgextend /dev/rootvg /dev/sdb lvresize –L +10G -r /dev/mapper/rootvg-rootlv
upvoted 8 times
...
IFBBPROSALCEDO
Highly Voted 11 months ago
Selected Answer: AEH
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.
upvoted 5 times
...
Mistermiyagi
Most Recent 1 week, 5 days ago
Selected Answer: AEH
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.
upvoted 1 times
...
Qubert2
5 months, 4 weeks ago
Selected Answer: DEH
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.
upvoted 2 times
...
e418137
1 year, 1 month ago
Selected Answer: DEH
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.)
upvoted 2 times
...
sademik
1 year, 2 months ago
Selected Answer: AEH
Confirm, then resize.
upvoted 2 times
...
DRVision
1 year, 4 months ago
Selected Answer: ACE
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.
upvoted 2 times
DRVision
1 year, 4 months ago
CEH A would only you to view the free space while H extends the volume group by adding partitions which would also reolve the issue.
upvoted 1 times
...
...
Damon54
1 year, 8 months ago
Correct is pvcreate /dev/sdb vgextend /dev/rootvg /dev/sdb lvresize –L +10G -r /dev/mapper/rootvg-rootlv
upvoted 2 times
...
linux_admin
2 years, 2 months ago
Selected Answer: AEH
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.
upvoted 3 times
linux_admin
2 years, 1 month ago
***Discard*** Im going with DEH.
upvoted 5 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago