CompTIA Linux+ XK0-006 (V8) Practice Question

You have increased the size of a virtual disk that backs the third partition (/dev/sda3) of a Linux server. That partition is an LVM physical volume that contains volume group vg00 and logical volume lv_data, which is formatted with ext4 and mounted at /data. You need to expand the filesystem so that the application using /data can immediately use the additional space, and you want to accomplish the task with the minimum number of commands while keeping /data online. Which command sequence meets these requirements?

  • lvextend -L +50G /dev/vg00/lv_data resize2fs /dev/vg00/lv_data

  • pvcreate /dev/sdb && vgextend vg00 /dev/sdb lvextend -L +50G /dev/vg00/lv_data resize2fs /dev/vg00/lv_data

  • growpart /dev/sda 3 pvresize /dev/sda3 lvextend -r -l +100%FREE /dev/vg00/lv_data

  • lvextend -l +100%FREE /dev/vg00/lv_data xfs_growfs /data

CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot