To take a this mini practice test you need to set up a virtual RHEL machine. I’ll be providing the commands for both Debian Linux and RHEL to set this up. If you have already done this you can move onto setting up the partitions for the test.

Install Virt-Manager

Install virt-manager on Debian or RHEL with sudo apt install -y virt-manager qemu /  sudo yum install -y virt-manager qemu. You then need to enable the libvirt daemon with service libvirtd start / systemctl start libvirtd.

You now need a RHEL iso image. If you need to download one, you can with a free RedHat Developer account here.

Configure Virtual Machine

Open virt-manager and click the computer icon on the top left. Then follow along the steps, selecting your iso image for RHEL and setting the size to 5GB. Name your virtual machine then click done.

Adding Hardware

You will need to move through the installation process and set a root password as RHEL installs. The machine will reboot and you simply need to login as root. To do the partition practice we have planned you need to attach a 10GB disk. You can do that by clicking on the light bulb icon and then Add Hardware.

The PARTITIONS Mini Test

Now that we are all set up, let’s get started! This mini test will take you through partition exercises. Expect to be creating and deleting, this will prepare you best for the test.

  • 1. Create a partition that takes up all of the 10GB disk
  • 2. Use that partition to create a physical volume
  • 3. Make a logical volume called horse with a volume group called farm. Each extent should be 8MB. The logical volume should be 100 extents. Mount this at /mnt/horse with an ext4 filesystem.
  • 4. Create a new 5GB logical volume called chair with the volume group furniture. Mount this at /mnt/chair with an xfs file system.

*Hint – you need to resize the physical volume and then the partition with gdisk or fdisk before you can create this logical volume

  • 5. Create a swap partition that is 1GB

6. Make sure all of these partitions mount at boot

If you cannot complete this then you are not yet ready to take the RHCSA.

Leave a Reply

Your email address will not be published. Required fields are marked *