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.
On servera, configure a pool with the Stratis storage manager with the /dev/vdb and the /dev/vdc devices.
Log in to servera as the root user.
[student@workstation ~]$ssh root@servera
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...
If not previously done, enable the stratisd service on servera to start at boot time.
[root@servera ~]#systemctl enable --now stratisdCreated symlink /etc/systemd/system/sysinit.target.wants/stratisd.service → /usr/lib/systemd/system/stratisd.service.
Verify that the stratisd service is available.
[root@servera ~]#systemctl status stratisd
Create the labpool pool with the /dev/vdb and the /dev/vdc devices.
[root@servera ~]#stratis pool create labpool /dev/vdb /dev/vdc
Verify that the labpool pool is now available.
[root@servera ~]#stratis pool listName Total Physical Size Total Physical Used labpool 2 GiB 56 MiB
Create a file system in the previous pool, and create a snapshot.
Create the labfs file system in the labpool pool.
[root@servera ~]#stratis fs create labpool labfs
Verify that the labfs file system is now available.
[root@servera ~]#stratis fs list labpoolPool Name Name Used Created Device labpool labfs 546 MiB Jan 23 2019 08:44 /stratis/labpool/labfs
Create a new mount point named /stratislab.
[root@servera ~]#mkdir /stratislab
Mount the labfs file system into the /stratislab directory.
[root@servera ~]#mount /stratis/labpool/labfs /stratislab
Verify that the labfs file system is now accessible.
[root@servera ~]#mount... output omitted ... /dev/mapper/stratis-1-b5ceb83a7c57488a9c02b501d1419ce4-thin-fs-333a2d9922c04ee6abebcc71bdb047b5on /stratislab type xfs (rw,relatime,seclabel,attr2,inode64,sunit=2048,swidth=2048,noquota)
Create a snapshot of the labfs file system.
Name the snapshot labfs-snapshot.
[root@servera ~]#stratis fs snapshot labpool labfs labfs-snapshot
Remove the file system, its snapshot, and the pool.
Destroy the labfs-snapshot snapshot.
[root@servera ~]#stratis filesystem destroy labpool labfs-snapshot
Unmount the labfs file system.
[root@servera ~]#umount /stratis/labpool/labfs
Destroy the labfs file system.
[root@servera ~]#stratis filesystem destroy labpool labfs
Destroy the labpool pool.
[root@servera ~]#stratis pool destroy labpool
Verify that the labpool pool is not available.
[root@servera ~]#stratis pool listName Total Physical Size Total Physical Used
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.
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=30GCreating VDO vdolab Starting VDO vdolab Starting compression on VDO vdolab VDO instance 0 volume is ready at /dev/mapper/vdolab
Verify that the vdolab volume is available.
[root@servera ~]#vdo listvdolab
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
Create the /mnt/vdolab directory.
[root@servera ~]#mkdir -m 1777 /mnt/vdolab
Mount the vdolab volume on /mnt/vdolab.
[root@servera ~]#mount /dev/mapper/vdolab /mnt/vdolab/
Remove the VDO volume.
When done, log out from servera.