Tuesday, November 19, 2013

Present local storage as shared NFS volumes in simple steps (Lab only)

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.

  1. 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.
  2. Static IP could configured during installation, after the installation completes, the configuration page login url is provided on the home screen.
  3. Login to the Admin page with default username: openfiler and password: password on any browser.
  4. 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
  5. Select the "Services" Tab and "enable" & "Start" the NFS Server service.
  6. Select the "Volumes" Tab and then select the "Block Devices" from right hand side and click on "/dev/sdb"
  7. Scroll down till "Create a Partition in /dev/sdb" and make sure "Physical Volume" is selected under Partition Type and click on create.
  8. Now click on "Add Volume" on the right hand side and "Create A New Volume Group"
  9. 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.
  10. Now Click on "Share" Tab and click on the share just created and create a folder name
  11. Click on the folder created and then click on "Make Share"
  12. 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.
  13. Scroll Down and Select "RW" under Shared Access Control Mode. This will provide Read / Write permissions on the NFS share.
  14. 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.