OPERATION OPERATIONCOMMANDS/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 kernelmodinfo | 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 kernelmodinfo | 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 configurationhacf -verify /etc/VRTSvcs/conf/config Make main.cf 'nice'hacf -generate /etc/VRTSvcs/conf/config Convert main.cf to main.cmdhacf -cftocmd /etc/VRTSvcs/conf/config Convert main.cmd to main.cfhacf -cmdtocf /etc/VRTSvcs/conf/config Cluster Control Start on local systemhastart Start with stale configurationhastart -force Start and set configuration to stalehastart -stale stop on local systemhastop -local stop on all systemshastop -all force stop on all systemshastop -all -force stop on specific systemhastop -sys sysname Changing configuration online Make configuration READ/WRITEhaconf -makerw Dump running configuration to filehaconf -dump Service group control Start service group on a systemhagrp -online service_group -sys system_name Stop a service group on a systemhagrp -offline service_group -sys system_name Switch a service group to another systemhagrp -switch service_group -to system_name Display a service grouphagrp -display service_group Freeze a service group (persistent)hagrp -freeze service_group -persistent Thaw a service group Persistenthagrp -thaw service_group -persistent Create a dependency between groupshagrp -link parent_group child_group dependency List resources in a grouphagrp -resources group_name Resource Control Take a resource offlinehares -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 onlinehares -online sybase_ip -sys tom Change a resource to be non-criticalhares -modify sybase_fs Critical 0 Clear a faulted resourcehares -clear resource_name -sys system_name Create a resource dependencyhares -link sybase_ip sybase_NIC Type Control Change the restart limit of a Process type to 1hatype -modify Process RestartLimit 1 Change the monitoring interval of a mount type resourcehatype -modify Mount MonitorInterval 120 Enable full debugging on IP resourcehatype -modify IP LogLevel all GUI admin Create a userhauser -add username Create a Read-only userhauser -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 qfe0 /dev/qfe:0 - ether - - link qfe4 /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 kernelnet start llt Start LLTlltconfig -c Load Gab kernelnet start gab Start GABgabconfig -c [ -x | -n 2 ] Start VCS Note "net start had" will also start LLT & GAB if not startedhastart or net start had Manually stopping VCS/NT components Stop VCShastop -local Stop GABgabconfig-u Unload GAB kernelnet stop GAB Unload LLTnet stop llt