Advanced Configuration - Sybase iDataAgent

Table of Contents

Understanding the CommCell Console

Managing the Sybase Server

Adding a New Sybase Server

Changing the Sybase Home Directory

Changing the Backup Server

Configuring the Environment Variables

Changing the Configuration File

Changing the Shared Memory Directory

Manually Creating a Master Database

Managing Subclients

Creating a User-Defined Subclient to Backup Specific Databases

Enabling/Disabling Automatic Discovery of Databases to the Default Subclient

Manually Discovering Databases

Configuring User Accounts for Backups

Configuring Streams for Backups

Modifying an Agent, Instance, or Subclient

Deleting an Agent, Instance, or Subclient

Deleting an Agent

Deleting an Instance

Deleting a Subclient

Command Line Operations

Log on to the CommServe

Configure Instances

Configure Subclients

List Schedule Policy Association

Understanding the CommCell Console

The Sybase iDataAgent uses the following logical entities to manage backup and restore operations from the CommCell Console.

Agent

Facilitates the creation of Sybase Server instance.

Instance

Defines the Sybase Server to be backed up.

Subclient

Defines the Sybase databases to be backed up.

 

Managing the Sybase Server

In the CommCell Console each instance references a Sybase server. Hence it is necessary to create an instance for each Sybase Server to be backed up. You can manage your server/instance as described in the following sections:

Adding a New Sybase Server

Whenever a new Sybase Server is created on the client, you will add the Sybase Server to the CommCell using the following steps:

  1. From the CommCell Browser, navigate to the Client Computers | <Client>.
  2. Right-click Sybase, point to All Tasks, and then click New Sybase Server.
  1. In the Server Name box type the Sybase server name.
  1. In the SA User Name box, type the Sybase Administrator user name with the permissions to perform data protection, recovery and administrative operations.
  1. In the Account Password box, type the Sybase Administrator user account password.
  2. In the Confirm Password box, re-type the password.
  1. In the Sybase Home box, type the path to the directory where the Sybase application files reside. Alternatively, click Browse to select the location.
  1. In the Sybase ASE box, type the Sybase Adaptive Server Enterprise (ASE) environment variable.

    You can view the path to the ASE directory in .env file residing in the Sybase home directory.

  1. In the Sybase OCS box, type the Sybase Open Client Server (OCS )environment variable.

    You can view this variable in sybase.env file residing in home directory.

  1. In the Configuration File box, type the path to the configuration file. Alternatively, click Browse to select the location.
  1. In the Shared Memory Directory box, type the location of the directory where you specify the shared memory file name. When you start an Adaptive Server, it creates a shared memory file that resides in the home directory. for example: /opt/sybase/ASE-15_0. Alternatively, click Browse to select the location.
  1. In the Default Database Storage Policy box, select the storage policy.
  1. In the User Name box, type the name of the user with read and write permissions to Calypso Software Installation Directory, client registry directory, Sybase software installation directories and Sybase database devices directories.

    For Windows, in addition to the name of the user with read and write permissions to the above mentioned directories, you need to type the password in Account Password box and retype the password in Confirm Password box.

  2. Click OK.

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, and then click Properties.
  3. Select the Backup Server from the list.
  4. Click OK.

Changing the Sybase Home Directory

Sybase HOME directory refers to the location where the Sybase application resides. You can modify the home path location for an instance at any point of time. Use the following steps to change the Sybase HOME directory:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, and then click Properties
  3. In the Sybase Home box, type the path to the Sybase application. Alternatively, click Browse to select the location.
  4. Click OK.

Changing the Backup Server

If a backup server that is associated to a Sybase server instance reaches its maximum storage capacity even after compressing your earlier backups, you can change the backup server to enhance your backup and restore jobs.

Use the following steps to change the backup server:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, and then click Properties
  3. From the Backup Server list, select the backup server name.
  4. Click OK.

Configuring the Environment Variables

By default, the Sybase ASE (Adaptive Server Enterprise) server library and Open Client Server (OCS )environment variable are located under the Sybase ASE server home directory. Use the following steps to configure Sybase environment variables:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, and then click Properties
  3. In the Sybase ASE box, type the Sybase ASE server directory.
  4. In the Sybase OCS box, type the Sybase OCS environment variable.
  5. Click OK.

Changing the Configuration File

