Red Hat Certified System Administration 8



Exercise 03 : Managing Stratis Volumes

You need one dedicated disk with a size of 5 GiB to perform the steps in this exercise. In this exercise, the disk name /dev/sdd is used as an example. Replace this name with the disk device name that is presented on your hardware.
  1. Type yum install stratisd stratis-cli to install all the required packages.

  2. Type systemctl enable --now stratisd to enable the Stratis daemon.

  3. Type stratis pool create mypool /dev/sdd to add the entire disk /dev/sdd to the storage pool.

  4. Type stratis pool list to verify successful creation of the pool.

  5. Type stratis fs create mypool stratis1 to create the first Stratis file system. Note that you don’t have to specify a file system size.

  6. Type stratis fs list to verify the creation of the file system.

  7. Type mkdir /stratis1 to create a mount point for the Stratis file system.

  8. Type blkid to find the Stratis volume UUID.

  9. Add the following line to /etc/fstab to enable the volume to be mounted automatically. Make sure to use the UUID name that is used on your system.

    Click here to view code image UUID=xxx /stratis1. xfs. defaults,x-systemd.requires=stratisd. service 0 0

  10. Type mount -a to mount the Stratis volume. Use the mount command to verify this worked successfully.

  11. Type cp /etc/[a-f]* /stratis1 to copy some files to the Stratis volume.

  12. Type stratis filesystem snapshot mypool stratis1 stratis1-snap to create a snapshot of the volume you just created. Note that this command may take up to a minute to complete.

  13. Type stratis filesystem list to get statistics about current file system usage.

  14. Type rm -f /stratis1/a* to remove all files that have a name starting with a.

  15. Type mount /dev/stratis/mypool/stratis1-snap /mnt and verify that the files whose names start with a are still available in the /mnt directory.

  16. Reboot your server. After reboot, verify that the Stratis volume is still automatically mounted.



+ Correction

Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |