OPERATION

COMMANDS/UTILITIES

 

 

DLPI

 

Get MAC address

/opt/VRTSllt/getmac /dev/qe:0

Set up server test

/opt/VRTSllt/dlpiping -vs /dev/qe:0

Set up client test

/opt/VRTSllt/dlpiping -vc /dev/qe:0 mac_sys_remote

 

 

 

 

(Low Latency Transport) LLT

Start LLT

/sbin/lltconfig -c

Stop LLT (GAB needs to be stopped)

/sbin/lltconfig -U

Unload LLT from kernel

modinfo | grep llt

modunload -i mod_id

Display LLT stats

/sbin/lltstat -l

/sbin/lltstat -n

/sbin/lltstat -vvn

Start LLT server test

/opt/VRTSllt/llttest -p a

receive -c 1000

q

Start LLT client test

/opt/VRTSllt/llttest -p a

transmit -n det_node_id -c 1000

q

 

(Group Atomic Broadcast) GAB

 

Start GAB

/sbin/gabconfig -c

Stop GAB

/sbin/gabconfig -U

Unload GAB from kernel

modinfo | grep gab

modunload -i mod_id

Display GAB

/sbin/gabconfig -a

Manual seed GAB

/sbin/gabconfig -c -x

Start GAB if three nodes are up

/sbin/gabconfig -c -n 3

Display gabdisks

/sbin/gabdisk -l

Initialise a disk for VxVM & GAB

/opt/VRTSvcs/bin/hahbsetup c1t1d0

 

 

 

 

 

Cluster Configuration

Verify configuration

hacf -verify /etc/VRTSvcs/conf/config

Make main.cf 'nice'

hacf -generate /etc/VRTSvcs/conf/config

Convert main.cf to main.cmd

hacf -cftocmd /etc/VRTSvcs/conf/config

Convert main.cmd to main.cf

hacf -cmdtocf /etc/VRTSvcs/conf/config

 

 


 

 

 

Cluster Control

Start on local system

hastart

Start with stale configuration

hastart -force

Start and set configuration to stale

hastart -stale

stop on local system

hastop -local

stop on all systems

hastop -all

force stop on all systems

hastop -all -force

stop on specific system

hastop -sys sysname

 

 

 

 

 

Changing configuration online

Make  configuration READ/WRITE

haconf -makerw

Dump running configuration to file

haconf -dump

Make configuration READ only

haconf -dump -makero

 

 

 

 

 


 

 

 

Service group control

Start service group on a system

hagrp -online service_group -sys system_name

Stop a service group on a system

hagrp -offline service_group -sys system_name

Switch a service group to another system

hagrp -switch service_group -to system_name

Display a service group

hagrp ûdisplay service_group

Freeze a service group (persistent)

hagrp -freeze service_group -persistent

Thaw a service group

Persistent

hagrp -thaw service_group -persistent

Create a dependency between groups

hagrp -link parent_group child_group dependency

List resources in a group

hagrp  -resources group_name

 

 

Resource Control

Take a resource offline

hares -offline sybase_ip ûsys tom

Modify a resource online (must be RW)

hares -modify sybase_ip Address "195.10.10.1"

Put a resource back online

hares -online sybase_ip ûsys tom

 

 

 

 

Change a resource to be non-critical

hares -modify sybase_fs Critical 0

Clear a faulted resource

hares -clear resource_name -sys system_name

Create a resource dependency

hares -link sybase_ip sybase_NIC

 

 

 


 

 

Type Control

Change the restart limit of a Process type  to 1

hatype -modify Process RestartLimit 1

Change the monitoring interval of a mount type resource

hatype -modify Mount MonitorInterval 120

Enable full debugging on IP resource

hatype -modify IP LogLevel all

 


 

GUI admin

Create a user

hauser -add username

Create a Read-only user

hauser -add VCSGuest

Start GUI

/opt/VRTSvcs/bin/hagui

 

 

 

 

 

VCS example configuration files:

 

1.       /etc/llttab

 

set-node           /etc/nodename

set-cluster        1

exclude             3-31

link  link0 /dev/qfe:0 û ether - -

link  link1 /dev/qfe:4 û ether - -

link-lowpri hme0 /dev/hme:0 û ether - -

start

 

2.       /etc/llthosts

 

1                     tom

2                     jerry

 


1.       /etc/VRTSvcs/conf/config/main.cf

 

include "types.cf"

include ôOracleTypes.cfö

 

cluster chertsey (

                UserNames = { tony = cDvWrTLJxqtoo }

                LogSize = 5000000

                Factor = { runque = 5, memory = 1, disk = 10, cpu = 25,

                network = 5 }

                MaxFactor = { runque = 100, memory = 10, disk = 100, cpu = 100,

                network = 100 }

        )

 

system tom

 

system jerry

 

