Windows operating systems

Restore Net Appliance CIFS shares

Restoring the share definition requires restoring the root directory of the share file space, which under most circumstances can be done as follows: dsmc rest \\NetAppFiler\CifsShareName\ -dirsonly.

The following output indicates that the root directory (and share definition has been restored):
   Restoring               0 \\NetAppFiler\CifsShareName\ [Done]

If the CIFS share definition is deleted on the Net Appliance file server, the client is unable to directly restore the share definition because the share is no longer accessible.

The share definition can be restored indirectly by creating a temporary local share and restoring the share definition to the temporary share as follows:
   md c:\tempdir  net share tempshare=c:\tempdir 
     /remark:"Temporary Share for Restoring Deleted CIFS Share"
   net use z: \\LocalMachineName\tempshare
   dsmc res \\NetAppFiler\CifsShareName\ z:\ -dirsonly

This restores the original share definition (including permissions) on the file server.

Older versions of the Tivoli® Storage Manager server might have a problem which prevents restoring the root directory and the CIFS share definition. If this problem occurs, it can be circumvented by using by one of the following methods:

  1. Use the DISABLENQR testflag to restore the root directory as follows:
    dsmc res \\NetAppFiler\CifsShareName\ -test=disablenqr  -dirsonly
  2. Use the command line client -pick option with a restore command and select the root directory:
    dsmc res \\NetAppFiler\CifsShareName\  -dirsonly -pick