HP 7450 Application Software Suite Microsoft SQL Media LTU manual RMSql create

Page 46

RMSql create

SYNTAX

RMSql create -s <SQL server> [-rc <target server> [-w <waittime>]][-i <SQL instance>] [-d <database>] [-noemail] [-exp <time>{hHdD}] [-retain <time>{hHdD}] [-f]

DESCRIPTION

The RMSql create command creates a virtual copy of a SQL database or databases under an instance on the primary host where the SQL server instance is running. (The virtual copy can be mounted to a host later for off-host processing.)

The RMSql create command also allows the user to create a synchronization in periodic mode to a Remote Copy volume group where a single SQL database or all of the SQL databases under an instance are defined, and create another virtual copy at the secondary site as a backup.

As with Recovery Manager for SQL Server itself, this command only supports the online backup of an entire SQL database. Therefore, you must make sure the database is online before creating a virtual copy.

PARAMETERS

The following options are supported:

-s <SQL server>

SQL server to which the database belongs.

-i <SQL instance>

Optional. SQL server instance to which the database belongs. If

 

not specified, MSSQLSERVER is used as the default.

-d <database>

Optional. The database from which to create a virtual copy. If not

 

specified, the instance level of the virtual copy is used as the default.

-w <waittime>

Optional. Wait time in seconds. Recovery Manager uses this wait

 

time to poll the status of the remote copy before creating a virtual

 

copy at the secondary site. If not specified, the wait time is 120

 

seconds by default.

-rc <target server>

Remote Copy target server. To use this option, the Recovery

 

Manager Backup Component server, with Recovery Manager for

 

SQL Server installed, must be located at the secondary site.

-noemail

Optional. Do not send an email notification even if configured for

 

this operation. If not specified, Recovery Manager sends an email

 

notification of the virtual copy creation if configured. For more

 

information, see Configuring Email Notifications.

-exp <time>{hHdD}

Optional. Set the expiration time for this virtual copy to the specified

 

time and time unit. Valid values are:

 

To set the expiration time in hours: 1-43800h (or H)

 

To set the expiration time in days: 1-1825d (or D)

 

To remove the expiration period: 0

 

To use this option, the Recovery Manager for SQL policy must be

 

set to an expiration-based policy.

 

If not specified, Recovery Manager for SQL creates the virtual copy

 

using the expiration time specified in the current policy.

-retain

Optional. Set or extend the retention time for the specified virtual

<time>{hHdD}

copy to the specified time. The virtual copy cannot be removed

 

during this time period.

46 Using the Recovery Manager CLI

