Forum Discussion

shahriar_sadm's avatar
7 years ago

Change Path for Hyperv Restore returned error 6000

Hi I have a sucessful backup of virual machine using hyperv policy, Now I want to restore using command line in alternative path. my resore command is:

/usr/openv/netbackup/bin/nbrestorevm -vmhvnew -C [VMNAME] -R /root/changedir.txt -vmserver [HYPERVHOST]

changedir.txt file include:

change /C/ClusterStorage/Volume2/[VMNAME]/Snapshots/F9CF1923-F5BC-4140-80DE-0B44C54DA375.xml to /C/tmp/[VMNAME]/Snapshots/F9CF1923-F5BC-4140-80DE-0B44C54DA375.xml
change /C/ClusterStorage/Volume2/[VMNAME]/Virtual Machines/ABE630A9-156C-4681-BD77-ECE0CFF0CD45.xml to /C/tmp/[VMNAME]/Virtual Machines/ABE630A9-156C-4681-BD77-ECE0CFF0CD45.xml
change /C/ClusterStorage/Volume2/[VMNAME]/WIN2012-TMP_disk_1.vhdx to /C/tmp/[VMNAME]/WIN2012-TMP_disk_1.vhdx
change /C/ClusterStorage/Volume2/[VMNAME]/WIN2012-TMP_disk_1-AutoRecovery.avhdx to /C/tmp/[VMNAME]/WIN2012-TMP_disk_1-AutoRecovery.avhdx

I just created tmp on c:\ of Hyperv Host

and I get this error:


Restore image time = 12/25/17 12:16:17
VM restore request returned with status = 6000

EXIT STATUS 6000: The provided path is not whitelisted

 

PS. I run this command on hyperv host:

nbsetconfig.exe -h [hyperv host]

BPCD_WHITELIST_PATH=C:\tmp

ctrl+z

 

Master server is NBU 7.7 on Linux

Media server is NBU 7.7 on Linux

Clinet 7.7 installed on hyperv host (windows 2012)

  • Marianne's avatar
    Marianne
    7 years ago

     

    Status 6000 indeed complains about /root/changedir.txt, not C:\tmp.

    15:35:52.129 [16455.16455] <2> validate_rename_file: bpcr_open_rqst for /root/changedir.txt failed with -6000
    15:35:52.129 [16455.16455] <2> process_request: validate_rename_file failed with 6000


    So, you need to whitelist /root/changedir.txt.

     If this still does not work, it is probably best to log a Support call with Veritas.

    I am battling to relate bprd entries to the command and the changedir file, e.g.
    browse_clnt: ADAudit
    destination_clnt: Hyperv-07

    Support will request level 5 logs as well as exact content of command and changedir file.

  • It seems that you found and followed steps in KB article  

    Have you checked bprd log on the master or bpcd on Hyper-V server to see which path NBU is complaining about? 
    Maybe  /root/changedir.txt on the master?

    PS:
    NBU on master needs to be restarted after bprd folder is created.

      • Marianne's avatar
        Marianne
        Level 6

         

        Status 6000 indeed complains about /root/changedir.txt, not C:\tmp.

        15:35:52.129 [16455.16455] <2> validate_rename_file: bpcr_open_rqst for /root/changedir.txt failed with -6000
        15:35:52.129 [16455.16455] <2> process_request: validate_rename_file failed with 6000


        So, you need to whitelist /root/changedir.txt.

         If this still does not work, it is probably best to log a Support call with Veritas.

        I am battling to relate bprd entries to the command and the changedir file, e.g.
        browse_clnt: ADAudit
        destination_clnt: Hyperv-07

        Support will request level 5 logs as well as exact content of command and changedir file.