Installation and basic configuration of Openfiler
In my test environment, I will install Openfiler as a guest virtual machine in VMware workstation with the following settings:
After a screen where we select our region/time zone (not shown), we are prompted to enter a root password for the filer:
Lastly, we click "Next" to start the installation and select "Reboot" when the installation has completed (these two screenshots not shown).
Configuration of NFS storage
Once the Openfiler reboots we will connect to the web interface at the following URL:
Note: replace my IP address with the IP address you assigned to your Openfiler.
Use the following credentials to login (you can change them later):
Once inside, we see a number of tabs for the configuration of the Openfiler.
The Status tab displays system information. Here is a partial screenshot (click to enlarge):
Under the system tab, we see the the network settings that we configured at installation:
Next, I will configure storage for our virtual machines. This is the hierarchy of the disk structure and organization...
- Volume Group
- (and LUN if iSCSI is used, not applicable for NFS)
Under the Volumes tab, we click on "Block Devices":
We select /dev/sdb and click on the link (see above).
We do not have any partitions on the disk so we go to the lower section called "Create partition in /dev/sdb":
We should then see a partition like this:
After the partition, we create a new Volume Group (click on Volume Groups in the menu on the right):
Click on "Add volume group" to complete the operation.
Next, click on Add Volume in the menu (Volumes section):
We select the volume group for the volume (in our case, we only have one: VG1):
At this point, I will enable the NFS Server service on the Openfiler (without this service enabled, NFS will not function. We can also start/stop the service directly):
We share the folder by clicking on it...
We then have a shared folder to which we need to regulate access. In my practice lab, I will allow Public (guest) access:
So now we have NFS storage that we can use to store VMware guests. In the next section, I'll create a NFS Datastore using that shared folder.
Creation of a NFS Datastore
In vCenter, at the location indicated below, we select the option to create a new Datastore:
We select the location for the new Datastore (in my case, there is not much of a choice):
For a NFS datastore, we logically select "NFS":
Next, we select the NFS version (for my scenario, NFS 3.0 will suffice):
We enter a name for the Datastore, indicate the folder and the IP address (or host name) of the Openfiler:
Note: to designate the folder, we can copy the path from the Openfiler.
We then designate the hosts that will need to access the new Datastore. For the time being, I will add ESX1 only:
And here is a summary of our configuration choices: