Question 540
The host uses disk /dev/vdd, volume group vgdata10, and logical volume lvarchive10; relevant objects already exist except the one being created. The administrator must extend an existing logical volume by 2 gib. Which command is appropriate?
Explanation
Correct Answer
lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. This matches the stated requirement to extend an existing logical volume by 2 gib. By contrast, the plausible alternative `lvs` has the effect: lvs reports logical-volume metadata without formatting or mounting the devices; that operation would not achieve the requested result. A separate comparison is `lvs`: lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to extend an existing logical volume by 2 gib.
Incorrect Answers
lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to extend an existing logical volume by 2 gib. Instead, `lvextend -L +2G /dev/vgdata10/lvarchive10` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
vgs reports volume-group totals, including free extents and capacity. The stated task is to extend an existing logical volume by 2 gib. Instead, `lvextend -L +2G /dev/vgdata10/lvarchive10` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem. The stated task is to extend an existing logical volume by 2 gib. Instead, `lvextend -L +2G /dev/vgdata10/lvarchive10` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests