I am using the OpenFiler 2.99 version to transform local storage of my physical servers to shared NFS storage so utilize all the benefits of vSphere which are only available with Shared Storage.
- Create a Virtual Machine with 1 vCPU and 2 GB RAM and install Openfiler (2.99 latest version)on it. Add a secondary Virtual Disk with maximum space which would be further sliced and presented as shared/NFS storage from the filer settings.
- Static IP could configured during installation, after the installation completes, the configuration page login url is provided on the home screen.
- Login to the Admin page with default username: openfiler and password: password on any browser.
- Select the "System" Tab and update the ESXi host network information under "Network Access Configuration". You may add the specific host network information or the complete network of the ESXi hosts
- Select the "Services" Tab and "enable" & "Start" the NFS Server service.
- Select the "Volumes" Tab and then select the "Block Devices" from right hand side and click on "/dev/sdb"
- Scroll down till "Create a Partition in /dev/sdb" and make sure "Physical Volume" is selected under Partition Type and click on create.
- Now click on "Add Volume" on the right hand side and "Create A New Volume Group"
- Now again click on "Add Volume" and "Create a Volume" with the required share size, this size would be the size of the NFS Datastore. In my case I will create 3 NFS Datastore by dividing 370GB into 3 volumes.
- Now Click on "Share" Tab and click on the share just created and create a folder name
- Click on the folder created and then click on "Make Share"
- Under "Share Access" select "Public Guest Access" and click on update. Remember, this is a lab environment and public access option will make this share accessible to all the hosts.
- Scroll Down and Select "RW" under Shared Access Control Mode. This will provide Read / Write permissions on the NFS share.
- For more volumes, repeat the steps from 9 to 13.
Now you have created NFS shares and presented to all the ESXi hosts in the your Lab Environment. NFS Datastores are simple to add and manage in a vSphere environment as compared to iSCSI and FC. NFS is also capable of all the vSphere features when compared with iSCSI and FC.