GRT enabled backups complete with status code 1 (partially successful) and Nbfsd shows mkdir failed (2)
Problem
When using the Active Directory or Exchange Granular Restore option, backups complete with status code 1 (Partial Success). The message "Exchange granular restore from this image may not work" occurs in the Activity Monitor Job Details. NBFSD log on the Media Server will show the following 'mkdir failed (2) - D:\NBU\temp/nbfsd_ivfs_tempfiles/ivfs__7060_0004'
Error Message
Activitiy Monitor Job Detailed Status will show:
"Exchange granular restore from this image may not work" and "the requested operation was partially successful(1)" Status 1
Nbfsd Log on Media Server showing:
16:24:51.301 [7060.11988] <4> nfs3_mkdir: MKDIR REQUEST _vv_MOHE-02-BE050 mode 0755, atime 1334928290+835853900, mtime 1334928290+835853900 /NBUFS_A_559FEB23CED32B69_000/backups/mohe-02-be05/allusers/full/1334833077
16:24:51.301 [7060.11988] <2> get_pre_op_attr: for id 2/1: size 8192, time m 1334928291+1, c 1334928290+0, tarino
16:24:51.301 [7060.11988] <2> vfs::vfs: new vfs 0000000001DE9CE0
16:24:51.301 [7060.11988] <16> tmpfs::tmpfs: mkdir failed (2) - D:\NBU\temp/nbfsd_ivfs_tempfiles/ivfs__7060_0004
16:24:51.301 [7060.11988] <16> tmpfs::tmpfs: THROWING 2 mkdir failed
*Bpgetconfig on Media Server:
C:\Program Files\Veritas\netbackup\bin\admincmd\bpgetconfig" -g Media_Server_Name -L shows:
NBFSD_STAGING_DIR = D:\NBU\temp
*Registry on the Media Server also shows:
HKEY_LOCAL_MACHINE/Software/VERITAS/NetBackup/CurrentVersion/Config
NBFSD_STAGING_DIR = REG_SZ = "D:\NBU\temp"
Cause
The Nbfsd process required for Granular (GRT) to function uses a Temporary Staging area to store temporary files. The default location will go to %install_path%\Netbackup\Temp. If this directory does not exist or the location has moved using the NBFSD_STAGING_DIR registry workaround, or if NetBackup does not have access to this location then the Nbfsd process will fail causing the NetBackup Job to complete with a status 1. This only affects the Granular part of the job and the non Granular data will still be recoverable.
Solution
Use Windows explorer or command line mkdir to make sure the NBFSD staging path exists on the Media Server and is writable by NetBackup.
Check the path either using the bpgetconfig command or for NBU_STAGING_DIR in the following registry key HKEY_LOCAL_MACHINE/Software/VERITAS/NetBackup/CurrentVersion/Config on the Media Server
Applies To
This affects all GRT enabled backups where the NBFSD staging area no longer exists