Versions: 1.0.1, 1.0.2, 1.1, 1.1.1, 1.1.2, 1.3.0 (The difference
between 1.1.1 og 1.1.2 is just VRTSgab)
HEARTBEAT:
1) heartbeat is on layer 2,
with LLT /GAB (Low Latency Transport/Group Atomic Broadcast)
Script-setup
NFS Script-setup
ORACLE S_delete
group tuning-script
v.01
Home MADE Agents Diverse info/setup
Simple Setup(before 1.3.0) (I've never tried this):
cd
/opt/VRTSvcs/wizards/config
./quick_start
Simple Setup(from 1.3.0) (even install the packages for you, but NOT the
clusterManager(gui))
cd /cdrom/cdrom0
./VCSinstall
manuel setup:
make /etc/llttab and /etc/llthosts /etc/gabtab
#cat /etc/llttab:(before 1.3.0)
set-node VXcluster1
link
qfe0 /dev/qfe:0
link qfe1 /dev/qfe:1
start
#cat /etc/llttab:(from 1.3.0)
set-node VXcluster1
set-cluster 0
link link1 /dev/qfe:0 - ether - -
link link2 /dev/qfe:1 - ether - -
start
# cat /etc/llthosts
0 VXcluster1
1 VXcluster2
Will be started from /etc/rc2.d/S68llt
#cat /etc/gabtab
/sbin/gabconfig -c -n 2
GAB is started from /etc/rc.d/S92gab
test av LLT/GAB:
On system A:
#/opt/VRTSllt/llttest -p
<port>
>receive -c <count>
On system B:
#/opt/VRTSllt/llttest -p <port>
>transmit
-n <dest-node-ID> -c <count>
>exit
DISKHEARTBEAT: This can be done in 2 ways:
1) global,
by GAB
2) pr. hagrp, its own resource , DiskGroupHB
1: needs 128blocks (64kb) of a disk
#hahpsetup c1t3d0
(reinitialize) Can still be used by VxVM
heartbeat slice 7,
private slice 3, public slice 4
Settes i /etc/rc2.d/S92gab:
/sbin/gabdisk -a
/dev/rdsk/c1t3d0s7 -s 16 -p a
/sbin/gabdisk -a
/dev/rdsk/c1t3d0s7 -s 144 -p h
blocks 0-15: partition-table
blocks 16-143: Seed port a
blocks
144-271: VCS port h
/etc/VRTSvcs/conf/sysname holds "the name of the node" this does not need to be the same as 'nodename' but why not?
#cat /etc/VRTSvcs/conf/config/main.cf
include "types.cf" (Has
to be copied from /etc/VRTSvcs/conf
cluster <clustername>
snmp
<clustername>
system VXcluster1
system VXcluster2
Example of a CONFIG:
Making a servicegroup,
imports a diskgroup, starts a volume, mounts it and share it
Machines: VXcluster1, VXcluster2
cluster: VXcluster (193.216.23.205)
Volume: Vol01, dg= DataDG
Mountpoint: /export
ha(service)-group: hanfs
VXcluster1# haconf -makerw
# hagrp -add hanfs
group added;
populating SystemList and setting the Parallel attribute recommended
before adding resources
# hagrp -modify hanfs SystemList
VXcluster1 1 VXcluster2 2
# hagrp -autoenable hanfs -sys VXcluster1
#
#---------------------------------------------------------
# hares
-add nfsNIC NIC hanfs
resource added
NameRule and Enabled
attributes must be set before agent monitors
# hares -modify nfsNIC Enabled
1
# hares -modify nfsNIC Device hme0
##-----------------------------------------------------------
# hares
-add nfsIP IP hanfs
resource added
NameRule and Enabled attributes must
be set before agent monitors
# hares -modify nfsIP Enabled 1
# hares
-modify nfsIP Device hme0
# hares -modify nfsIP Address 193.216.23.205
#
hares -modify nfsIP IfconfigTwice 1
#
#---------------------------------------------------------
# hares -add
nfsDG DiskGroup hanfs
resource added
NameRule and Enabled attributes
must be set before agent monitors
# hares -modify nfsDG Enabled 1
#
hares -modify nfsDG DiskGroup DataDG
# hares -modify nfsDG StartVolumes 0
# #---------------------------------------------------------
#
# hares -add nfsVOL Volume hanfs
resource added
NameRule and Enabled
attributes must be set before agent monitors
# hares -modify nfsVOL Enabled
1
# hares -modify nfsVOL Volume Vol01
# hares -modify nfsVOL DiskGroup
DataDG
# #---------------------------------------------------------
#
hares -add nfsMOUNT Mount hanfs
resource added
NameRule and Enabled
attributes must be set before agent monitors
# hares -modify nfsMOUNT
Enabled 1
# hares -modify nfsMOUNT MountPoint /export
# hares -modify
nfsMOUNT BlockDevice /dev/vx/dsk/DataDG/vol01
# hares -modify nfsMOUNT Type
vxfs
# #---------------------------------------------------------
#
hares -add nfsNFS NFS hanfs
resource added
NameRule and Enabled
attributes must be set before agent monitors
# hares -modify nfsNFS Enabled
1
# hares -modify nfsNFS Nservers 24
#
#----------------------------------------------------------
# hares -add
nfsSHARE Share hanfs
resource added
NameRule and Enabled attributes must
be set before agent monitors
# hares -modify nfsSHARE Enabled 1
# hares
-modify nfsSHARE PathName /export
# hares -modify nfsSHARE OnlineNFSRestart
1
# hares -modify nfsSHARE Options " -o rw,root=VxConsole"
# Finnished with config, make links and mountpoints:
# mkdir /export
# hares -link nfsIP nfsnic
# hares -link nfsVOL nfsDG
# hares -link
nfsMOUNT nfsVOL
# hares -link nfsSHARE nfsIP
# hares -link nfsSHARE
nfsMOUNT
# hares -link nfsSHARE nfsNFS
#haconf -dump -makero
- Resource MultiNIC will do network-failover (like nafo in SunCLuster)
########################################################################
MANUALS:
hastart: VCS: usage:
had [-ts]
had [-ts] -stale
had [-ts] -force
had -help
had -version
hastop: usage:
hastop -local [-force|-evacuate]
hastop -sys <system> ....
[-force|-evacuate]
hastop -all
-force
hastop -all
hastop [-help]
# hatype -help
usage:
hatype -add
<type>
hatype -delete
<type>
hatype -display
[<type>]
hatype -resources
<type>
hatype -list
hatype [-help [-modify]]
#
hatype -list
Types:
CLARiiON
Disk
DiskGroup
ElifNone
FileNone
FileOnOff
FileOnOnly
IP
IPMultiNIC
Mount
MultiNICA
NFS
NIC
Phantom
Process
Proxy
ServiceGroupHB
Share
Volume
1# hares -help
usage:
hares -add <res>
<type> <group>
hares
-local <res> <attr>
hares -global <res> <attr> <value> ... | <key> ... |
{<key> <value>} ...
hares -delete <res>
hares
-link <res> <child>
hares -unlink <res> <child>
hares -clear <res> [-sys
<system>]
hares -online
<res> -sys <system>
hares -offline <res> -sys <system>
hares -offprop <res> -sys
<system>
hares -state
<res> -sys <system>
hares -display [<res>]
hares -list
hares [-help
[-modify]]
# hares -help -modify
SCALAR:
hares -modify <resource>
<attr> <value> [-sys <system>]
VECTOR:
hares -modify <resource>
<attr> <value> ... [-sys <system>]
hares -modify <resource>
<attr> -add <value> ... [-sys <system>]
hares -modify <resource>
<attr> -delete -keys [-sys <system>]
NOTE: You cannot delete an
individual element of a VECTOR
KEYLIST:
hares -modify
<resource> <attr> <key> ... [-sys <system>]
hares -modify <resource>
<attr> -add <key> ... [-sys <system>]
hares -modify <resource>
<attr> -delete <key> ... [-sys <system>]
hares -modify <resource>
<attr> -delete -keys [-sys <system>]
ASSOCIATION:
hares -modify <resource>
<attr> {<key> <value>} ... [-sys <system>]
hares -modify <resource>
<attr> -add {<key> <value>} ... [-sys <system>]
hares -modify <resource>
<attr> -update {<key> <value>} ... [-sys <system>]
hares -modify <resource>
<attr> -delete <key> ... [-sys <system>]
hares -modify <resource>
<attr> -delete -keys [-sys <system>]
# hagrp -help
usage:
hagrp -add <group>
hagrp -delete <group>
hagrp -link <group>
<group> <relationship>
hagrp -unlink <group>
<group>
hagrp -online
<group> -sys <system>
hagrp -offline <group> -sys <system>
hagrp -state <group> -sys
<system>
hagrp -switch
<group> -to <system>
hagrp -freeze <group> [-persistent]
hagrp -unfreeze <group>
[-persistent]
hagrp -enable
<group> [-sys <system>]
hagrp -disable <group>
[-sys <system>]
hagrp
-display [<group>]
hagrp
-resources <group>
hagrp
-list
hagrp -enableresources
<group>
hagrp
-disableresources <group>
hagrp -flush <group> -sys <system>
hagrp -autoenable <group>
-sys <system>
hagrp [-help
[-modify]]
hagrp [-help [-link]]
# hagrp -modify -help
usage:
SCALAR:
hagrp -modify <group>
<attr> <value> [-sys <system>]
VECTOR:
hagrp -modify <group>
<attr> <value> ... [-sys <system>]
hagrp -modify <group>
<attr> -add <value> ... [-sys <system>]
hagrp -modify <group>
<attr> -delete -keys [-sys <system>]
NOTE: You cannot delete an
individual element of a VECTOR
KEYLIST:
hagrp -modify
<group> <attr> <key> ... [-sys <system>]
hagrp -modify <group>
<attr> -add <key> ... [-sys <system>]
hagrp -modify <group>
<attr> -delete <key> ... [-sys <system>]
hagrp -modify <group>
<attr> -delete -keys [-sys <system>]
ASSOCIATION:
hagrp -modify <group>
<attr> {<key> <value>} ... [-sys <system>]
hagrp -modify <group>
<attr> -add {<key> <value>} ... [-sys <system> ]
hagrp -modify <group>
<attr> -update {<key> <value>} ... [-sys <system>]
hagrp -modify <group>
<attr> -delete <key> ... [-sys <system>]
hagrp -modify <group>
<attr> -delete -keys [-sys <system>]
# hagrp -link -help
usage:
hagrp -link
<group1> <group2> online global
hagrp -link <group1>
<group2> online local
hagrp
-link <group1> <group2> online remote
hagrp -link <group1>
<group2> offline local
# hastatus: usage:
hastatus
[-sound]
hastatus -summary
hastatus [-sound] -group
<group> [ -group <group> ... ]
# haconf: usage:
haconf -makerw
haconf -dump [-makero]
haconf -help
GUI:
Its own package, can be installed anywhere
/opt/VRSTvcs/bin/hagui
/optVRTSvcs/bin/hauser -help
usage:
hauser -add
<username>
hauser -update
<username>
hauser -delete
<username>
hauser -help
# hadebug -help
usage:
hadebug -handle
hadebug -hash
[hashname]
hadebug -memory
hadebug -ping
hadebug -startmatch
hadebug -stopmatch
hadebug -time
hadebug -help
# haagent -help
usage:
haagent -start
<agent> -sys <system>
haagent -stop <agent> -sys <system>
haagent -display [<agent>]
haagent -list
haagent [-help]
# hasys -help
usage:
hasys -add <sys>
hasys -delete <sys>
hasys -freeze [-persistent]
[-evacuate] <sys>
hasys
-unfreeze [-persistent] <sys>
hasys -display [<sys>]
hasys -force <sys>
hasys -load <sys>
<value>
hasys -state
<sys>
hasys -list
hasys -nodeid [<nodeid>]
hasys [-help [-modify]]
WIZARDS:
/opt/VRTSvcs/wizards/config/quick_start: set up llt+GAB
/opt/VRTSvcs/wizards/services/quick_nfs: sets up 2 NFS-groups