You need to retire the disk /dev/sdb, which is still holding allocated physical extents inside the volume group prodvg. All logical volumes in that group must stay online and accessible during the migration of data to the other disks that have free space. Which single LVM command will safely move every allocated extent away from /dev/sdb without unmounting or stopping any logical volumes?
The pvmove command copies every allocated physical extent on the specified physical volume to free extents on other physical volumes in the same volume group while the logical volumes remain active. After pvmove completes, /dev/sdb no longer contains any used extents and can be removed with vgreduce or pvremove. vgreduce can only detach a physical volume that is already empty; it will fail (or destroy data with --force) if extents are still present. pvremove merely wipes the LVM label and cannot run until the PV has been taken out of the volume group. vgexport exports the entire volume group's metadata and does not migrate extents at all. Therefore, only pvmove /dev/sdb achieves the required live migration.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the pvmove command in LVM?
Open an interactive chat with Bash
What are physical extents in LVM?
Open an interactive chat with Bash
Why can't vgreduce or pvremove be used directly on a physical volume with allocated extents?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .