dataserver

For the Cluster Edition, several parameters have been added to the dataserver utility for starting and configuring a cluster.

Syntax

This is the complete syntax for the dataserver command:

dataserver
-u, --admin-name=sa/sso_name 
     --buildquorum=[force] 
-a, --caps-file=filename 
-F, --cluster-input=filename 
     --cluster-takeover 
-L, --conn-config-file=[filename] 
     --create-cluster-id [=quorum]
-D, --default-db-size=size_spec 
-e, --error-log=[filename] 
-G, --event-log-server=logserv_name 
-f, --forcebuild 
-H, --ha-server 
-h, --help=[{0|1|2|3}[,display_width]]
     --instance=instance_name  
-y, --key-password=[key_password]  
-K, --keytab-file=filename
-N, --license-prop-file=filename 
-z, --logical-page-size=page_size 
-Z, --master-db-size=size_spec     
-d, --master-dev=master_device_name 
-b, --master-dev-size=[size_spec]    
-r, --master-mirror=filename   
-m, --masterrecover    
-g, --no-event-logging   
-Q, --quorum-dev=quorum_dev       
-q, --recover-quiesced    
-w, --rewrite-db=database_name      
-p, --sa-name={SSO_login_account | sso_role | sa_role} 
-k, --server-principal=s_principal 
-M, --shared-mem-dir=directory_name  
-X, --sybmon                     
-T, --trace=trace_flag     
-v, --version 

Parameters

See the Utilities Guide for a complete description of the dataserver parameters.

Examples

Example 1 Create a new master and quorum device. The parameters in this example specify a 500 megabyte master device with a four kilobyte logical page size. The location of the master device, interface configuration file, interfaces path, and error log are specified in the cluster input file mycluster.inp. The name of the instance creating the quorum and master devices is "myase1":

dataserver --quorum-dev=/dev/raw/raw101 --buildquorum --cluster-input=mycluster.inp --logical-page-size=4K --master-dev-size=500M --instance=myase1

After the master database is built and the server is shut down, you can restart the instance with this:

dataserver --quorum-dev=/dev/raw/raw101 --instance=myase1

Example 2 Starts the instance myase2 as part of the cluster created in Example 1:

dataserver --quorum-dev=/dev/raw/raw101 --instance=myase2

Example 3 Recreates the quorum device for mycluster without overwriting the master device (starting the instance "myase1"). The cluster must be shutdown before rebuilding the quorum.:

dataserver --quorum-dev=/dev/raw/raw101 --buildquorum --cluster-input=mycluster.inp  --instance=myase1

Reload the cluster configuration from the mycluster.inp input file without recreating the quorum device or the master device (the cluster must be shutdown first):

dataserver --quorum-dev=/dev/raw/raw101 --cluster-input=mycluster.inp 
--instance=myase1

Usage

Resetting the SSO, sa_role, and sso_role passwords

Because Adaptive Server stores its passwords using a secure, one-way hash algorithm, you cannot recover forgotten passwords. The dataserver -p parameter generates new passwords for the system security officer login accounts and the system security officer (sso_role) and system administrator (sa_role) role accounts. Perform one of the following to reset the password:

  1. Restart any instance with dataserver -p parameter.

  2. Add a new instance with the dataserver -p parameter.

You must use the most recently generated password if more than one instance generates the password using the dataserver -p parameter. Once the Cluster Edition generates the password, reset the password to a more secure one.