Skip to main content

Lab Notes – vCloud Director 9.1 for Service Providers – Part 3: NFS Server Installation

 Author
Author
Sam McGeown
Steely-eyed missile man
vCloud Director Lab Install - This article is part of a series.
Part : This Article
Warning: This article is now 8 years old! It is highly likely that this information is out of date and the author will have completely forgotten about it. Please take care when following any guidance to ensure you have up-to-date recommendations.

This series was originally going to be a more polished endeavour, but unfortunately time got in the way. A prod from James Kilby (@jameskilbynet) has convinced me to publish as is, as a series of lab notes. Maybe one day I’ll loop back and finish them…

Prerequisites
#

I’ve deployed a CentOS7 VM from my standard template, and configured the prerequisites as per my prerequisites post. Updates, NTP, DNS and  SELinux have all been configured. I have added a 200GB disk to the base VM, which has then been partitioned, formatted and mounted to /nfs/data - this will be the share used for vCloud Director.

Install and enable the NFS server
#

Installing and configuring an NFS share is a pretty common admin task, so it doesn’t require a lot of explanation (I hope!)

Install the packages:

yum install nfs-utils rpcbind

Enable, and start the services:

systemctl enable nfs-server

systemctl enable rpcbind

systemctl enable nfs-lock

systemctl enable nfs-idmap

systemctl start rpcbind

systemctl start nfs-server

systemctl start nfs-lock

systemctl start nfs-idmaptouch

Configure the NFS Export (Share)
#

Once the services have been configured I add a configuration line to /etc/exports to export the mount (/nfs/data), allow access from the NFS subnet (10.12.0.97/27) with the required settings for vCloud Director.

echo “/nfs/data 10.12.0.97/27(rw,sync,no_root_squash,no_subtree_check)” » /etc/exports

The following command will load the /etc/exports configuration:

exportfs -a

Finally, open the firewall ports to allow NFS clients to connect:

firewall-cmd -permanent -zone=public -add-service=nfs

firewall-cmd -permanent -zone=public -add-service=mountd

firewall-cmd -permanent -zone=public -add-service=rpc-bind

firewall-cmd -reload

Next Steps
#

Now that the NFS share is in place, I can move on to the next supporting service for vCloud Director - RabbitMQ. The NFS share will be mounted to the vCloud Director cells when they are installed later.

vCloud Director Lab Install - This article is part of a series.
Part : This Article