Bookmark this page

Lab: Implementing Storage Using New Features

Performance Checklist

In this lab, you will use the Stratis storage manager to create a file system, and configure a VDO volume.

Outcomes

You should be able to create a file system with the Stratis storage manager, and a VDO volume.

  1. On servera, configure a pool with the Stratis storage manager with the /dev/vdb and the /dev/vdc devices.

    1. Log in to servera as the root user.

      [student@workstation ~]$ ssh root@servera
    2. If not previously done, install the stratisd and the stratis-cli packages on servera.

      [root@servera ~]# yum install stratisd stratis-cli
      ...output omitted...
      Is this ok [y/N]: y
      ...output omitted...
    3. If not previously done, enable the stratisd service on servera to start at boot time.

      [root@servera ~]# systemctl enable --now stratisd
      Created symlink /etc/systemd/system/sysinit.target.wants/stratisd.service → /usr/lib/systemd/system/stratisd.service.
    4. Verify that the stratisd service is available.

      [root@servera ~]# systemctl status stratisd
    5. Create the labpool pool with the /dev/vdb and the /dev/vdc devices.

      [root@servera ~]# stratis pool create labpool /dev/vdb /dev/vdc
    6. Verify that the labpool pool is now available.

      [root@servera ~]# stratis pool list
      Name        Total Physical Size  Total Physical Used
      labpool               2 GiB             56 MiB            
      
  2. Create a file system in the previous pool, and create a snapshot.

    1. Create the labfs file system in the labpool pool.

      [root@servera ~]# stratis fs create labpool labfs
    2. Verify that the labfs file system is now available.

      [root@servera ~]# stratis fs list labpool
      Pool Name       Name         Used     Created            Device                 
      labpool     labfs  546 MiB  Jan 23 2019 08:44  /stratis/labpool/labfs
    3. Create a new mount point named /stratislab.

      [root@servera ~]# mkdir /stratislab
    4. Mount the labfs file system into the /stratislab directory.

      [root@servera ~]# mount /stratis/labpool/labfs /stratislab
    5. Verify that the labfs file system is now accessible.

      [root@servera ~]# mount
      ... output omitted ...
      /dev/mapper/stratis-1-b5ceb83a7c57488a9c02b501d1419ce4-thin-fs-333a2d9922c04ee6abebcc71bdb047b5 on /stratislab type xfs (rw,relatime,seclabel,attr2,inode64,sunit=2048,swidth=2048,noquota)
    6. Create a snapshot of the labfs file system. Name the snapshot labfs-snapshot.

      [root@servera ~]# stratis fs snapshot labpool labfs labfs-snapshot
  3. Remove the file system, its snapshot, and the pool.

    1. Destroy the labfs-snapshot snapshot.

      [root@servera ~]# stratis filesystem destroy labpool labfs-snapshot
    2. Unmount the labfs file system.

      [root@servera ~]# umount /stratis/labpool/labfs
    3. Destroy the labfs file system.

      [root@servera ~]# stratis filesystem destroy labpool labfs
    4. Destroy the labpool pool.

      [root@servera ~]# stratis pool destroy labpool
    5. Verify that the labpool pool is not available.

      [root@servera ~]# stratis pool list
      Name    Total Physical Size  Total Physical Used
  4. On servera, create a VDO volume using /dev/vdd with a size of 30 GB. When done, create an XFS file system on it, and mount it.

    1. Create the vdolab volume with the /dev/vdd device. Use 30 GB as its logical size.

      [root@servera ~]# vdo create --name=vdolab --device=/dev/vdd --vdoLogicalSize=30G
      Creating VDO vdolab
      Starting VDO vdolab
      Starting compression on VDO vdolab
      VDO instance 0 volume is ready at /dev/mapper/vdolab
    2. Verify that the vdolab volume is available.

      [root@servera ~]# vdo list
      vdolab
    3. Create an XFS file system on the vdolab volume. Wait until the system registers the device node.

      [root@servera ~]# mkfs.xfs -K /dev/mapper/vdolab
      ...output omitted...
      [root@servera ~]# udevadm settle
    4. Create the /mnt/vdolab directory.

      [root@servera ~]# mkdir -m 1777 /mnt/vdolab
    5. Mount the vdolab volume on /mnt/vdolab.

      [root@servera ~]# mount /dev/mapper/vdolab /mnt/vdolab/
  5. Remove the VDO volume. When done, log out from servera.

    1. Unmount the vdolab volume.

      [root@servera ~]# umount /mnt/vdolab
    2. Remove the vdolab volume.

      [root@servera ~]# vdo remove --name=vdolab
      Removing VDO vdolab
      Stopping VDO vdolab
    3. Log out from servera.

      [root@servera ~]# exit
      [student@workstation ~]$ 

This concludes the lab.

Revision: rh354-8.0-0e36520