You manage a file server where the /data mount point is an ext4 file system located on logical volume /dev/vgdata/lvshare. A new blank SSD has been installed and is visible as /dev/sdb. You must add the entire SSD to the existing volume group vgdata and make all of the newly available space immediately usable by the mounted /data file system, with no reboot or unmount. Which chain of standard LVM commands accomplishes this task in the correct order?
A common and recommended workflow is to explicitly create a physical volume with pvcreate, add that PV to the volume group with vgextend, and then enlarge the logical volume. Passing -r (or --resizefs) to lvextend tells LVM to call fsadm so that the mounted ext4 file system is grown at the same time, eliminating the need for a separate resize2fs step. Commands that omit vgextend, use the wrong filesystem-resize utility, or attempt to recreate the volume group would either fail or leave the file system unchanged.
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 does the pvcreate command do in LVM?
Open an interactive chat with Bash
What does the -r option in the lvextend command do?
Open an interactive chat with Bash
What is the purpose of the vgextend command 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...
IT & Cybersecurity Package Join Premium for Full Access