Image 46
Contents User’s Guide Documentation Contents Configuring Backup Software Using the Recovery Manager GUIRemote Copy for Recovery Manager Using the Recovery Manager CLIRecovery for Microsoft SQL Server Troubleshooting Event MessagesRelated Documents IntroductionTypographical Conventions Advisories Windows Server Requirements Overview of Recovery ManagerSystem Requirements Additional System RequirementsRecovery Manager Requirements Running Recovery Manager on a Japanese OSFeatures Supported Features Not Supported Microsoft Volume Shadow Copy ServiceSupported VSS Components How HP 3PAR VSS Software Works with Microsoft SQL ServerRecovery Manager Layout Overview of Recovery Manager Upgrading to Recovery Manager 4.2.0 for SQL Installation and DeinstallationPre-Installation Steps Installing Recovery Manager Verifying the Installation Understanding the RegistryDeinstalling Recovery Manager Configuring the SQL Database Configuring Recovery ManagerConfiguring Recovery Manager Configuring Mount Functionality Configuring Recovery Manager PoliciesGrouping Volumes into Autonomic Groups Testing SQL Connectivity Volume SetsConfiguring the Host Computer and the HP 3PAR Storage System Troubleshooting SQL ConnectivityFormatting Partitions on a New HP 3PAR Vlun Windows ServerOverview Configuring Backup SoftwareSetting Up Symantec NetBackup Before You BeginSetting Up HP Data Protector Cell Manager Access Configuring HP Data ProtectorSetting Up the HP Data Protector Backup Specification RequirementsUsing HP Data Protector Using Your Backup SoftwareUsing Symantec NetBackup RM installation location\log\nbulog\databasetimestamp.logOpening the Recovery Manager GUI Using the Recovery Manager GUIOverview of the Recovery Manager GUI Closing the Recovery Manager GUIUpdating Registration after Server Modification How Recovery Manager Policies Work Setting the Recovery Manager PolicyUnregistering a SQL Server Instance Setting Recovery Manager Policies Retention Time RestrictionsConfiguring Email Notifications Modifying the Policy for a Virtual CopyHow Virtual Copy Creation Works Deleting Email ConfigurationsCreating Virtual Copies Manually Creating a Virtual CopyCreating Remote Virtual Copies Scheduling Automatic Virtual CopiesAutomating Tasks Scheduling Automated Tasks with Task SchedulerMounting a Virtual Copy Managing Automated Tasks with Task ManagerUnmounting a Virtual Copy Manually Creating Backups at the Instance or Database LevelBacking Up a Virtual Copy Scheduling Automatic Backups of an Instance or Database Restoring Instances, Databases, and Volumes Removing a Backup from the RepositoryCreating a Backup of a Virtual Copy Restoring an Instance or Database with Volume Restore Restoring an Instance or Database with File Copy RestoreRestoring an Instance or Database from a Backup Analyzing and Synchronizing the RepositoryRemoving a Virtual Copy Viewing Event Message DescriptionsRecovery Manager for SQL Server Command Line Interface CLI Using the Recovery Manager CLIRecovery Manager Commands SQL Server RMSql analyzeRMSql analyze -s SQL server -sync -f SyncRMSql backup Example RMSql create RMSql create -s SQLServer -d test RMSql create -s SQLVirtualServer -d testUsing the Recovery Manager CLI RMSql deletebackup RMSql deletebackup -s server1 -d db1 -tRMSql display RMSql display -s server1RMSql listbackup RMSql mount Database virtual copy limit RMSql policyInstance virtual copy limit RMSql policy -n 5 -s SQL server Retain timehHdDRMSql policy -exp 30d -s SQL server Recovery Manager Commands RMSql portconfig -n RMSql portconfigRMSql portconfig -n number -s WindowsHost RMSql portconfig -n 9999 -s WindowsHostRMSql remove RMSql remove -s SQL server -t timestampWindowsHost RMSql reportRMSql report -s WindowsHost -output OutputDirectory RMSql report -s Grampus -output c\MyReportRMSql repository -a alter location -r RMSql repositoryRMSql repository -a d\3parvv SystemDrive\3parSnapshot by default RMSql restoreAltLocation RMSql restore -snap -s server1 -d testdb -t NorecoveryRMSql restore -s server1 -d testdb -t SnapUsing the Recovery Manager CLI RMSql setvc RMSql setvc -s server1 -t 020409162103 -exp 2h RMSql setvc -s server1 -t 020409162103 -exp 30dRMSql timeconfig -prt RMSql timeconfigRMSql timeconfig RMSql timeconfig -bktRMSql unmount Running Recovery Manager as a Scheduled JobScheduling an Automated Task in Windows RMSql unmount -s SQL server -t timestampFor example Recovering Data with HP 3PAR Recovery Manager Recovery for Microsoft SQL ServerMicrosoft SQL Server Recovery Models Preparing for the Recovery ProcessRecovering All Data with Point-of-Failure Recovery Performing a Point-of-Failure Recovery Recovering All Data with Point-of-Failure Recovery Remote Copy for Recovery Manager How Remote Copy WorksSetting Up Remote Copy Support for Remote Copy Modes and Policies Setting Up Remote Copy Volume GroupsSetting Up a Remote Copy Volume Group for Databases Support for GeoCluster for Microsoft WindowsRecovering a SQL Database from a Remote Copy Backup Server Setting Up a Remote Copy Volume Group for InstancesServer Virtualization Environments VMWare and EgeneraTroubleshooting Installpath\NetBackup\db\ Installpath\NetBackup\db\altnames\No.RestrictionsEvent Messages Event ID Event ID Event ID Event ID Provcfg conn -syncrc Yes