RHCSA Study Questions Questions
and Answers (100% Pass)
List the order of the layers involved in the LVM architecture
✓ 1. Physical Volume(PV)
2. Volume Group(VG)
3. Logical Volume(LV)
What do you need to do before you create a physical volume?
✓ You need to create a partition marked as the LVM partition type. In
fdisk or gdisk you need to press t to change the partition type. MBR disk
is 8e, GUID is 8300
What command verifies the physical volumes that were created?
✓ pvs
What command shows details about the physical volume?
✓ pvdisplay
What command gives a hierarchical overview of which disks and partitions
are in the LVM volume groups and logical volumes?
Master01 | October, 2024/2025 | Latest update
, 1 | P a g e | © copyright 2024/2025 | Grade A+
✓ lsblk
How do you create a volume of the first partition of the the sdb disk? You
want to call the volume vgdata.
✓ vgcreate vgdata /dev/sdb1
Give the two commands that will allow you to see the volume group
✓ vgs - Shows a summary of available volume groups
vgdisplay - Shows a detailed list of volume groups and their properties
Show the command you would use to create a logical volume of half the
physical volume vgdata. Name the logical volume lvvol01
✓ lvcreate -n lvvol01 -l 50%FREE vgdata
Show the command you would use to remove the logical volume lvvol01.
That logical volume resides in the physical volume vgdata.
✓ lvremove /dev/vgdata/lvvol01
Show the command you would use to create a logical volume of 500
megabyte in the physical volume vgdata. Name the logical volume lvvol01
Master01 | October, 2024/2025 | Latest update
, 1 | P a g e | © copyright 2024/2025 | Grade A+
✓ lvcreate -n lvvol01 -L 500M vgdata
Show the commands you would use to show the logical volumes
✓ lvs - Shows a summary of all available logical volumes
lvdisplay - Shows a detailed list of available logical volumes and their
properties
What would the name of the LV called lvvol01 in the Physical Volume vgdata
be called the the device mapper name?
✓ /dev/mapper/vgdata-lvvol01
If you want to make an XFS file system out of the logical volume lvvol01 in the
PV vgdata, what is the command?
✓ mkfs.xfs /dev/vgdata/lvvol01
If you want to make an EXT4 file system out of the logical volume lvvol01 in
the PV vgdata, what is the command?
✓ mkfs.ext4 /dev/vgdata/lvvol01
What file systems can only be increased and what file systems can be
increased and reduced?
Master01 | October, 2024/2025 | Latest update
, 1 | P a g e | © copyright 2024/2025 | Grade A+
✓ XFS - can only be increased
EXT4 - can be increased and decreased
Btrfs - can be increased and decreased
If you are going to reduce an EXT4 file system, what state must it be in?
✓ You can only reduce the volume when it is offline
I want to add 250 megabytes to the file system /dev/vgdata/lvvol01. Show
the command
✓ lvresize -L +250M -r /dev/vgdata/lvvol01
I want to reduce the EXT4 file system by 250 megabytes. The LV is lvvol01, VG
is vgdata and the mount point is /files
✓ 1. umount /files
2. lvreduce -L -250M -r /dev/vgdata/lvvol01
I want to resize the LV to 75 percent of the Volume group. The LV is lvvol01,
VG is vgdata and the mount point is /files
✓ lvresize -r -l 75%VG /dev/vgdata/lvvol01
Master01 | October, 2024/2025 | Latest update