snmp chertsey (

        TrapList = { 1 = "A new system has joined the VCS Cluster",

                 2 = "An existing system has changed its state",

                 3 = "A service group has changed its state",

                 4 = "One or more heartbeat links has gone down",

                 5 = "An HA service has done a manual restart",

                 6 = "An HA service has been manually idled",

                 7 = "An HA service has been successfully started" }

        )

 

group nfs_grp (

                SystemList = { tom, jerry }

                AutoStartList = { jerry}

                )

       

                DiskGroup nfs_dg (

                                DiskGroup = nfsdg

                                )

                IP nfs_ip (

                                Device = hme1

                                Address = "195.10.10.2"

                                )

       

                Mount nfs_fs (

                                MountPoint = "/nfs"

                                BlockDevice = "/dev/vx/dsk/nfsdg/nfs"

                                FSType = vxfs

                                )

       

                NIC nfs_nic (

                                Device = hme0

                                NetworkType = ether

                                )

       

                Volume nfs_vol (

                                Volume = nfs

                                DiskGroup = nfsdg

                                )

       

                NFS nfs_nfs (

                )

       

                Share nfs_share (

                                PathName="/nfs"

                                Options ="-o rw,root=client1"

                )

                nfs_share requires nfs_fs

                nfs_share requires nfs_nfs

                nfs_ip requires nfs_share

                nfs_fs requires nfs_vol

                nfs_vol requires nfs_dg

                nfs_ip requires nfs_nic

 

group oragrp (

                SystemList = { tom, jerry }

                AutoStartList = { jerry }

                )

 

                DiskGroup ora_dg (

                                DiskGroup = oradg

                                )

 

                IP oras_ip (

                                Device = hme1

                                Address = "195.10.10.10"

                                )

 

                Mount oracle_mnt (

                                MountPoint = "/oracle"

                                BlockDevice = "/dev/vx/dsk/oradg/oracle"

                                FSType = vxfs

                                MountOpt = rw

                                )

 

                NIC ora_nic (

                                Device = hme1

                                NetworkType = ether

                                )

 

                Oracle ora_PAYROLL(

                                Sid = PAYROLL

                                Owner = oracle

                                Home = "/oracle"

                                Pfile = "/oracle/dbs/initPAYROLL.ora"

                                User = test

                                Pword = test123

                                Table = testtable

                                MonScript = "./bin/Oracle/SqlTest.pl"

                                )

 

                Sqlnet LISTENER (

                                Critical = 0

                                Owner = oracle

                                Home = "/oracle"

                                TnsAdmin = "/oracle/network/admin"

                                Listener = LISTENER

                                MonScript = "./bin/Sqlnet/LsnrTest.pl"

                                )

 

                LISTENER requires ora_PAYROLL

                LISTENER requires ora_ip

                ora_1234 requires oracle_PAYROLL

                ora_1234 requires ora_ip

                ora_1234 requires oradg

                oras_ip requires oragrp_nic

 

2.       /etc/gabtab

 

#Start gab if two nodes are up

/sbin/gabconfig -c -n 2

#gabdisk setup (heartbeat disks)

/sbin/gabdisk -a /dev/rdsk/c1t1d0s7 -p a -s 0

/sbin/gabdisk -a /dev/rdsk/c1t1d0s7 -p h -s 128

/sbin/gabdisk -a /dev/rdsk/c2t1d0s7 -p a -s 0

/sbin/gabdisk -a /dev/rdsk/c2t1d0s7 -p h -s 128

 

VCS for NT:

 

Locations

C:\Program Files\VERITAS\comms\llt\llttab.txt

C:\ Program Files\VERITAS\comms\llt\llthosts.txt

C:\Program Files\VERITAS\comms\gab\gabtab.txt

C:\Program Files\VERITAS\cluster server\conf\config\main.cf

C:\Program Files\VERITAS\cluster server\bin

C:\Program Files\VERITAS\cluster server\log

 

Utils

C:\Program Files\VERITAS\cluster server\bin\GetDrive > DriveInfo.txt

C:\Program Files\VERITAS\cluster server\bin\ipchange

 

VCS NT services

VERITAS High availability engine

VERITAS VCSComm Startup (GAB & LLT)

VERITAS Command Server

 

gabtab.txt:

gabconfig ûc ûx (default)

gabdisk ûa \Device\Harddisk0\Partition1 ûs 0 ûp a

 

 

 

Manually starting VCS/NT components

load LLT kernel

net start llt

Start LLT

lltconfig -c

Load Gab kernel

net start gab

Start GAB

gabconfig -c [ -x | -n 2 ]

Start VCS

Note ônet start hadö will also start LLT & GAB if not started

hastart or net start had

 

 

 

 

Manually stopping VCS/NT components

Stop VCS

hastop -local

Stop GAB

gabconfig-u

Unload GAB kernel

net stop GAB

Unload LLT

net stop llt