You are extending a logical volume. To do this, you have to add the /dev/xvdj device to the volume group "battlestar". Which command would you issue to accomplish this task?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

You are extending a logical volume. To do this, you have to add the /dev/xvdj device to the volume group "battlestar". Which command would you issue to accomplish this task?

Explanation:
In LVM, to incorporate a new device into an existing volume group, you extend the volume group by adding the device as a physical volume with vgextend. This updates battlestar to include the extra space from /dev/xvdj, making it usable by any logical volumes within that group. The command you’d issue is vgextend battlestar /dev/xvdj. After that, you can expand a specific logical volume with lvextend if needed. The other options don’t fit: lvextend targets a logical volume, not the volume group; vgresize isn’t a valid LVM command; pvcreate initializes a device as a physical volume (you’d run pvcreate /dev/xvdj first, then vgextend battlestar /dev/xvdj).

In LVM, to incorporate a new device into an existing volume group, you extend the volume group by adding the device as a physical volume with vgextend. This updates battlestar to include the extra space from /dev/xvdj, making it usable by any logical volumes within that group. The command you’d issue is vgextend battlestar /dev/xvdj. After that, you can expand a specific logical volume with lvextend if needed.

The other options don’t fit: lvextend targets a logical volume, not the volume group; vgresize isn’t a valid LVM command; pvcreate initializes a device as a physical volume (you’d run pvcreate /dev/xvdj first, then vgextend battlestar /dev/xvdj).

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy