nerdexam
CompTIACompTIA

XK0-005 · Question #470

XK0-005 Question #470: Real Exam Question with Answer & Explanation

The correct answer is A: df -h /. To resolve a full root filesystem, an administrator would first check disk usage, and if using LVM, would then extend the logical volume and its underlying partition to accommodate more data.

Troubleshooting

Question

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.)

Options

  • Adf -h /
  • Bfdisk -1 /dev/sdb
  • Cgrowpart /dev/mapper/rootvg-rootlv
  • Dpvcreate /dev/sdb
  • Elvresize -L +10G -r /dev/mapper/rootvg-rootlv
  • Flsblk /dev/sda
  • Gparted -l /dev/mapper/rootvg-rootlv
  • Hvgextend /dev/rootvg /dev/sdb

Explanation

To resolve a full root filesystem, an administrator would first check disk usage, and if using LVM, would then extend the logical volume and its underlying partition to accommodate more data.

Common mistakes.

  • B. fdisk -l /dev/sdb lists partition tables on a disk, which is an information-gathering step for new storage but does not resolve a full filesystem or expand it.
  • D. pvcreate /dev/sdb initializes /dev/sdb as a new LVM physical volume, a step to add new storage to LVM, but not for directly expanding an existing full filesystem.
  • F. lsblk /dev/sda lists block devices on /dev/sda for viewing disk layout, but it does not resolve a full filesystem.
  • G. parted -l /dev/mapper/rootvg-rootlv is syntactically incorrect for listing partitions on a logical volume, as parted -l expects a physical disk device.

Concept tested. Linux LVM filesystem expansion and diagnostics

Reference. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_storage_devices/extending-lvm-logical-volumes_managing-storage-devices

Topics

#LVM#Disk Management#Filesystem Expansion#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions