I wanted to share my experience in fixing NFS issue during vCD 9.7 Linux based installation.
It is my first cell in the server group with CentOS 7 as operating system. The NFS server(centos) and client versions are v4. After configuring the first cell in the environment, the vCD service started successfully however when I tried to access vCD web port it was not accessible.
vCD service status as below
# service vmware-vcd status
vmware-vcd-watchdog is running
vmware-vcd-cell is running
cell.log
======
Application Initialization: 'com.vmware.vcloud.common.core' 95% complete. Subsystem 'com.vmware.vcloud.jax-rs-servlet' started
Application Initialization: 'com.vmware.vcloud.common.core' 100% complete. Subsystem 'com.vmware.vcloud.ui-vcloud-webapp' started
Application Initialization: 'com.vmware.vcloud.common.core' complete.
Successfully handled all queued events.
Successfully verified transfer spooling area: /opt/vmware/vcloud-director/data/transfer
Cell startup completed in 0m 48s
While checking my installation prereqs noticed the transfer share directory was mounted and had ownership as nobody:nobody instead of vcloud user and group.
Troubleshooting steps followed are
- Changed the ownership to vcloud:vcloud using command chown -R vcloud:vcloud /opt/vmware/vcloud-director/data/transfer
- Confirmed the nfs share is set to no_root_squash
- Created new share in nfs server
- Unmounted and remounted transfer share directory
- Created Windows share still it mounted with permission as nobody:nobody on client machine
- Configured domain name in /etc/idmapd.conf file in both nfs server and client and then restarted rpcidmapd & nfs service
Solution:
The solution eventually is to mount nfs volume with version 3
- mount -t nfs -o vers=3 nfs_ip:/nfs_folder /opt/vmware/vcloud-director/data/transfer
The ownership changed to vcloud user after that and vCD portal is accessible. It is good now to proceed with additional cell installation in the server group.
Comments
Post a Comment