A Linux administrator has installed a new SSD at /dev/sdb and wants to make all of the additional capacity immediately available to the ext4-formatted /home directory, which is mounted from the logical volume vgdata/home. Downtime must be avoided.
Which sequence of commands, executed in the order shown, will correctly accomplish this task?
fdisk /dev/sdb to create a new partition ➜ mkfs.ext4 /dev/sdb1 ➜ mount /dev/sdb1 /home ➜ lvextend -r /dev/vgdata/home +100%FREE
The new disk must first be initialized as a physical volume so that LVM can manage it. The volume group that holds the /home logical volume then has to be enlarged to include the new physical volume. Next, the logical volume itself is extended to use the free space provided by the volume group. Because the underlying file system is ext4-which supports online growth-the resize2fs utility can safely expand the mounted file system to fill the larger logical volume without unmounting /home.
Sequences that try to extend the logical volume before the volume group holds the new space will fail, and commands such as xfs_growfs are only valid for XFS, not ext4.
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 pvcreate in this process?
Open an interactive chat with Bash
Why is resize2fs used, and how does it work with ext4?
Open an interactive chat with Bash
Why is vgextend required before lvextend?
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 .