Performance Checklist
In this lab, students will mount a local file system, review it, and work with soft links.
Outcomes
Generate a disk usage report.
Mount a file system.
Create a soft link.
Search files in the local file system.
Reset your serverX system.
Run the lab fs setup to set up the server machine for your exercise.
Generate a disk usage report with the du command of the /var/log directory on serverX, and save the result in the /tmp/results.txt file.
[root@serverX ~]#du /var/log >/tmp/results.txt
Identify and mount a newly added file system by UUID on the /mnt/myfreespace directory on serverX.
Identify the newly added file system with the blkid command on serverX.
[root@serverX ~]#blkid/dev/vda1: UUID="46f543fd-78c9-4526-a857-244811be2d88" TYPE="xfs" /dev/vdb1: UUID="a84f6842-ec1d-4f6d-b767-b9570f9fcdc0" TYPE="xfs"
Create the mount point /mnt/myfreespace on serverX.
[root@serverX ~]#mkdir /mnt/myfreespace
Mount the file system by UUID on the /mnt/myfreespace directory of the serverX machine.
[root@serverX ~]#mount UUID="a84f6842-ec1d-4f6d-b767-b9570f9fcdc0" /mnt/myfreespace
Create the soft link /root/myfreespace, which points to the /mnt/myfreespace directory on serverX.
[root@serverX ~]#ln -s /mnt/myfreespace /root/myfreespace
Find all soft links on serverX that have freespace as part of their names.
[root@serverX ~]#find / -type l -name '*freespace*'/root/myfreespace