Question 530
For a RHEL 10 administration task on node30.example.test, operator review needs to copy an archive from the remote inbox to local /tmp involving /srv/data09.tar.gz. Which command is appropriate?
- scp /srv/data09.tar.gz review@node30.example.test:/home/review/inbox/
- scp review@node30.example.test:/home/review/inbox/data09.tar.gz /tmp/
- ssh review@node30.example.test
- ssh-keyscan node30.example.test
Explanation
Correct Answer
B:scp with a user@host source downloads the remote object to the local destination The traffic direction and operation match the requirement. This matches the stated requirement to copy an archive from the remote inbox to local /tmp involving /srv/data09. By contrast, the plausible alternative `ssh-keyscan node30.example.test` has the effect: ssh-keyscan retrieves advertised host public keys but does not authenticate a user Its operation or transfer direction does not meet the request; that operation would not achieve the requested result.
Incorrect Answers
A:scp with a local source and user@host destination uploads the archive over an SSH transport Its operation or transfer direction does not meet the request. The stated task is to copy an archive from the remote inbox to local /tmp involving /srv/data09. Instead, `scp review@node30.example.test:/home/review/inbox/data09.tar.gz /tmp/` is the relevant alternative because scp with a user@host source downloads the remote object to the local destination The traffic direction and operation match the requirement.
C:ssh starts an authenticated interactive remote command session, rather than copying a file Its operation or transfer direction does not meet the request. The stated task is to copy an archive from the remote inbox to local /tmp involving /srv/data09. Instead, `scp review@node30.example.test:/home/review/inbox/data09.tar.gz /tmp/` is the relevant alternative because scp with a user@host source downloads the remote object to the local destination The traffic direction and operation match the requirement.
D:ssh-keyscan retrieves advertised host public keys but does not authenticate a user Its operation or transfer direction does not meet the request. The stated task is to copy an archive from the remote inbox to local /tmp involving /srv/data09. Instead, `scp review@node30.example.test:/home/review/inbox/data09.tar.gz /tmp/` is the relevant alternative because scp with a user@host source downloads the remote object to the local destination The traffic direction and operation match the requirement.
Question 531
The host uses disk /dev/vdb, volume group vgdata01, and logical volume lvarchive01; 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
- lvextend -L +2G /dev/vgdata01/lvarchive01
- pvcreate /dev/vdb
Explanation
Correct Answer
C: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.
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/vgdata01/lvarchive01` 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/vgdata01/lvarchive01` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
D: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/vgdata01/lvarchive01` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
Question 532
The host uses disk /dev/vdc, volume group vgdata02, and logical volume lvarchive02; relevant objects already exist except the one being created. The administrator must add another initialized physical volume to the existing group. Which command is appropriate?
- lvcreate -L 2G -n lvarchive02 vgdata02
- lvextend -L +2G /dev/vgdata02/lvarchive02
- lvs
- vgextend vgdata02 /dev/vdc
Explanation
Correct Answer
D:vgextend expands volume-group capacity by adding the PV to an existing VG. This matches the stated requirement to add another initialized physical volume to the existing group. By contrast, the plausible alternative `lvcreate -L 2G -n lvarchive02 vgdata02` 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:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. The stated task is to add another initialized physical volume to the existing group. Instead, `vgextend vgdata02 /dev/vdc` is the relevant alternative because vgextend expands volume-group capacity by adding the PV to an existing VG.
B:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to add another initialized physical volume to the existing group. Instead, `vgextend vgdata02 /dev/vdc` is the relevant alternative because vgextend expands volume-group capacity by adding the PV to an existing VG.
C:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to add another initialized physical volume to the existing group. Instead, `vgextend vgdata02 /dev/vdc` is the relevant alternative because vgextend expands volume-group capacity by adding the PV to an existing VG.
Question 533
The host uses disk /dev/vdd, volume group vgdata03, and logical volume lvarchive03; relevant objects already exist except the one being created. The administrator must extend an existing logical volume by 2 gib. Which command is appropriate?
- lvextend -L +2G /dev/vgdata03/lvarchive03
- lvs
- vgs
- pvcreate /dev/vdd
Explanation
Correct Answer
A: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 `pvcreate /dev/vdd`: 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.
Incorrect Answers
B: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/vgdata03/lvarchive03` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
C: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/vgdata03/lvarchive03` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
D: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/vgdata03/lvarchive03` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
Question 534
The host uses disk /dev/vde, volume group vgdata04, and logical volume lvarchive04; relevant objects already exist except the one being created. The administrator must list available logical volumes. Which command is appropriate?
- vgs
- lvs
- pvcreate /dev/vde
- pvs
Explanation
Correct Answer
B: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 `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
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.
C: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.
D: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.
Question 535
The host uses disk /dev/vdf, volume group vgdata05, and logical volume lvarchive05; relevant objects already exist except the one being created. The administrator must add another initialized physical volume to the existing group. Which command is appropriate?
- lvcreate -L 2G -n lvarchive05 vgdata05
- lvextend -L +2G /dev/vgdata05/lvarchive05
- vgextend vgdata05 /dev/vdf
- lvs
Explanation
Correct Answer
C:vgextend expands volume-group capacity by adding the PV to an existing VG. This matches the stated requirement to add another initialized physical volume to the existing group. By contrast, the plausible alternative `lvextend -L +2G /dev/vgdata05/lvarchive05` 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:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. The stated task is to add another initialized physical volume to the existing group. Instead, `vgextend vgdata05 /dev/vdf` is the relevant alternative because vgextend expands volume-group capacity by adding the PV to an existing VG.
B:lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it. The stated task is to add another initialized physical volume to the existing group. Instead, `vgextend vgdata05 /dev/vdf` is the relevant alternative because vgextend expands volume-group capacity by adding the PV to an existing VG.
D:lvs reports logical-volume metadata without formatting or mounting the devices. The stated task is to add another initialized physical volume to the existing group. Instead, `vgextend vgdata05 /dev/vdf` is the relevant alternative because vgextend expands volume-group capacity by adding the PV to an existing VG.
Question 536
The host uses disk /dev/vdg, volume group vgdata06, and logical volume lvarchive06; 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/vdg
- lvextend -L +2G /dev/vgdata06/lvarchive06
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 `vgs` has the effect: vgs reports volume-group totals, including free extents and capacity; that operation would not achieve the requested result.
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/vgdata06/lvarchive06` 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/vgdata06/lvarchive06` 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/vgdata06/lvarchive06` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
Question 537
The host uses disk /dev/vdh, volume group vgdata07, and logical volume lvarchive07; relevant objects already exist except the one being created. The administrator must extend an existing logical volume by 2 gib. Which command is appropriate?
- lvextend -L +2G /dev/vgdata07/lvarchive07
- lvs
- vgs
- pvcreate /dev/vdh
Explanation
Correct Answer
A: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 `pvcreate /dev/vdh` 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: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/vgdata07/lvarchive07` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
C: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/vgdata07/lvarchive07` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
D: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/vgdata07/lvarchive07` is the relevant alternative because lvextend with a plus sign adds capacity to the existing logical volume instead of recreating it.
Question 538
The host uses disk /dev/vdb, volume group vgdata08, and logical volume lvarchive08; 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 vgdata08 /dev/vdb
- vgcreate vgdata08 /dev/vdb
- lvcreate -L 2G -n lvarchive08 vgdata08
- lvextend -L +2G /dev/vgdata08/lvarchive08
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 `lvextend -L +2G /dev/vgdata08/lvarchive08` 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: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 vgdata08 /dev/vdb` 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 vgdata08 /dev/vdb` 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 vgdata08 /dev/vdb` is the relevant alternative because vgcreate combines an initialized physical volume with a named volume group.
Question 539
The host uses disk /dev/vdc, volume group vgdata09, and logical volume lvarchive09; 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 vgdata09 /dev/vdc
- pvcreate /dev/vdc
- vgextend vgdata09 /dev/vdc
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 `vgextend vgdata09 /dev/vdc` has the effect: vgextend expands volume-group capacity by adding the PV to an existing VG; 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/vdc` 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/vdc` 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/vdc` is the relevant alternative because pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem.
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?
- lvs
- vgs
- pvcreate /dev/vdd
- lvextend -L +2G /dev/vgdata10/lvarchive10
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 `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
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/vgdata10/lvarchive10` 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/vgdata10/lvarchive10` 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/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