CompTIA Linux+ XK0-006 (V8) Practice Question

A volume group named data_vg is 500 GiB in total size, of which 120 GiB is still unallocated. The logical volume /dev/data_vg/web_lv is 80 GiB, formatted with ext4, and mounted at /srv/web while the site is serving traffic. You are asked to grow the logical volume so that it consumes all of the free space in the VG and to expand the filesystem at the same time, without taking the web service offline or running a second command. Which command meets these requirements?

  • lvreduce -L-120G -r /dev/data_vg/web_lv

  • lvresize -l +100%FREE /dev/data_vg/web_lv && resize2fs /dev/data_vg/web_lv

  • lvextend -l +100%FREE -r /dev/data_vg/web_lv

  • lvextend -L 100%VG -r /dev/data_vg/web_lv

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