Error "Unexpected ownership and/or permissions on provided NFS share" when adding Standby VMware Cloud Director cell
search cancel

Error "Unexpected ownership and/or permissions on provided NFS share" when adding Standby VMware Cloud Director cell

book

Article ID: 380561

calendar_today

Updated On:

Products

VMware Cloud Director VMware vSphere ESXi

Issue/Introduction

  • When adding a standby VMware Cloud Director cell as per: Configure Your VMware Cloud Director Standby and Application Cells
  • The backend validation of NFS mount (on TrueNAS) failed with: Backend validation of NFS mount failed with: Unexpected ownership and/or permissions on provided NFS share. Expected root:root with mode: 750. Found root:vcloud with mode: 750


  • The following log entry can be found in /opt/vmware/var/log/vcd/nfsvalidation.log on the standby cell:
    yyyy-mm-dd hh:mm:ss | ERROR | Unexpected ownership and/or permissions on provided NFS share. Expected: root:root with mode: 750. Found: root: vcloud with mode 750

Environment

VMware Cloud Director 10.x

Cause

  • NFS mount validation can fail when deploying a VCD cell, with the above error if test files created post mounting have incorrect ownership (e.g., root:vcloud or vcloud:root with 750 permissions).

  • This usually happens when the TrueNAS NFS server has MapAllUsers and/or MapAllGroups Attributes unset or mapped to a non-root user.

  • To fix this, set both MapAllUsers and MapAllGroups to root on the TrueNAS NFS export, so all files are created as root:root, ensuring validation passes.

Resolution

  • Ensure the NFS server configured for the VCD cells on the trueNAS has the below configurations:
    • MapAllUsers : root
    • MapAllGroups : root

If the issue persists despite the above steps, Reach out to Broadcom Support for further assistance, as it may require validation script modifications. 

Additional Information

Note : 
When using TrueNAS as NFS storage, verify that you are using the Linux-based TrueNAS SCALE rather than the FreeBSD-based TrueNAS Core. The NFS ID mapping (maproot) in TrueNAS Core cannot provide the root:root permissions required by VCD. TrueNAS SCALE operates with no_root_squash behavior, which satisfies the permission requirements for VCD.

 

Refer:
Preparing the Transfer Server Storage for Your VMware Cloud Director Appliance