vCenter Server VAMI backup configured using NFS Failing with error " Failed to create backup directory on backup server"
search cancel

vCenter Server VAMI backup configured using NFS Failing with error " Failed to create backup directory on backup server"

book

Article ID: 377789

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

vCenter Backup failing with below error on VAMI (vCenter server Appliance Management)

Failed to create backup directory on backup server.

In /var/log/vmware/applmgmt/backup.log errors similar to:

ERROR: Failed to create backup directory Plugin error occurred. ErrCode: 1, Args: ()

ERROR: Local storage io request failed. Err: Permission denied

Environment

  • vCenter Server 7.x

Cause

The backup is failing on vCenter due to a permission issues on NFS server.

A packet capture during the backup will show an error in the Access reply packet similar to following:

<Packet summary> NFS    190    V3 ACCESS Reply (Call In 429), [Access Denied: MD XT], [Allowed: RD LU DL]

Network File System, ACCESS Reply, [Access Denied: MD XT], [Allowed: RD LU DL]
    [Program Version: 3]
    [V3 Procedure: ACCESS (4)]
    Status: NFS3_OK (0)
    obj_attributes  Directory mode: 0777 uid: 1234 gid: 1234
        attributes_follow: value follows (1)
        attributes  Directory mode: 0777 uid: 1234 gid: 1234
            uid: 1234
            gid: 1234
    Access rights (of requested): 0x00000013
        .... ...1 = 0x001 READ: allowed
        .... ..1. = 0x002 LOOKUP: allowed
        .... .0.. = 0x004 MODIFY: *Access Denied*
        .... 0... = 0x008 EXTEND: *Access Denied*
        ...1 .... = 0x010 DELETE: allowed


Access denied is shown for the user preventing the User ID (UID 1234) from creating a new directory.

The packet capture for the MKDIR request also shows NFS3ERR_NOENT when trying to create the new directory.

<Packet Summary>  NFS    190    V3 MKDIR Reply (Call In 432) Error: NFS3ERR_ACCES

The user ID 1234 in this example above does not have MODIFY or EXTEND permissions to create a new directory and the backup process fails.

Resolution

Windows NFS configuration:


If the NFS Backup share is configured on windows machine, check for the permission settings of NFS Folder:

1) Right Click on properties of NFS backup folder

2)  Select Manage NFS Sharing 



3) Select permissions


4) Check for the permission:  if its Read Only , then change to Read-Write under Type of access

5) Retry the backup from vCenter server VAMI (vCenter server Appliance Management) Page at https://vCentername:5480

For other NFS share mounts, refer to the vendor specific documentation on creating user with appropriate permission rights.

 

Additional Information