Install the CommServe and Database Engine on Separate Computers

Table of Contents

Overview

Setup CommServe Computer

Setup SQL Server Computer

Moving the Database

Setting up the SQL Server Account

Changing DSN Settings

Protecting the Database - Setting up the Disaster Recovery Backup

Restoring the Database

Installing Updates

Uninstalling Updates

Overview

The CommServe and the Microsoft SQL Server Database Engine can be installed on separate computers.

The following procedure describes the steps involved in building such a topology. Note that these procedures require familiarity and understanding of both the Microsoft SQL Server Database Engine and the Windows operating system.

This procedure can be used when you initially install the software, or when you split an existing CommServe.

The following are not supported in this configuration:
The setup requires the following:
  • CommServe software to be installed on CommServe and SQL Server computers. This installation will automatically install SQL Server software.
  • A reliable and fast network connection between these two computers.

Setup CommServe Computer

1. Install the CommServe software on the computer that will host the CommServe. See Install the CommServe for step-by-step instructions.
2. Verify that no jobs are in progress or scheduled to occur while setting up this configuration.

If jobs are in progress or other tasks (such as reports or updates) are scheduled, either perform this task at another time or disable all activity or disable all scheduled tasks from the CommCell Console.

To disable activity control:
  1. From the CommCell Browser, right-click the CommServe and then click Properties.
  2. Click Activity Control tab.
  3. Clear Enable All Job Activity and Enable Scheduler box.
  4. Click OK.
3. Stop all services on the CommServe computer. To stop services:
  1. Click the Start button on the Windows task bar and then click All Programs.
  2. Navigate to bull | Calypso and click Service Control Manager.
  3. Select All Services in Services.
  4. Click Stop to stop all services.

Setup SQL Server Computer

4. Install the CommServe software on the SQL Server computer. This installation will automatically install SQL Server software.

See System Requirements - CommServe for more information on the SQL Server version.

See Install the CommServe for step-by-step instructions.
5. Stop all services on the SQL Server computer.

Note that the CommServe Services must be disabled permanently.

To stop services:
  1. Click the Start button on the Windows task bar and then click All Programs.
  2. Navigate to bull | Calypso and click Service Control Manager.
  3. Select All Services in Services.
  4. Click Stop to stop all services.

Moving the Database

6. In the CommServe computer, using the SQL Server Management Studio, backup the CommServ database and create a .dmp file. Perform the following steps to back up the CommServe database to a full database backup:
  1. Open Microsoft SQL Server Management Studio.
  2. Navigate to Server Instance | Database | CommServ.
  3. Right-click the CommServ database, select Tasks and then click Backup. The Back Up Database dialog box appears.
  4. In the Database, verify the database name.
  5. In the Backup type, select Full.
  6. In the Backup Component, select Database option.
  7. Accept the default backup set name in the Name, or you can enter a different name for the backup set.
  8. Specify when the Backup set will expire. By default After is selected with value 0.
  9. In the Destination area select Disk option. To select the path, click Add. The selected path will be displayed in the Backup to list.
  10. To remove backup destination, select the destination path and click Remove.
  11. Click OK.
7. Copy the backup dump (.dmp) file created in Step 4 to SQL Server Computer using any of the following method:
  • Using a physical media
  • Using a network drive that is accessible from both the Servers
 
8. In the SQL Server computer, using the SQL Server Management Studio, restore the CommServ database. Perform the following steps to restore the full database to the SQL Server computer:
  1. Open Microsoft SQL Server Management Studio.
  2. Navigate to Server Instance | Database.
  3. Right-click Database, select Restore Database. The Restore Database dialog box appears.
  4. On the General page, do the following:
    • In the To Database, select or type the name of a database.
    • To specify the source and location of the backup sets to restore, select From device option.

      Click the Browse button, Backup dialog box appears.

      In the Backup media, select one of the device type.

      Click Add to provide the path of dump file copied in the previous step. Click OK.

  5. On the Options page, do the following:
    • In the Restore options, choose any of the options, appropriate for your situation.
    • The Recovery state determines the state of the database after the restore operation.

      Choose Leave the database non-operational, and do not roll back the uncommitted transactions. Additional transaction logs can be restored. (RESTORE WITH NORECOVERY) option.

  6. Click OK.
9. Run the following query from SQL Management Studio on SQL Server Computer:

Usage:

exec CommServ..executeCSSetupScripts '<path>'

Example

exec CommServ..executeCSSetupScripts 'C:\Program Files\Bull Calypso\Calypso\'

Where

<path> - This is the path of CommServe Installation Directory on SQL Server Computer.

 

Setting  up the SQL Server Account

10. On the CommServe computer, from the Registry Editor, edit the following values to point to SQL Server Computer:
  • sCONNECTION
  • sDOMAIN
  • sINSTANCE
