VMware Cloud Community
SebastianGrugel
Hot Shot
Hot Shot

NFS configuration / Proper configuration on vCD CELL (CentOS) /etc/fstab

I have configured on /etc/fstab on both cells in that way:

x.x.x.x:/mnt/vcloud-director/data/transfer    /opt/vmware/vcloud-director/data/transfer    nfs     defaults  2 2

but in KB VMware Knowledge Base there is recommendation for:

192.168.120.7:/nfs/vCDspace /opt/vmware/vcloud-director/data/transfer nfs intr 0 0

In my configuration i have  this entry 2 2 not 0 0

If that can be problem  ? shouls i reconfigure this ?

vExpert VSAN/NSX/CLOUD | VCAP5-DCA | VCP6-DCV/CMA/NV ==> akademiadatacenter.pl
Reply
0 Kudos
2 Replies
andreaspa
Hot Shot
Hot Shot

Hi!

Found some useful info here:

https://help.ubuntu.com/community/Fstab

The first "2" has to do with the dump command, and the second "2" has to do with fsck during boot (if needed). I'd say that you probably should change the fields to "0" at your earliest convenience.

Reply
0 Kudos
legioon
Enthusiast
Enthusiast

Hi Sebastian,

I am configuring like this ;

NFS Server

yum install nfs-utils

mkdir /var/nfsshare

chmod -R 777 /var/nfsshare/

nano /etc/export

/var/nfsshare Cell1 IP(rw,sync,no_root_squash,no_all_squash)

/var/nfsshare Cell2 IP(rw,sync,no_root_squash,no_all_squash)

/var/nfsshare Cell1 console IP(rw,sync,no_root_squash,no_all_squash)

/var/nfsshare Cell2 console IP(rw,sync,no_root_squash,no_all_squash)

/var/nfsshare *(rw,no_root_squash)

systemctl restart nfs-server

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

firewall-cmd --reload

vCloud Director Cells

nano /etc/fstab

NFSSERVERIPADDRESS:/var/nfsshare /opt/vmware/vcloud-director/data/transfer nfs rw,soft,_netdev  0 0

then run this command ;  mount -a ( it will be mounted after reboot )

you can check this with df -h command.

Reply
0 Kudos