You are managing a Linux server whose volume group webvg has almost no free extents left. After plugging in a new NVMe device you create one LVM physical volume on it:
# pvcreate /dev/nvme1n1p1
You now want the capacity of this physical volume to become part of webvg so that existing logical volumes can be expanded later. Which single command accomplishes this task?
The vgextend command is designed to enlarge an existing volume group by adding one or more free physical volumes. Running
vgextend webvg /dev/nvme1n1p1
adds the new PV's free extents to webvg without affecting any logical volumes that already reside in the group.
The other options are wrong for the following reasons:
lvextend -l +100%FREE /dev/webvg/data_lv /dev/nvme1n1p1 - lvextend grows a logical volume, not a volume group, and its syntax expects a logical-volume path, not a PV device.
vgcreate webvg /dev/nvme1n1p1 - vgcreate attempts to create a brand-new volume group. Re-using the name of an existing VG would fail and, even if it succeeded with a different name, it would not merge space with the current group.
vgreduce webvg /dev/nvme1n1p1 - vgreduce removes physical volumes from a VG, the opposite of what is required here.
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 pvcreate command in LVM?
Open an interactive chat with Bash
What happens when you run the vgextend command in LVM?
Open an interactive chat with Bash
What is the difference between vgextend and lvextend 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 .