[Veritas-ha] IP Issue with VCS
Espen Martinsen
Espen.Martinsen at getronics.no
Thu Mar 23 22:59:46 CST 2000
Hi, Here follows a script for
setting up one volume shared as a nfs-service-group:
I've not been able to get MultiNIC working on versions
before VCS 1.1.2 (can be downloaded from ftp.veritas.com)
("Maskin" is Norwegian for "Machine")
If anyone want's it, I have a similar script setting up an oracle
service-group on 4 shared volumes.
BEWARE: if you're using multinic, you have to proxy the agents
from one og the groups to the other, unless you are using different
physical interfaces on the services.
If you got the service up and running WITHOUT ip properly configured,
you can't have the resurces linked properly)
Send me your main.cf file, in this We can easy tell you what is wrong.
( I must be crazy, here in Norway the clock is 0600 in the morning, and
I'm still working.....)
#!/bin/sh
#
Maskin1="vxcluster1"
Maskin2="vxcluster2"
cluster="vxcluster"
cluster_IP="10.102.64.155"
cluster_NM="255.255.248.0"
Volume="nfsvol01"
Device="hme0"
DG="nfsDG"
Mountpoint="/nfs01"
hagrp="hanfs"
make_it () {
haconf -makerw
hagrp -add hanfs
hagrp -modify hanfs SystemList $Maskin1 1 $Maskin2 2
hagrp -autoenable hanfs -sys $Maskin1
#use the following lines for single-interface only:
### hares -add nfsNIC NIC $hagrp
### hares -modify nfsNIC Enabled 1
### hares -modify nfsNIC Device hme0
#-----------------------------------------------------------
### hares -add nfsIP IP $hagrp
### hares -modify nfsIP Enabled 1
### hares -modify nfsIP Device $Device
### hares -modify nfsIP Address $cluster_IP"
### hares -modify nfsIP NetMask $cluster_NM"
### hares -modify nfsIP IfconfigTwice 1
#---------------------------------------------------------
#use the following lines for MultiInterface:
hares -add nfsIPMultiNIC IPMultiNIC $hagrp
hares -modify nfsIPMultiNIC Enabled 1
hares -modify nfsIPMultiNIC Address $cluster_IP
hares -modify nfsIPMultiNIC NetMask $cluster_NM
hares -modify nfsIPMultiNIC IfconfigTwice 1
hares -modify nfsIPMultiNIC MultiNICResName nfsMultiNICA
#---------------------------------------------------------
hares -add nfsMultiNICA MultiNICA $hagrp
hares -modify nfsMultiNICA Enabled 1
hares -modify nfsMultiNICA NetMask $cluster_NM
hares -modify nfsMultiNICA ArpDelay 5
hares -modify nfsMultiNICA IfconfigTwice 1
# her skulle vi ha fortalt om base.adress pe hme0 og qfe3
hares -modify nfsMultiNICA Device hme0 10.102.64.151 qfe3 10.102.64.151 -sys vx
cluster1
hares -modify nfsMultiNICA Device hme0 10.102.64.152 qfe3 10.102.64.152 -sys vx
cluster2
#---------------------------------------------------------
hares -add nfsDG DiskGroup $hagrp
hares -modify nfsDG Enabled 1
hares -modify nfsDG DiskGroup $DG
hares -modify nfsDG StartVolumes 0
#---------------------------------------------------------
hares -add nfsVOL Volume $hagrp
hares -modify nfsVOL Enabled 1
hares -modify nfsVOL Volume $Volume
hares -modify nfsVOL DiskGroup $DG
#---------------------------------------------------------
hares -add nfsMOUNT Mount $hagrp
hares -modify nfsMOUNT Enabled 1
hares -modify nfsMOUNT MountPoint $Mountpoint
hares -modify nfsMOUNT BlockDevice /dev/vx/dsk/$DG/$Volume
hares -modify nfsMOUNT Type vxfs
#---------------------------------------------------------
hares -add nfsNFS NFS $hagrp
hares -modify nfsNFS Enabled 1
hares -modify nfsNFS Nservers 24
#----------------------------------------------------------
hares -add nfsSHARE Share $hagrp
hares -modify nfsSHARE Enabled 1
hares -modify nfsSHARE PathName $Mountpoint
hares -modify nfsSHARE OnlineNFSRestart 1
hares -modify nfsSHARE Options " -o rw,root=lillesand"
#----------------------------------------------------------
#
#Ferdig med config, linker og lager mountpoint:
mkdir $Mountpoint
rsh $Maskin2 mkdir $Mountpoint
# single interface : hares -link nfsIP nfsNIC
# single interface : hares -link nfsSHARE nfsIP
# Multiple Inerface:
hares -link nfsIPMultiNIC nfsMultiNICA
hares -link nfsSHARE nfsIPMultiNIC
hares -link nfsVOL nfsDG
hares -link nfsMOUNT nfsVOL
hares -link nfsSHARE nfsMOUNT
hares -link nfsSHARE nfsNFS
haconf -dump -makero
}
#se gjxr vi jobben:
make_it
#done !
Mvh
------------------------------------------------------------
Espen Martinsen Tlf: +47 22 18 59 35 / +47 22 18 58 00
Sjefskonsulent Kundestøtte Mob: 915 88 485
Getronics Norge AS, Managed Services Fax: +47 22 18 59 90
Sognsvn. 75, pb 3885, Ullevaal Stadion, N-0805 OSLO, Norway
Email: Espen.Martinsen at getronics.no
------------------------------------------------------------
(PADI OWD 87191) http://www.pogostick.net/~esm
More information about the Veritas-ha
mailing list