Use the following steps to change the location of the configuration file:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, and then click Properties
  3. In the Configuration File box, type the path to the configuration file. Alternatively, click Browse to select the location.
  4. Click OK.

Changing the Shared Memory Directory

Sybase uses shared memory for inter process communication and caching the data. Use the following steps to change the location of the shared memory directory:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, and then click Properties
  3. In the Shared Memory Directory box, type the path to the Shared memory directory. Alternatively, click Browse to select the location.
  4. Click OK.

Manually Creating a Master Database

When you restore an entire Sybase server or a master database, it is highly recommended to select Sybase create devices. However, you can also create a master database manually and then perform a restore without selecting Sybase create devices.

Use the following steps to manually create a master database:

  1. First, you need to shut down the Sybase server.

  2. Remove the old master database device and manually delete the master.dat from the database directory.

  3. Execute the command to create the new master device with an empty password.

    Example:

    /sybase/syb1503/ASE-15_0/bin/dataserver -s S1503LNX -b200M -f -z 2048 -d /sybase/syb1503/data/master.dat -c /sybase/syb1503/ASE-15_0/S1503LNX.cfg

  4. Execute the command to start the Sybase server

    Example:

    ./startserver –f RUN_S1503LNX

  5. Execute the command to alter the master database

    Example:

    alter database master on master="87M"

  6. Restart the Sybase server without a password.

Managing Subclients

When you create an instance, a default subclient is automatically created. The default subclient includes all the databases associated with that instance. If a new database is added to the instance, then that database is automatically assigned to the content of the default subclient. However, you can create user-defined subclients to backup individual or a group of databases.

Creating a User defined Subclient to Backup Specific Databases

If you want to back up groups of specific databases, you can do so by creating a user-defined subclient containing any number of databases that exist within the instance. This is useful if you want to back up a subset of databases at certain times or with a particular frequency.

If you want to divide your backups into smaller groups, you can do so by creating user-defined subclients using the following steps:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  2. Right-click the <Instance>, point to All Tasks, and then click New Subclient.
  1. In the Subclient Name box, type the subclient name.
  2. Click the Content tab.
  3. Click Configure.
  4. Click Discover to discover the Sybase databases.
  5. Click the Subclient Name column adjacent to the existing databases, and then select the desired subclient from the drop-down list.

    Repeat this step to assign the available databases to the user-defined subclient.

  6. Click OK.
  1. Click the Storage Device tab.
  2. In the Storage Policy box, select the storage policy.
  3. Click OK.

Enabling/Disabling Automatic Discovery of Databases to the default Subclient

When an automatic database discovery is enabled, all the existing Sybase databases are discovered automatically on the default subclient when a backup job is submitted. If any new databases are added after a previous backup, these newly added databases will be automatically discovered on the default subclient when a backup job is performed.

Use the following steps to enable automatic database discovery:

  • From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent.
  • Right-click the <Instance>, and then click Properties.
  • Select the Enable Auto Discovery check box.
  • Click OK.

Manually Discovering Databases

Whenever a backup job is initiated, newly created Sybase databases are discovered automatically on the default subclient.  However, for a user-defined subclient, you need to  manually discover the databases prior to running any backup jobs. Use the following steps to manually discover the Sybase databases:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase iDataAgent | <Instance>.
  2. Right-click the desired <subclient>.
  1. Click the Content tab.
  2. Click Configure.
  3. Click Discover to discover the Sybase databases.
  4. Click the Subclient Name column adjacent to the desired database, and then select the desired subclient from the drop-down list.
  5. Click OK.

Configuring User Accounts for Backups

The Sybase iDataAgent requires two user accounts to access the Sybase application and database to perform backup and restore operations:

The following table illustrates the required user account privileges for backup and restore operations:

Operations User Account needed:
Create Sybase server Sybase database administrator account (SA role)
Backup Sybase database and Restore non-system databases Operating system user account (operator role) with access to all the databases in an instance.
Restore Sybase system databases Sybase database administrator account (SA role)

By default, the Sybase database administrator account is used for all components. You can change the user account to be used for backups at the Instance level. This user account will be used for all subclients within the instance. Configure the user account at this level if backup and restore operations will be conducted by a different person for each instance.

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Sybase.
  2. Right-click the <Instance> and click Properties.
  3. Click the Accounts tab.
  4. Type the user name in the User Name box.
  5. Type the SA user name in the SA User Name box.
  6. Type the password in the SA Account Password box and retype it in the SA Confirm Password box.
  7. Click OK.

