NFS (Network File System) protocol designed by sun microsystems. It is client/server application which allows remote users to store & access the files through network. NFS allows the system administrator to mount full or some of a portion of a file system on a server. The portion of the file system that is mounted can be accessed by clients only who has privileges are assigned to the file (read-only or read-write). In this post we will see on How to configure NFS Storage in the Openfiler to use it for various purposes.
Configure NFS in Openfiler :-
Login to Openfiler using the Web browser.
Before creating the storage we need to start the NFS service in the Openfiler.
So to start the service go to Services menu.
Choose Manage services in the Services Section on the Right.
Here you can see the NFS Server Service so First start the service from Start/stop option & also Enable the service.
First you need to add the new Disk to the VM (In case of LAB) or if you already have it in the server you can see that Disk as below.
Volumes > Volumes Section > Block Devices.
Click on the Disk “/dev/sdb” (In your case it might be different)
Now you can see the Partition here.
Scroll down to the Create a Partition.
You can see that all the details are filled already so just check the starting & ending cylinder & the size then click on Create button to create new partition.
At this stage we have successfully created NFS partition.
Now we will be creating new volume group for that partition.
So to create partition go to Volumes > Volumes Section > Volume Groups.
Here you can see the Create a new volume group section.
Provide the Name for your volume group (Do not use Spaces in the Name.)
Choose the Box to which volume you will be using.
Click on the button Add volume group.
Now you can see that your newly created volume group is showing with all the details such as name, size etc.
Now we will create a volume from the Volume group which we had created.
So to create volume go to Volumes > Volumes Section > Add Volume.
First select the Volume group from the Drop down. (If you are using for the first time you will see the first volume group or if you have multiple volume group then you need to choose the specific volume group) .
Scroll down to the Create Volume section.
Here you have to provide your volume details.
Provide the Volume Name, Volume Description, Size for the Volume & choose the XFS from the File System/Volume Type.
Click Create button to create new volume.
You can see your created volume in the Manage Volumes from Volumes Section.
It will show the details such as Volume Name, Description, Size etc.
Now we will share the NFS Volume.
Go to Shares Menu > Existing Shares.
Here you can see that your volume is listed.
Click on the Volume & It will prompt you to create Folder.
Provide Folder name & click create sub folder to create folder.
We have successfully created NFS Folder in the above step now we will have to make that folder share.
So to create share click on the Folder (NFS-Data in my case.)
Here you can also create new folder, provide new name to folder & set the new description.
Click on Make Share button to make the NFS-Data folder share.
Now you can see that your folder icon is changed little bit.
Click on NFS-Data Folder to provide the permissions.
You can set the Share Access control Mode either public or Controlled. We are going with the Controlled mode.
Click on Update button to save.
Now we will provide the Group access .
So choose the Group & change the permissions from NO to PG click Update button to save.
Now we will provide the Host access for the NFS Share.
Check your network & choose the Radio button “RW” from NFS.
Click Update button to save.
We have successfully created the NFS Share & Provided Network Access to the NFS Share folder So now you can directly add this NFS Folder to the ESXi to check how to add iSCSI Datastore check below link.
Checkout Our Posts on Openfiler :-
- What is Openfiler ?
- How to install Openfiler step by step ?
- How to configure Openfiler for the first time ?
- How to configure iSCSI Storage in Openfiler ?
That’s it for Today Friends. I Hope you liked reading this post & If you find anything more to be added or removed feel free to write it in our comments. If you find it useful You are Feel free to share this on social media to help others & spread knowledge.
If you have any query on any thing you are free to write it in our comments section & we will make sure to provide you the better solution as soon as possible.