# Renaming a Snapshot in the Commvault Software

If a snapshot is renamed on the file server, use this command to update the database with the new snapshot name.

## Before You Begin

Verify the following:

- No jobs are running. If jobs are running, suspend them.

- For NFS configurations, the junction path used by the application is valid.

## Procedure

1. Run a DR backup of the CommServe database.

2. On the command line of the CommServe computer, go to software_installation_directory/Base and type the following commands:

   1. To allow the tool to modify the database, type the pre-run command:

           SnapManagementTool.exe preRun -vm $[instance_name]

   2. To rename the snapshot in the CommServe database, type the following command:

           SnapManagementTool snapRename -vm $[instance_name] -array $[array_name] -vol $[volume_name] -oldsnap $[old_snap] -newsnap $[new_snap] -jobid $[snap_job_id] [-svm $[vserver]]

      Example:

           SnapManagementTool snapRename -vm $[Instance001] -array $[netapparray101] -vol $[src_PM1] -oldsnap $[SP_2_0_0] -newsnap $[SP_2_1_1] -jobid $[100]

   3. To remove the write permission from the tool, type the post-run command:

           SnapManagementTool.exe postRun -vm $[instance_name]

where:

- instance_name is the name of the Commvault instance (for example, instance00).

- array_name is the name of the NetApp storage array, as entered in the Arrays page.

- volume_name is the name of the volume that stores the snapshots.

- old_snap is the current name of the snapshot.

- new_snap is the new name of the snapshot.

- snap_job_id is the job ID of the snapshot backup operation.

- vserver is the name of the virtual storage computer. This parameter is required for NetApp C-Mode only.

×

Loading...