Configuring Streams for Backups

By default, backup data is sent to media in two streams. This means that a database is sent to media during a backup in two parallel waves. This results in backup taking about half the time to complete as it otherwise would if only one stream is used.

You can increase the number of streams used for backups for a particular subclient provided the number of streams does not exceed the maximum number configured in the subclient's storage policy. Increasing the number of streams for a subclient further reduces the amount of time a backup takes to complete. For example, increasing the number of streams from 2 to 3 enhances backup time from one-half that of a single stream to one-third.

Keep in mind that the same number of streams used for performing a backup will be needed to restore the data.

  1. From the CommCell Browser, navigate to Client Computers | <Client>| Sybase | <Instance>.
  2. Right-click the <Subclient>, and then click Properties.
  3. Click the Storage Device tab.
  4. In the Number of Data Backup Streams box, type or select the number of data backup streams.
  5. Click OK.

Command Line Operations

You can add, modify, or delete several configurable properties for the Sybase iDataAgent from the command line interface.

Command line configuration enables you to:

The following sections describe the available command line configurations:

Log on to the Commserve

To run command line operations you must first login to the CommServe as follows:

Configure Instances

Create an Instance

  1. Download the CreateInstance_Template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af CreateInstance_Template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx -sybaseHome 'xxxxx' -sybaseASE xxxxx -sybaseOCS xxxxx -configFile 'xxxxx' -sharedMemoryDirectory 'xxxxx' -backupServer xxxxx -defaultDatabaseStoragePolicy/storagePolicyName xxxxx -localAdministrator/userName xxxxx -localAdministrator/password xxxxx -saUser/UserName xxxxx -saUser/password xxxxx -enableAutoDiscovery xxxxx

Modify an Instance

  1. Download the ModifyInstance_Template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af ModifyInstance_Template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx -sybaseHome 'xxxxx' -sybaseASE xxxxx -sybaseOCS xxxxx -configFile 'xxxxx' -sharedMemoryDirectory 'xxxxx' -backupServer xxxxx -saUser/userName xxxxx -enableAutoDiscovery xxxxx

Get Instance Properties

  1. Download the GetInstance_Properties_Template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af  GetInstance_Properties_Template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx

Delete an Instance

  1. Download the deleteInstance_Template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af deleteInstance_Template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx

Available Command Parameters for Instances

The following table displays all the parameters that you can use with the commands mentioned in the above sections. To add a parameter to your command, use the following syntax: (An example is provided at the end of the table.)

qoperation execute -af <template XML file> -<parameter name> <value>

Parameter Description of Parameter Values
description A general description of the instance if needed.
clientName Name of the client computer.
appName Name of the application. In this case it would be 'Sybase Database'.
instanceName Name of the Sybase instance. The instance name needs to be entered along with the client name, e.g. instance1.
backupServer Name of the Sybase Server
enableAutoDiscovery Option to enable/disable auto discovery of Sybase databases.

Valid values are True/False.

sharedMemoryDirectory Path for the shared memory files
configFile Path of the configuration file for the instance
sybaseOCS Sybase OCS environment variable
sybaseASE Sybase ASE environment variable
sybaseHome Path for the Sybase application software
local administrator userName Name of the user that has local administrator rights to administer the Sybase application. This is the account used by the user to log in to and use the application to run jobs.
password Password for the Local Administrator
saUser/userName Name of the Sybase database administrator who has permissions to perform jobs
saUser/password Password for the Sybase database administrator

The following example shows how to add a parameter for a command:

Adding Configuration file To include the configuration file for the instance, add the 'configFile' parameter to the following command:

qoperation execute -af ModifyInstance_Template.xml -appName 'Sybase Database' -instanceName instance1 -clientName client1 -configFile '/data/sybase/syb_xxx/config_file.cfg'

For detailed information on the instance parameters see Instance Properties.

Configure Subclients

Create Subclient

  1. Download the create_subclient_template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute –af create_subclient_template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx -subclientName xxxxx

Get Subclient Properties

  1. Download the get_subclient_properties_template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af get_subclient_properties_template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx -subclientName xxxxx

Modify Subclient

  1. Download the update_subclient_template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af update_subclient_template.xml -appName 'Sybase Database' -instanceName xxxxx -clientName xxxxx -subclientName xxxxx -dataBackupStoragePolicy/storagePolicyName xxxxx -contentOperationType xxxxx -sybaseContent/databaseName xxxxx