To open and edit the registry key:
  1. From Taskbar, click Start, and then click Run.
  2. Type regedit, and then click OK.
  3. Navigate to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\CommVault Systems\Galaxy\Instance<xxx>\Database

  4. Edit the following values:
    • sCONNECTION set it to <SQL Server computer>_commserv
    • sDOMAIN set it to <SQL Server computer>
    • sINSTANCE set it to <SQL Server computer>\BullCalypso

Changing DSN Settings

11. On the CommServe computer, modify the DSN Settings for the CommServe database to point to the database in the SQL Server computer.
  1. Open Control Panel | Administrative Tools | Data Sources (ODBC).
  2. Click the System DSN tab.
  3. Click <CommServe computer>_commserv and then click Configure.
  4. Edit the following values:

    Name -  set it to <SQL Server computer>_commserv

    Server - set it to <SQL Server computer>\BullCalypso

  5. Click Next.
  6. Choose the With SQL Server authentication using a login ID and password entered by the user option.
  7. Select the Connect to SQL Server to obtain default settings for the additional configuration options check box and enter the login and password of the sa user in the SQL Server computer.
  8. Click Next twice and then click Finish. (Nothing needs to be changed on these dialog boxes.)
  9. Click Test Data Source.

    The result should be TEST COMPLETED SUCCESSFULLY.

    If not make sure SQL server on the SQL Server computer is accessible and the login information given are correct.

  10. Click OK.
12. Restart the services on the CommServe computer and re-enable jobs that were disabled. To start the services:
  1. Click the Start button on the Windows task bar and then click All Programs.
  2. Navigate to bull | Calypso and click Service Control Manager.
  3. Select All Services in Services.
  4. Click Start to start all services.
To enable activity control:
  1. From the CommCell Browser, right-click the CommServe and then click Properties.
  2. Click Activity Control tab.
  3. Select Enable All Job Activity and Enable Scheduler box.
  4. Click OK.

Protecting the Database - Setting up the Disaster Recovery Backup

As Disaster Recovery Backup will not work in this setup, use the following steps to protect the database:

13. Disable the Disaster Recovery Backup schedule. Use the following steps to disable a schedule:
  1. From the CommCell Browser, right-click the <CommServe>, point to View and then click Schedules.
  2. Select and right-click the DR Backup Full schedule in the right pane and click Disable.
  3. Click Yes to disable the schedule.
14. Install the File System iDataAgent on the SQL Server computer. See Getting Started - Windows File System Deployment for more information.
15. Using the File System iDataAgent, create a subclient which includes a script in the pre-scan phase to create a .dmp file of the CommServ database. Schedule regular backups of this subclient database from file system iDataAgent.

Recommended schedule is a daily full backup.

Use the following command line in a batch file and attach the batch file as a PreBackup Process:

<sql install path>\Isql.exe -S <SQL ServerName> -U sa -P <sapwd> -q "BACKUP DATABASE [CommServ] TO DISK = 'C:\cs.dmp'"

This should create a dump file c:\cs.dmp.

You can choose the folder in which the .dmp file is created.

16. If you want a copy of the dump in a disk library (similar to Disaster Recovery Backup) copy the dump file to another location. This can be included in the post-backup phase.  

Restoring the Database

17. If you wish to recover the database, restore the dump file using the File System iDataAgent on the SQL Server computer and then recover the database using the SQL Server Management Studio.  

Installing Updates

Use the following steps to install updates on CommServe and SQL Server computers:

Perform the following steps to install updates on SQL Server computer:

  1. Services on SQL Server computer are already disabled.
  2. Navigate to the <Service Pack> directory.
  3. Execute the following command:

    InstallUpdates.exe -doNotUpdateDB -nostartsvc -silent -vm Instance001

Perform the following steps to install updates on CommServe computer:

  1. Stop all services on the CommServe computer.
  2. Navigate to the <Service Pack> directory.
  3. Execute the following command:

    InstallUpdates.exe -nostartsvc -silent -vm Instance001

  4. If PendingDBOperation registry key is available at the following location on CommServe computer, then delete the key.

    HKEY_LOCAL_MACHINE\SOFTWARE\CommVault Systems\Galaxy\UpdateFlags\

  5. Start all the services on the CommServe computer.
 

Uninstalling Updates

Use the following steps to uninstall updates on Commserve and SQL Server computers:

Perform the following steps to install updates on CommServe computer:
  1. Stop all services on the CommServe computer.
  2. Navigate to the Base directory.
  3. Execute the following command:

    Removeupdates.exe -silent -nostartsvc -vm Instance001 -undo bin

  4. If PendingDBOperation registry key is available at the following location on the CommServe computer, then delete the key.

    HKEY_LOCAL_MACHINE\SOFTWARE\CommVault Systems\Galaxy\UpdateFlags\

  5. Start all the services on the CommServe computer.

Perform the following steps to install updates on SQL Server computer:

  1. Services on SQL Server computer are already disabled.
  2. Navigate to the Base directory.
  3. Execute the following command:

    Removeupdates.exe -silent -nostartsvc -vm Instance001 -donotupdatedb