Download Chapter 1 TrueCopy Agent for VERITAS Cluster Server

Transcript
To configure the CCI instance on server BETA:
1. Select the mirror device (i.e., the secondary volume (S-VOL) of the TrueCopy pair). For
this example, /dev/rdsk/c2t0d23s0 on server BETA is selected (refer to Figure 3.2).
2. Create a mount point for the device: #mkdir /test0
3. Create the configuration definition file for the CCI instance:
a) Use the “inqraid” command to find the command device. In this example, device
c2t0d24s2 is the command device (“-CM” is appended to the product ID).
#ls /dev/rdsk/* |/HORCM/usr/bin/inqraid –CLI
DEVICE_FILE
PORT
SERIAL LDEV CTG H/M/12 SSID R:Group PRODUCT_ID
c0t0d0s2
- ST34371W SUN4.2G
c0t1d0s2
- ST34371W SUN4.2G
c0t6d0s2
- c2t0d3s2
CL1-A
63039
3
- s/s/ss 6001 5:02-03 OPEN-9
-SUN
c2t0d4s2
CL1-A
63039
4
- s/s/ss 6001 5:02-03 OPEN-9
-SUN
c2t0d23s2
CL1-A
63039
23
- s/s/ss 6001 5:02-03 OPEN-9
-SUN
c2t0d24s2
CL1-A
63039
24
OPEN-9-CM
b) Make a copy of the sample configuration file “horcm.conf” in the /etc directory.
Copy this file as “horcm0.conf”: #cp /etc/horcm.conf /etc/horcm0.conf
c) Edit the “horcm0.conf” file to add the HORCM_MON and HORCM_CMD information:
#/************************ For HORCM_MON ************************************/
HORCM_MON
#ip_address
service
poll(10ms)
timeout(10ms)
beta
horcm0
1000
3000
#
#/************************* For HORCM_CMD ***********************************/
HORCM_CMD
#dev_name
dev_name
dev_name
/dev/rdsk/c2t0d24s2
#
#/************************* For HORCM_DEV ***********************************/
HORCM_DEV
#dev_group
dev_name
port#
TargetID
LU#
MU#
#
#/************************ For HORCM_INST ***********************************/
HORCM_INST
#dev_group
ip_addess
service
d) Edit the “/etc/services” file to set up the service port name and number (add the
following line). You must use a unique number for the horcm service port number.
You must also perform the same update to each server’s services file.
#horcm0
horcm0
NNNN/udp
12345/udp
#horcm0 service port number NNNN
#horcm0 services port number 12345
e) Start the CCI instance. This creates “horcm0.conf” so the instance number is “0”:
#horcmstart.sh 0
starting HORCM inst 0
HORCM inst 0 starts successfully.
18
Chapter 3 Installing the TrueCopy Agent