Delete Subclient

  1. Download the remove_subclient_template.xml  file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute –af remove_subclient_template.xml -appName 'Sybase Database' -clientName xxxxx -instanceName xxxxx -subclientName xxxxx

Available Command Parameters for Subclients

The following table displays all the parameters that you can use with the commands mentioned in the above sections. To add a parameter to your command, use the following syntax: (An example is provided at the end of the table.)

qoperation execute -af <template XML file> -<parameter name> <value>

Parameter Description of Parameter Values
clientName Name of the client computer.
appName Name of the application. In this case it would be 'Sybase Database'.
subclientname Name of the Sybase subclient.
contentOperationType Modification type. Valid values are
  • ADD, to add content to the subclient
  • OVERWRITE, to overwrite contents to the subclient.
  • DELETE, to delete the contents from the subclient.
backupsetName BackupSet Name. In this case it would be 'DefaultBackupset'
enableBackup Option to enable backup of Subclient.

Valid values are True/False.

storagePolicyName Name of the Storage Policy used for the backup.
sybaseContent/databaseName Databases to be backed up.
numberOfBackupStreams Option to change the number of streams for data backup.

The following examples show how to add a parameter for a command:

Adding a Database To add a database for backup, add the 'sybaseContent/databaseName' parameter to the following command:

qoperation execute -af update_subclient_template.xml -appName 'Sybase Database' -instanceName instance1 -clientName client1 -subclientName subclient1 -contentOperationType ADD -sybaseContent/databaseName db1

Setting a Storage Policy To assign a storage policy to a subclient, add the 'dataBackupStoragePolicy/storagePolicyName' parameter to the following command:

qoperation execute -af update_subclient_template.xml -appName 'Sybase Database' -instanceName instance1 -clientName client1 -subclientName subclient1 -dataBackupStoragePolicy/storagePolicyName sp1

Changing the Number of Streams for Data Backup To change the number of streams for data backup, add the 'sybaseSubclientProp/numberOfBackupStreams' parameter to the following command:

qoperation execute -af update_subclient_template.xml -appName 'Sybase Database' -instanceName instance1 -clientName client1 -subclientName subclient1 -dataBackupStoragePolicy/storagePolicyName sp1 -sybaseSubclientProp/numberOfBackupStreams 3 -contentOperationType ADD -sybaseContent/databaseName db1

For detailed information on the Subclient parameters see Subclient Properties.

List Schedule Policy Association

  1. Download the sched_policy_association_template.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute –af sched_policy_association_template.xml –taskName mypolicy

Parameter Description of Parameter Values
taskName Name of the Schedule Policy to be associated.

Modifying an Agent, Instance, or Subclient

There are several configurable properties available for your agent that can be modified from the agent, instance, or subclient level as per need.

It is recommended that that you do not modify the properties of a subclient when a job is in progress for that specific subclient. If a job is in progress, either wait for the job to complete or kill the job from the Job Controller.

The following table describes the properties that can be configured from the agent, instance, and subclient levels.

Option Description Related Topics
Change Storage Policies You can modify the storage policies in any of the following situations:
  • To include a different media for the backup operation.
  • To use a storage policy with a different retention criteria.

You can change the storage policies from the subclient level.

  1. From the CommCell Browser, right-click the subclient.
  2. Click Properties.
  3. Click Storage Device.
  4. Select the Storage policy from the drop-down menu.
  5. Click OK.
Refer to Storage Policies.
Rename a Subclient

You can rename a subclient:

  1. From the CommCell Browser, right-click the subclient.
  2. Click Properties.
  3. Type the new name in the  Subclient name field.
  4. Click OK.
 
Data Transfer Options You can efficiently configure the available resources for transferring data secured by data protection operations from the subclient level. This includes the following:
  • Enable or disable Data Compression either on the client or the MediaAgent.
  • Configure the transfer of data in the network using the options for Network Bandwidth Throttling and Network Agents.

You can configure the data transfer options.

  1. From the CommCell Browser,right-click the subclient.
  2. Click Properties.
  3. Click Storage Device.
  4. Click Data Transfer Option tab.
  5. Choose the appropriate software compression option for this subclient.
  6. Select Throttle Network Bandwidth and set the required bandwidth.
  7.  Click OK.
