In this second lab, we will create a nfs share on the ZFS Appliance and mount it on the oracle database machine. Then, we will get to know the snapshot and rollback capabilities of the ZFS Appliance.

Time needed for this lab: about 45 – 60 minutes.

2.1. Set up a share

2.1.1. Create the share on the appliance

If not already done, boot up your ZFS Appliance.
To do this, in your virtual box main window, select the appliance and hit the “start” button.

The booting process really might take a while. You can see that it is done, when it presents you a login prompt on the console window.
But do not log in here right now. Instead open a web browser and browse to the URL “
The login is root and the password the one, you provided in step 1.4.2. (probably oracle).

The ZFS Appliance can use a lot of different protocols to share its data. To configure, which of those are used, click on “Configuration
Notice, that NFS is online, while FTP and SMB for example, are not. You can start or stop any of these services by clicking the power-icon on the right. You also can set some options for each of them by double clicking the entry.
Of course you can enable other services, if you like. But for this lab, we only need NFS, so make sure, this one is running.

Now, click on shares.
Here, you can create and administer the filesystems on your ZFS Appliance. Also, you could create fibrechannel LUNs (by clicking LUNs), but in this lab, we will stick with filesystems. My guess would be, that you don’t have a working fibrechannel environment in your laptop anyway.

Also, on this page, you can create so called projects. In a project, you can combine several shares by giving them the same options. You do not have to create a project (because there is a default one) to create a share, but for the sake of practice, we will do anyway.

In the shares-screen, click on Projects. A new menu should slide in from the left.
Click on the little “+” next to all
Give the project a name of your choice and click apply.
Your project should appear in the left menu. Click on this new entry and you will see a list of the shares, that have been created so far. Since you did not create any shares by now, this list will be empty.
Click on Protocols. Here you can see, which protocols will be used to share the filesystems in your project.
Since we did not enable any other sharing protocols than NFS, this is also the only protocol, we can configure here. If in the earlier section, you actually enabled other services, you can configure them here as well.

Now click on snapshots in the upper right.
On snapshot Visibilty select visible.
Later we will see, what this option does. Just keep in mind for now, that we set it here and click apply.
Then, click on shares, which should bring you back to the start.

Now, we will create the actual share. Click on the little “+” – icon next to filesystems.
Select the project, you just created and give the share a name. Leave the other settings on default. Then hit apply.
Notice the mountpoint called /export/myshare.

If you hover your mouse over the new share, you will notice two icons on the right. A trashbin (to remove a share) and a pen (to edit its options). Just for visualization, click on the pen.
Notice the checkbox inherit from project. This means, all the options below are taken from the project settings. This can make the administration of several shares very easy. You can play around a bit, if you like, but this should be working with the current settings.

And that’s it for the appliance side.

2.1.2. Mount the share on the linux machine

Boot your virtual linux machine. At the login-prompt, click on other users and log in using root and the password oracle.
if you like (and I would advice you to), change the default keyboard layout for the root – user by following the instructions in 1.6.2

Open a shell by navigating to “Applications –> System Tools –> Terminal”

Inside the shell window, create a new directory by typing:

[root@localhost ~]# mkdir -p /mnt/zfsapp

Now, mount the new share into the new directory by typing:

[root@localhost ~]# mount /mnt/zfsapp/

cd into the directory and take a look at its size.

[root@localhost ~]# cd /mnt/zfsapp/
[root@localhost zfsapp]# df -h .
Filesystem            Size  Used Avail Use% Mounted on
                       20G     0   20G   0% /mnt/zfsapp

You will notice, that these are the 20gb from the zpool, we created earlier.

And that’s all you have to do to create a share.
On the next part of this lab, we will destroy some data and later (hopefully) restore it using zfs snapshots.

Leave a Reply

Your email address will not be published. Required fields are marked *