Question 1
A SLES 15 server hosts a critical database on an LVM logical volume named lv_data within the volume group vg_db. The underlying physical volume is running out of space. A new disk, /dev/sdd, has been added to the system. Which sequence of commands correctly adds the new disk to the volume group and extends the logical volume to use all available free space?
Answer and explanation
Correct answer: B
The correct procedure is to first initialize the new disk as a physical volume using pvcreate. Then, add this new physical volume to the existing volume group with vgextend. Finally, extend the logical volume to use the newly available space in the volume group using lvextend -l +100%FREE. Note that this only extends the logical volume; the filesystem on it must be resized separately (e.g., with resize2fs or xfs_growfs).