5.2.) Investigate Workload on the Appliance
5.2.1.) Generate load
First, add three additional statistics:
– Protocol -> NFSv3 Operations -> Broken down by share
– Protocol -> NFSv3 Operations -> Broken down by file name
– Protocol -> NFSv3 Operations -> Broken down by client
As you can see, there is nothing going on at the moment. That’s kind of boring, so lets generate some load.
Go to shares and create a new share called load in the default project. Leave all settings on default.
Next, startup your linux machine and log in using root and the password oracle.
Open a shell and create a local directory to mount the new share:
[root@localhost ~]# mkdir /mnt/app
Create a persistend mount and then mount the share:
[root@localhost ~]# echo "192.168.56.100:/export/load /mnt/app nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=3" >> /etc/fstab [root@localhost ~]# mount /mnt/app [root@localhost /]# df -h Filesystem Size Used Avail Use% Mounted on 192.168.56.100:/export/load 20G 32K 20G 1% /mnt/app
create a 50MB sized file inside the mount:
[root@localhost app]# dd if=/dev/zero of=/mnt/app/file1 bs=1024 count=50000 50000+0 records in 50000+0 records out 51200000 bytes (51 MB) copied, 9.01062 seconds, 5.7 MB/s
You now should see something in your analytics view of the ZFS Appliance.
Here you have some very detailed information of what was going on on your ZFS Appliance. Not only can you see, how many IO operations have taken place, but also, what was going on (write), which file has been accessed (/export/load/file1) and which client caused it (192.168.56.200).
This is just a very simple example to show you the basics. In reality, these graphs would be much more complex, but you will get the idea very quickly.
These graphs, you created, form a so called worksheet.
You can save these worksheets, so you don't have to create them fro scratch everytime you want to do some analytics.
Click on "untitled worksheet" at the top of the page. You now can type in a name. Click save in the upper right and you can save your worksheet. It will appear under the worksheet menu in the top left.