Question 560
The host uses disk /dev/vdc, volume group vgdata30, and logical volume lvarchive30; relevant objects already exist except the one being created. The administrator must inspect the size and free extent count of volume groups. Which command is appropriate?
- pvcreate /dev/vdc
- pvs
- vgcreate vgdata30 /dev/vdc
- vgs
Explanation
Correct Answer
D:vgs reports volume-group totals, including free extents and capacity. This matches the stated requirement to inspect the size and free extent count of volume groups. By contrast, the plausible alternative `pvcreate /dev/vdc` has the effect: pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem; that operation would not achieve the requested result.
Incorrect Answers
A:pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity.
B:pvs summarizes physical volumes, sizes, free space, and volume group association. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity.
C:vgcreate combines an initialized physical volume with a named volume group. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity.
Question 561
The host uses disk /dev/vdd, volume group vgdata31, and logical volume lvarchive31; relevant objects already exist except the one being created. The administrator must create a 2 gib linear logical volume in the existing group. Which command is appropriate?
- lvcreate -L 2G -n lvarchive31 vgdata31
- lvextend -L +2G /dev/vgdata31/lvarchive31
- lvs
- vgs
Explanation
Correct Answer
A:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. This matches the stated requirement to create a 2 gib linear logical volume in the existing group. 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.
Incorrect Answers
B:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive31 vgdata31` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
C:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive31 vgdata31` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
D:vgs reports volume-group totals, including free extents and capacity. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive31 vgdata31` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
Question 562
The host uses disk /dev/vde, volume group vgdata32, and logical volume lvarchive32; relevant objects already exist except the one being created. The administrator must create a 2 gib linear logical volume in the existing group. Which command is appropriate?
- lvextend -L +2G /dev/vgdata32/lvarchive32
- lvcreate -L 2G -n lvarchive32 vgdata32
- lvs
- vgs
Explanation
Correct Answer
B:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. This matches the stated requirement to create a 2 gib linear logical volume in the existing group. 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 create a 2 gib linear logical volume in the existing group.
Incorrect Answers
A:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive32 vgdata32` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
C:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive32 vgdata32` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
D:vgs reports volume-group totals, including free extents and capacity. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive32 vgdata32` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
Question 563
The host uses disk /dev/vdf, volume group vgdata33, and logical volume lvarchive33; relevant objects already exist except the one being created. The administrator must initialize a newly allocated device as an lvm physical volume. Which command is appropriate?
- pvs
- vgcreate vgdata33 /dev/vdf
- pvcreate /dev/vdf
- vgextend vgdata33 /dev/vdf
Explanation
Correct Answer
C:pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem. This matches the stated requirement to initialize a newly allocated device as an lvm physical volume. By contrast, the plausible alternative `vgcreate vgdata33 /dev/vdf` has the effect: vgcreate combines an initialized physical volume with a named volume group; that operation would not achieve the requested result.
Incorrect Answers
A:pvs summarizes physical volumes, sizes, free space, and volume group association. The stated task is to initialize a newly allocated device as an lvm physical volume. Instead, `pvcreate /dev/vdf` is the relevant alternative because pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem.
B:vgcreate combines an initialized physical volume with a named volume group. The stated task is to initialize a newly allocated device as an lvm physical volume. Instead, `pvcreate /dev/vdf` is the relevant alternative because pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem.
D:vgextend expands volume-group capacity by adding the PV to an existing VG. The stated task is to initialize a newly allocated device as an lvm physical volume. Instead, `pvcreate /dev/vdf` is the relevant alternative because pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem.
Question 564
The host uses disk /dev/vdg, volume group vgdata34, and logical volume lvarchive34; relevant objects already exist except the one being created. The administrator must list available logical volumes. Which command is appropriate?
- vgs
- pvcreate /dev/vdg
- pvs
- lvs
Explanation
Correct Answer
D:lvs reports logical-volume metadata without formatting or mounting the devices. This matches the stated requirement to list available logical volumes. By contrast, the plausible alternative `pvs` has the effect: pvs summarizes physical volumes, sizes, free space, and volume group association; that operation would not achieve the requested result.
Incorrect Answers
A:vgs reports volume-group totals, including free extents and capacity. The stated task is to list available logical volumes. Instead, `lvs` is the relevant alternative because lvs reports logical-volume metadata without formatting or mounting the devices. A separate comparison is `pvcreate /dev/vdg`: pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem. The stated task is to list available logical volumes. Instead, `lvs` is the relevant alternative because lvs reports logical-volume metadata without formatting or mounting the devices.
B:pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem. The stated task is to list available logical volumes. Instead, `lvs` is the relevant alternative because lvs reports logical-volume metadata without formatting or mounting the devices. A separate comparison is `vgs`: vgs reports volume-group totals, including free extents and capacity. The stated task is to list available logical volumes. Instead, `lvs` is the relevant alternative because lvs reports logical-volume metadata without formatting or mounting the devices.
C:pvs summarizes physical volumes, sizes, free space, and volume group association. The stated task is to list available logical volumes. Instead, `lvs` is the relevant alternative because lvs reports logical-volume metadata without formatting or mounting the devices. A separate comparison is `vgs`: vgs reports volume-group totals, including free extents and capacity. The stated task is to list available logical volumes. Instead, `lvs` is the relevant alternative because lvs reports logical-volume metadata without formatting or mounting the devices.
Question 565
The host uses disk /dev/vdh, volume group vgdata35, and logical volume lvarchive35; relevant objects already exist except the one being created. The administrator must create a 2 gib linear logical volume in the existing group. Which command is appropriate?
- lvcreate -L 2G -n lvarchive35 vgdata35
- lvextend -L +2G /dev/vgdata35/lvarchive35
- lvs
- vgs
Explanation
Correct Answer
A:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. This matches the stated requirement to create a 2 gib linear logical volume in the existing group. By contrast, the plausible alternative `vgs` has the effect: vgs reports volume-group totals, including free extents and capacity; 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 create a 2 gib linear logical volume in the existing group.
Incorrect Answers
B:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive35 vgdata35` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
C:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive35 vgdata35` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
D:vgs reports volume-group totals, including free extents and capacity. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive35 vgdata35` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
Question 566
The host uses disk /dev/vdb, volume group vgdata36, and logical volume lvarchive36; relevant objects already exist except the one being created. The administrator must create a 2 gib linear logical volume in the existing group. Which command is appropriate?
- lvextend -L +2G /dev/vgdata36/lvarchive36
- lvcreate -L 2G -n lvarchive36 vgdata36
- lvs
- vgs
Explanation
Correct Answer
B:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. This matches the stated requirement to create a 2 gib linear logical volume in the existing group. By contrast, the plausible alternative `vgs` has the effect: vgs reports volume-group totals, including free extents and capacity; that operation would not achieve the requested result. A separate comparison is `vgs`: vgs reports volume-group totals, including free extents and capacity. The stated task is to create a 2 gib linear logical volume in the existing group.
Incorrect Answers
A:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive36 vgdata36` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
C:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive36 vgdata36` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
D:vgs reports volume-group totals, including free extents and capacity. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive36 vgdata36` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
Question 567
The host uses disk /dev/vdc, volume group vgdata37, and logical volume lvarchive37; relevant objects already exist except the one being created. The administrator must create a 2 gib linear logical volume in the existing group. Which command is appropriate?
- lvextend -L +2G /dev/vgdata37/lvarchive37
- lvs
- lvcreate -L 2G -n lvarchive37 vgdata37
- vgs
Explanation
Correct Answer
C:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. This matches the stated requirement to create a 2 gib linear logical volume in the existing group. By contrast, the plausible alternative `lvextend -L +2G /dev/vgdata37/lvarchive37` has the effect: lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it; that operation would not achieve the requested result.
Incorrect Answers
A:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive37 vgdata37` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
B:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive37 vgdata37` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
D:vgs reports volume-group totals, including free extents and capacity. The stated task is to create a 2 gib linear logical volume in the existing group. Instead, `lvcreate -L 2G -n lvarchive37 vgdata37` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
Question 568
The host uses disk /dev/vdd, volume group vgdata38, and logical volume lvarchive38; relevant objects already exist except the one being created. The administrator must extend an existing logical volume by 2 gib. Which command is appropriate?
- lvs
- vgs
- pvcreate /dev/vdd
- lvextend -L +2G /dev/vgdata38/lvarchive38
Explanation
Correct Answer
D: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 `vgs`: vgs reports volume-group totals, including free extents and capacity. The stated task is to extend an existing logical volume by 2 gib.
Incorrect Answers
A: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/vgdata38/lvarchive38` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
B: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/vgdata38/lvarchive38` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
C: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/vgdata38/lvarchive38` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
Question 569
The host uses disk /dev/vde, volume group vgdata39, and logical volume lvarchive39; relevant objects already exist except the one being created. The administrator must inspect the size and free extent count of volume groups. Which command is appropriate?
- vgs
- pvcreate /dev/vde
- pvs
- vgcreate vgdata39 /dev/vde
Explanation
Correct Answer
A:vgs reports volume-group totals, including free extents and capacity. This matches the stated requirement to inspect the size and free extent count of volume groups. By contrast, the plausible alternative `pvcreate /dev/vde` has the effect: pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem; that operation would not achieve the requested result.
Incorrect Answers
B:pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity. A separate comparison is `vgcreate vgdata39 /dev/vde`: vgcreate combines an initialized physical volume with a named volume group. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity.
C:pvs summarizes physical volumes, sizes, free space, and volume group association. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity. A separate comparison is `vgcreate vgdata39 /dev/vde`: vgcreate combines an initialized physical volume with a named volume group. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity.
D:vgcreate combines an initialized physical volume with a named volume group. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity. A separate comparison is `pvs`: pvs summarizes physical volumes, sizes, free space, and volume group association. The stated task is to inspect the size and free extent count of volume groups. Instead, `vgs` is the relevant alternative because vgs reports volume-group totals, including free extents and capacity.
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?
- vgextend vgdata40 /dev/vdf
- vgcreate vgdata40 /dev/vdf
- lvcreate -L 2G -n lvarchive40 vgdata40
- lvextend -L +2G /dev/vgdata40/lvarchive40
Explanation
Correct Answer
B: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
A: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.
C: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.
D: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