NetWorker Module for Microsoft Command-line Syntax for nsrsqlsv in Cluster SQL Server Instance

Resumen: How to backup Virtual (Clustered) SQL Server instance with NetWorker Module for Microsoft using VDI command-line syntax or 'nsrsqlsv'

Este artículo se aplica a: Este artículo no se aplica a: Este artículo no está vinculado a ningún producto específico. En este artículo no se identifican todas las versiones de los productos.

Síntomas

This article describes how to backup Virtual (Clustered) SQL Server instance with NetWorker Module for Microsoft using VDI command-line syntax or nsrsqlsv.

Below is a typical message when command-line syntax fails to perform manual backup:

Command line syntax fails for  'nsrsqlsv'  when performing manual backup of a Clustered virtual SQL Server instance. 

Usage appears:  

37758:(pid 1712): Usage: nsrsqlsv [<options>] {path}
options: [-CGjqRTvkuHXZ] [-s server] [-N name] [-b pool] [-g group]
         [-S count] [-l level] [-m masquerade] [-U user [-P passwd]]
         [[-A virtual-server] | [-c client]] [-a device interface=data domain] [-f aes] [-w browse] [-y retention]
         [[-A virtual-server] | [-c client]] [-a De-duplication backup=yes] [-a De-duplication node=<Avamar Node Name>] [-a De-duplication client name=<client>] [-f aes] [-w browse] [-y retention]
         [[-A virtual-server] | [-c client]] [-z FEDERATED_SLAVE=true]
path:    d-path | i-path
d-path:  MSSQL: | [MSSQL:]s-path [[MSSQL:]s-path [...]]
i-path:  MSSQL$inst-name: | MSSQL$inst-name:s-path [...]
s-path:  database | database. | database.filegroup |
         database.filegroup. | database.filegroup.file

Causa

Usage for nsrsqlsv to backup a clustered SQL Server instance requires specific parameters.

The two most important requirements:

  • Use of:
-A virtualservername
  • Omit instance name:
MSSQL:  Save Set name cannot include $instance name

Resolución

To backup SQL Server, using VDI with NetWorker Module for Microsoft when the client is a Clustered SQL Server instance requires the following adjustments:
  • For any clustered instance of SQL Server:
OMIT:
$instance name from MSSQL:

nsrsqlsv -A SQL_virtual_server_name -c SQL_virtual_server_name -s NetWorker_server_name MSSQL:
  • For any nonclustered instance of SQL Server:
The save set INCLUDES:
$instance name with MSSQL$instance name:
OMIT:
-A as it is not clustered:

nsrsqlsv -c SQL_virtual_server_name -s NetWorker_server_name MSSQL$instancename:

Examples:

Virtual SQL Server name - This is the DNS name for SQL Server in a cluster. sqlvir1  
Clustered SQL Server instance name - This is the instance name created by SQL Server clustered installation, * is never used in syntax. PROD1
Standalone SQL Server hostname sqldb1
Standalone SQL Server instance name - This is the instance name created by SQL Server stand-alone installation, * is used in syntax. PROD
NetWorker Server bup1
Pool Default
 
Examples:

Example for Clustered SQL Server - nsrsqlsv syntax 
NOTE - OMIT instance name "PROD1" 

  nsrsqlsv -A sqlvir1  -c sqlvir1 -s bup1 b Default  MSSQL:
  nsrsqlsv -A sqlvir1  -c sqlvir1 -s bup1 b Default  MSSQL:dbname
  
  
Example for Standalone Server - nsrsqlsv syntax 
NOTE - OMIT -A   but include instance name PROD

  nsrsqlsv  -c sqldb1 -s bup1 -b Default  MSSQL$PROD:
  nsrsqlsv  -c sqldb1 -s bup1 -b Default  MSSQL$PROD:dbname
Propiedades del artículo
Número de artículo: 000015997
Tipo de artículo: Solution
Última modificación: 27 may 2024
Versión:  4
Encuentra las respuestas que necesitas con la ayuda de otros usuarios de Dell
Servicios de asistencia
Comprueba si tu dispositivo está cubierto por los servicios de asistencia.