Before reading this article, you might want to read the article “How To Create a FileSystem on ZFS (Mount Point)” to create a mount point on ZFS.
If you already have a mount point, we first connect to a node on exadata to mount this mount point.
We enter fstab with the command below.
We need to add a line to the fstab to show the mount point we created on ZFS. Otherwise we can not mount the mount point.
18.104.22.168:/x/text_mountpoint /zfs/test nfs rw,bg,hard,nointr,rsize=1048576,wsize=1048576,tcp,nfsvers=3,timeo=600 0 0
If you add the above script to fstab in your own servers without configuring, it will not work. First you need to configure the script with the parameters in your system.
You must write the IP that connects to Exadata via ZFS instead of 22.214.171.124.
To do this, you must first connect to ZFS and then click on the square in the following screenshot by finding the relevant EXADATA in the Interfaces section of the network-> configuration tab as shown below.
You should write this IP in the FSTAB where specified earlier.
Then go to the shares from ZFS and find the mount point to mount.
And write this mount point name instead of x/text_mountpoint in the fstab.
In the next section, we show which folder will be mounted on the node.
In our example we showed /zfs/test.
How To Mount a Mount Point
Create this folder with the help of the command below. Do not forget configuring fstab which I have mentioned at the beginning of the article.
mkdir -p /zfs/test
Grant the permissions with the command below.
chown oracle:oinstall /zfs/test/
chmod 755 /zfs/test/
Mount it with the following command.
Lastly use df -h to see if it is mounted.
How To Unmount a Mount Point
umount /zfs/test/ command, we can unmount and than delete the folder.
During the unmount operation you can receive a “device is busy” error. I told you how to resolve this error in the article named “device is busy“.
After unmounting the mount point, we must comment it with # in fstab. Otherwise, the node may not boot after restart.
Information Note: When we open fstab with vi, we can delete it with dd command and we can copy it with yy and p.