Question 550
The retirement plan for vgmedia has already removed its logical volumes, and policy now authorizes removing the empty volume-group definition while leaving the PV devices untouched. Which LVM command performs that stage?
- pvremove /dev/vdf1
- vgremove vgmedia
- lvremove /dev/vgmedia/lvdata
- vgcreate vgmedia /dev/vdf1
Explanation
Correct Answer
B:Vgremove deletes the named empty VG metadata without requiring a destructive partition format, after all logical volumes are safely removed.
Incorrect Answers
A:Pvremove targets one PV and would skip the requested VG definition removal and may conflict while that PV remains assigned.
C:Lvremove targets an LV, but the premise says those have already been removed so there is no specified LV left to delete.
D:Vgcreate initializes a new VG, exactly the opposite lifecycle operation from retiring the now-empty vgmedia definition.
Question 551
An unused /dev/vdf1 was detached from its volume group and the storage team now wants to clear its remaining LVM PV label, not change its partition table. Which command is appropriate?
- parted /dev/vdf1 mklabel gpt
- vgremove /dev/vdf1
- pvremove /dev/vdf1
- mkfs.ext4 /dev/vdf1
Explanation
Correct Answer
C:Pvremove clears LVM physical-volume identification from the detached partition without creating a filesystem or writing a new GPT label.
Incorrect Answers
A:Parted mklabel changes partition-table metadata on the device and is not an LVM PV label cleanup command.
B:Vgremove expects a volume-group name, not the detached physical-device path targeted for label removal.
D:Mkfs.ext4 builds filesystem metadata on the partition instead of performing the explicit LVM label cleanup step.
Question 552
A production RHEL 10 volume group vgmedia contains several LVs. The administrator needs to enumerate their names and current sizes as a change-review inventory without activating or resizing any. Which command provides it?
- pvs -o pv_name,pv_size
- vgs -o vg_name,vg_size
- lvextend -L +1G /dev/vgmedia/lvdata
- lvs -o lv_name,lv_size vgmedia
Explanation
Correct Answer
D:Lvs with named output fields reports each logical volume and its size inside vgmedia, the precise objects requested for the change inventory.
Incorrect Answers
A:Pvs reports physical-volume members and their size, not the logical volumes that application teams mount.
B:Vgs summarizes the whole volume group, which hides the separate LV names and capacities needed for change review.
C:Lvextend changes an LV allocation rather than enumerating all current LV sizes without side effects.
Question 553
An extra /dev/vdg1 PV is already a member of vgmedia but contains NO allocated extents. The team wants to detach it from the VG while retaining all other storage. What is the correct LVM stage?
- vgreduce vgmedia /dev/vdg1
- vgremove vgmedia
- pvremove /dev/vdg1
- lvremove /dev/vgmedia/lvdata
Explanation
Correct Answer
A:Vgreduce drops the specified unused PV from volume-group membership while preserving other VG members and their logical volumes.
Incorrect Answers
B:Vgremove targets the entire group, which is much broader than removing one unused physical-volume member.
C:Pvremove erases a PV label but does not safely perform the VG membership transition while the PV is still assigned.
D:Lvremove destroys a logical volume and is unrelated to removing the empty extra physical-volume member.
Question 554
Before authorizing removal of /dev/vdf1, a RHEL 10 operator must view the LVM physical-volume UUID, allocated PE count and current group membership. Which detailed inspection is relevant?
- lvs /dev/vdf1
- pvdisplay /dev/vdf1
- mkfs.xfs /dev/vdf1
- lvremove /dev/vdf1
Explanation
Correct Answer
B:Pvdisplay inspects the specified PV metadata, including identity and allocation information needed before migration or removal decisions.
Incorrect Answers
A:Lvs queries logical volumes and does not treat a physical-volume partition path as a logical-volume inventory record.
C:Mkfs.xfs would write new filesystem metadata over the device and is destructive rather than observational.
D:Lvremove targets LVs and is neither a PV inspection tool nor valid risk assessment for an allocated PV.
Question 555
The RHEL 10 administrator is planning an LV extension but must confirm whether vgmedia has enough FREE extents rather than total disk capacity. Which LVM display field reports the needed number?
- vgs -o vg_size vgmedia
- lvs -o lv_size vgmedia
- vgs -o vg_free_count vgmedia
- pvs -o pv_size /dev/vdf1
Explanation
Correct Answer
C:The vg_free_count field exposes unallocated physical extents in the VG, directly usable to assess the proposed LV extension.
Incorrect Answers
A:Vg_size includes both allocated and unallocated extents; it can overstate what is available for a new allocation.
B:Lv_size reports already allocated logical-volume sizes and does not reveal the remaining shared VG free extent count.
D:Pv_size concerns one physical volume and can include extents already allocated elsewhere in the volume group.
Question 556
The host uses disk /dev/vdf, volume group vgdata26, and logical volume lvarchive26; 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/vgdata26/lvarchive26
- lvs
- vgs
- lvcreate -L 2G -n lvarchive26 vgdata26
Explanation
Correct Answer
D: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.
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 lvarchive26 vgdata26` 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 lvarchive26 vgdata26` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
C: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 lvarchive26 vgdata26` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
Question 557
The host uses disk /dev/vdg, volume group vgdata27, and logical volume lvarchive27; relevant objects already exist except the one being created. The administrator must inspect physical-volume free space and memberships. Which command is appropriate?
- pvs
- vgcreate vgdata27 /dev/vdg
- vgextend vgdata27 /dev/vdg
- lvcreate -L 2G -n lvarchive27 vgdata27
Explanation
Correct Answer
A:pvs summarizes physical volumes, sizes, free space, and volume group association This is the intended LVM action.
Incorrect Answers
B:vgcreate combines an initialized physical volume with a named volume group. The stated task is to inspect physical-volume free space and memberships. Instead, `pvs` is the relevant alternative because pvs summarizes physical volumes, sizes, free space, and volume group association.
C:vgextend expands volume-group capacity by adding the PV to an existing VG. The stated task is to inspect physical-volume free space and memberships. Instead, `pvs` is the relevant alternative because pvs summarizes physical volumes, sizes, free space, and volume group association.
D:lvcreate allocates a new logical volume, specifying size, LV name and existing volume group. The stated task is to inspect physical-volume free space and memberships. Instead, `pvs` is the relevant alternative because pvs summarizes physical volumes, sizes, free space, and volume group association.
Question 558
The host uses disk /dev/vdh, volume group vgdata28, and logical volume lvarchive28; 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
- pvcreate /dev/vdh
- vgcreate vgdata28 /dev/vdh
- vgextend vgdata28 /dev/vdh
Explanation
Correct Answer
B: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 `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: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/vdh` is the relevant alternative because pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem.
C: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/vdh` 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/vdh` is the relevant alternative because pvcreate writes LVM PV metadata to the target device; it does not create a volume group or filesystem.
Question 559
The host uses disk /dev/vdb, volume group vgdata29, and logical volume lvarchive29; 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/vgdata29/lvarchive29
- lvs
- lvcreate -L 2G -n lvarchive29 vgdata29
- 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/vgdata29/lvarchive29` 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 lvarchive29 vgdata29` 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 lvarchive29 vgdata29` 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 lvarchive29 vgdata29` is the relevant alternative because lvcreate allocates a new logical volume, specifying size, LV name and existing volume group.
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.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests