A Linux administrator needs to perform maintenance on a server and must replace a failing disk, /dev/sdb1, which is currently used as a Physical Volume (PV) within a Volume Group (VG). To avoid downtime, the administrator plans to first migrate all data from the failing disk to other available PVs in the same VG. Which of the following commands should the administrator use to accomplish this task?
The correct command is pvmove /dev/sdb1. The pvmove command is specifically designed to move all allocated physical extents from a source PV to other PVs within the same volume group. pvcreate is used to initialize a disk or partition for use by LVM and would not be used on a disk that is already a PV. pvremove is used to remove the LVM metadata from an empty PV, but it cannot be used on a PV that still holds data; the data must be moved first. pvresize is used to change the size of a PV after the underlying block device has been resized. It does not move data to other PVs.
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 a Physical Volume (PV) in LVM?
Open an interactive chat with Bash
How does the `pvmove` command work?
Open an interactive chat with Bash
What is the role of a Volume Group (VG) in LVM?
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 .