CompTIA Linux+ XK0-006 (V8) Practice Question

You need to shrink the LVM physical volume on /dev/sdb2 from 800 GiB down to 600 GiB so you can create another partition. The volume group vgdata still has plenty of free space, but the command below fails:

# pvresize --setphysicalvolumesize 600G /dev/sdb2
/dev/sdb2: cannot resize to 153600 extents as 160000 are allocated.

Which action must you take before pvresize will allow the reduction to 600 GiB?

  • Deactivate vgdata with vgchange -an and rerun pvresize using the --force option.

  • Shrink each logical volume in vgdata with lvreduce -r until their total size is below 600 GiB.

  • Run vgextend vgdata /dev/sdb2 to refresh volume-group metadata, then repeat pvresize.

  • Move the extents that reside past the 600 GiB point with pvmove, then rerun pvresize.

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