You have increased the size of a virtual disk that backs the third partition (/dev/sda3) of a Linux server. That partition is an LVM physical volume that contains volume group vg00 and logical volume lv_data, which is formatted with ext4 and mounted at /data. You need to expand the filesystem so that the application using /data can immediately use the additional space, and you want to accomplish the task with the minimum number of commands while keeping /data online. Which command sequence meets these requirements?
The correct answer uses three commands that each operate on a different layer of the storage stack and that all work while the system is running. 1) growpart rewrites the partition table so /dev/sda3 fills the newly added space. 2) pvresize makes the existing physical volume aware of that extra space so the volume group gains free extents. 3) lvextend -r allocates those extents to lv_data and automatically calls resize2fs on the mounted ext4 filesystem, completing the expansion with no unmount required. The other choices are incorrect because they either create a new physical volume on another disk, omit the pvresize step (leaving no free extents to allocate), or try to grow an ext4 filesystem with the XFS-specific xfs_growfs command.
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 role of 'growpart' in this command sequence?
Open an interactive chat with Bash
Why is 'pvresize' necessary in the LVM process?
Open an interactive chat with Bash
What does the '-r' flag do in the 'lvextend' command?
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 .