Refer to Data Compression and Network Bandwidth Throttling.
View Data Paths You can view the data paths associated with the primary storage policy copy of the selected storage policy or incremental storage policy. You can also modify the data paths including their priority from the subclient level.
  1. From the CommCell browser, right-click the subclient.
  2. Click Properties.
  3. Click Storage Device.
  4. Select Storage Policy from the drop-down menu.
  5. Click Data Paths.
 
Configure a Subclient for Pre/Post Processing of Data Protection You can add, modify or view Pre/Post processes for the subclient. These are batch files or shell scripts that you can run before or after certain job phases.
  1. From the CommCell browser, right-click the subclient.
  2. Click Properties.
  3. Click Pre/Post Process.
  4. Click one of the following phases and type the full path of the process that you want to execute during that phase. Alternatively, click Browse to locate the process (applicable only for paths that do not contain any spaces).
    • PreBackup Process
    • PostBackup Process
  5. Click OK.
  6. Select Run Post Backup Process for all attempts to run a post backup process for all attempts.
  7. For subclients on Windows platforms, Run As displays Not Selected.

    If you want to change the account that has permission to run these commands, click Change.

    1. In the User Account dialog box, select Use Local System Account, or select Impersonate User and enter the user name and password. click OK.
    2. If you selected Local System Account, click OK to the message advising you that commands using this account have rights to access all data on the client computer.
Refer to Pre/Post Processes.
Configure Activity Control You can enable backup and restore operations from the agent and subclient level. However, you can enable restore operations only from the agent level.
  1. From the CommCell browser, right-click the subclient.
  2. Click Properties.
  3. Click Activity Control, select or clear option(s) as desired.
  4. Click OK.
Refer to Activity Control.
Enable/Disable Data Encryption You can enable data encryption from the suclient level.Encryption must be enabled at the client level prior to configuring any instances residing on that client.
  1. From the CommCell browser, right-click the subclient.
  2. Click Properties.
  3. Click Encryption.
  4. Select the desired encryption.
  5. Click OK.
Refer to Data Encryption.
View Software Version and Installed Updates The Version tab, at the Agent level displays the software version of the component.
  1. From the CommCell browser, right-click the agent.
  2. Click Properties.
  3. Click Version.
  4. Click OK.
 
CommCell Configuration Report The CommCell Configuration Report provides the properties of the CommServe, MediaAgents, clients, agents, SRM agents, subclients, and storage policies within the CommCell based on the selected filter criteria.
  1. From the CommCell browser, click Reports icon.
  2. Select CommCell Configuration.
  3. Click Run.
Refer to CommCell Configuration.

Deleting an Agent, Instance, or Subclient

The following sections describe the steps involved in deleting an agent, instance, or subclient.

When you delete an instance or backupset, the associated data is logically deleted and you can no longer access the corresponding data from CommCell Console for recovery purposes.

Refer to the troubleshooting article on Recovering Data Associated with Deleted Clients and Storage Policies for information on how to recover data if you accidentally delete an entity.

Deleting an Agent

You need to uninstall or DeConfigure the agent software from the client computer before deleting from CommCell Browser. After you delete the client software, you can either leave the corresponding data intact for appropriate action or you can remove the data immediately. If you choose to remove the data immediately, you must delete the agent from the CommCell Browser. If you delete the agent, all of the agent's data is irretrievably lost.

  1. From the CommCell Browser, navigate to Client Computers | <Client>.
  2. Right-click the <Agent>, and then click Delete.
  3. A confirmation message is displayed with the following message:

    This operation will permanently delete the data backed up from this level and it cannot be restored.

  4. Click OK to continue with the deletion operation., or click No to abort the deletion.

Deleting an instance

Consider the following before deleting an instance:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>
  2. Right-click the <Instance> that you want to delete, point to All Tasks and then click Delete.
  3. Click Yes to confirm the deletion. (Clicking No cancels the deletion and retains the node.)
  4. Type the requested phrase in the Enter Confirmation Text dialog box and click OK. This should delete the instance.

Deleting a Subclient

Consider the following before deleting a subclient:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent> | <Instance>.
  2. Right-click the <Subclient> that you want to delete, and then click Delete.
  3. A confirmation message is displayed, asking if you want to delete the subclient.

    Click No to cancel the deletion and retain the subclient, or click Yes to continue the deletion.