Escolar Documentos
Profissional Documentos
Cultura Documentos
Entities
Cluster Highest level entity which contains all service groups supported across all related systems
that have membership within a specific cluster implementation. The database cluster contains several
systems(hosts) used to support the database server in the event of failure of the system running the
database. There is a database cluster and for some implementations there may be an application server
cluster.
Service Group A service group is a logical grouping of resources. There is a service group called
oracle-ha-grp within the database cluster. There is a service group called APP-Serv within the
application server cluster.
System a system is one node within a service group. A machine is usually a system. In a two node
system there are two systems. Ideally one should be in an ONLINE state, the other in an OFFLINE
state. Failovers are from one system to another. Veritas will detect the failure of one system and bring
the other online.
Resource Any service, program, hardware, volume manager object or other entity within the
computing environment placed under the control of the cluster within a Service Group.
To start Cluster
hastart -force
This will try to start the vcs cluster on a particular node/system
To Clear Fault
hagrp clear <service group name> -sys <system name>
for example for the database systems:
hagrp clear oracle-ha-grp -sys pcsvcs-db1
for the app server:
hagrp clear APP-Serv sys pcsvcs-as1
To Bring a Service Group Offline and Online
hagrp online <service group name> -sys <system name>
for example for the database systems:
hagrp offline oracle-ha-grp -sys pcsvcs-db1
hagrp online oracle-ha-grp -sys pcsvcs-db1
for the app server:
hagrp offline APP-Serv sys pcsvcs-as1
hagrp online APP-Serv sys pcsvcs-as1
To Switch a System
hagrp switch <service group name> -to <system name>
for example, assume the database has failed over and you want to bring the processing database back to the
primary machine:
hagrp switch oracle-ha-grp -to pcsvcs-db1
To Stop a System
hastop [-all]
hastop will shut down a system
hastop all will shut down all systems within a cluster
VCS Directories
Installation:
Logs:
/var/VRTSvcs/log
(engine_0.log oracle_0.log)
Configuration files:
/etc/VRTSvcs/conf/config (main.cf)
vmsa &
DISK
rootdisk
rootmirror
c3t0
c3t1
c3t8
c3t9
c4t0
c4t1
c4t8
c4t9
-
GROUP
rootdg
rootdg
oradg
oradg
oradg
oradg
oradg
oradg
oradg
oradg
-
STATUS
online
online
online failing
online failing
online
online
online
online
online
online
online
online
NOTE: The above output shows two disk flagged as failing. This status indicates that communication was lost
at one point with the disk but has been restored. This status can be cleared and the disks monitored. If it recurrs
there is an underlying problem with the disk and it most likely needs to be replaced.
To clear the failed status for a disk
vxedit -g diskgroupname set failing=off diskname
or in this case
vxedit -g oradg set failing=off c3t0
vxedit -g oradg set failing=off c3t1
voldata-01
len=10498504 contiglen=10498120
layout=STRIPE columns=4 width=128
state=ACTIVE kernel=ENABLED io=read-write
vol=voldata sd=c3t0-15,c3t1-15,c3t8-15,c3t9-15
busy complete
Plex:
info:
type:
state:
assoc:
flags:
voldata-02
len=10498504 contiglen=10498120
layout=STRIPE columns=4 width=128
state=ACTIVE kernel=ENABLED io=read-write
vol=voldata sd=c4t0-15,c4t1-15,c4t8-15,c4t9-15
busy complete
?
??
q
-makerw
-modify MultiNICA MonitorInterval 60
-modify MultiNICA MonitorTimeout 60
-dump -makero