vCloud Director Install and Setup – NFS Server

This entry is part 2 of 5 in the series vCloud Director Install and Setup Series

vCloud NFS server

I am installing and testing vCloud Director in my Lab and to make sure I can add more Servers into the Group I need to make sure there is some temporary storage that the Hosts will use.  The vCD docs recommend an NFS share that is several hundred gigabytes in size but as I’m building this for a lab I have used 150GB.

In this example I am using a Linux CentOS 6 (64 bit) VM.  You will need to install NFS and set the exports.  If you are running iptables then either disable it (fine for a Lab environment) or open the relevant ports from the relevant Hosts (which is the correct/secure way).

To install and configure NFS on CentOS:

[code]yum install nfs-utils[/code]

Now edit the /etc/sysconfig/nfs file for the server settings:

[code]vi /etc/sysconfig/nfs[/code]

I usually just make sure the following standard settings are uncommented:

[code]
RQUOTAD_PORT=875
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
STATD_PORT=662
STATD_OUTGOING_PORT=2020
[/code]

We should now edit the /etc/exports file and share our directory with our Hosts:

[code]vi /etc/exports[/code]

In this example I am sharing the directory /nfs with the entire 172.27.128.0/20 subnet (my lab uses a slice of this subnet):

[code]/nfs 172.27.128.0/20(rw,no_root_squash)[/code]

NOTE: If you need to update your exports file after NFS has started then the best way to push those settings out without restarting the NFS service is to do the following:

[code]exportfs -rv[/code]

To see what NFS is currently exporting:

[code]exportfs[/code]

Make sure that NFS starts after booting:

[code]chkconfig nfs on[/code]

I always do a restart first off to get the NFS service running, just in case the install started something without me noticing:

[code]service nfs restart[/code]

You should see all NFS and RPC services start up successfully:

To configure ipTables on CentOS:

So you can do this the lazy way (which should be fine for a Lab) or the proper way.  The lazy way is to create a simple shell script to open up the firewall for everything:

[code]vi fw.stop[/code]

Copy/paste the following lines into your script:

[code]
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
[/code]

Now make it executable, run it and then save the settings into iptables:-

[code]
# chmod +x fw.stop
# ./fw.stop
# service iptables save
[/code]

The not so lazy way to do this is as follows:

NEED SOME INFO HERE!!!!!!

Series Navigation<< vCloud Director Install and Setup – Database ConfigurationvCloud Director Install and Setup – installing vShield Manager >>

Leave a Reply

Your email address will not be published. Required fields are marked *