Question 570
The host uses disk /dev/vdf, volume group vgdata40, and logical volume lvarchive40; relevant objects already exist except the one being created. The administrator must create the volume group from the prepared physical volume. Which command is appropriate?
Explanation
Correct Answer
vgcreate combines an initialized physical volume with a named volume group. This matches the stated requirement to create the volume group from the prepared physical volume. By contrast, the plausible alternative `lvcreate -L 2G -n lvarchive40 vgdata40` has the effect: lvcreate allocates a new logical volume, specifying size, LV name and existing volume group; that operation would not achieve the requested result.
Incorrect Answers
vgextend expands volume-group capacity by adding the PV to an existing VG. The stated task is to create the volume group from the prepared physical volume. Instead, `vgcreate vgdata40 /dev/vdf` is the relevant alternative because vgcreate combines an initialized physical volume with a named volume group.
lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. The stated task is to create the volume group from the prepared physical volume. Instead, `vgcreate vgdata40 /dev/vdf` is the relevant alternative because vgcreate combines an initialized physical volume with a named volume group.
lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to create the volume group from the prepared physical volume. Instead, `vgcreate vgdata40 /dev/vdf` is the relevant alternative because vgcreate combines an initialized physical volume with a named volume group.






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