You are on page 1of 23

Veritas Cluster Server 6.

0 for UNIX:
Install and Configure
Lesson 5: VCS Operations

Lesson introduction

Lesson 1: High Availability Concepts


Lesson 2: VCS Building Blocks
Lesson 3: Preparing a Site for VCS
Lesson 4: Installing VCS
Lesson 5: VCS Operations
Lesson 6: VCS Configuration Methods
Lesson 7: Preparing Services for VCS
Lesson 8: Online Configuration
Lesson 9: Offline Configuration
Lesson 10: Configuring Notification
Lesson 11: Handling Resource Faults
Lesson 12: Intelligent Monitoring Framework
Lesson 12: Cluster Communications
Lesson 14: Data Protection using SCSI 3 I/O
Fencing
Lesson 15: Coordination Point Server

Lesson objectives

Topic

Objectives

Common VCS tools


and operations

Perform common cluster administrative


operations.

Service group
operations

Manage applications under control of VCS


service groups.

Resource operations

Manage resources within VCS service


groups.

Using the VCS


Simulator

Use the VCS Simulator to learn about VCS.

Common VCS tools


and operations
After completing this topic, you
will be able to perform common
cluster administrative operations.

VCS management tools


http://go.symantec.com/vom/

CLI
Command-line
interface
Suited for
local cluster
management

VOM
Veritas
Operations
Manager
Suited for large
numbers of
clusters
Management
for all Storage
Foundation
products

Java GUI
Deprecated
Ongoing
support only
for Windows
Needed for
using
Simulator

http://go.symantec.com/vcsm_download/

VCS Simulator
Create,
model, and
test cluster
configurations
Cannot
manage a
running
cluster
configuration

Displaying cluster status


Determine the state of the cluster at a point in time:
hastatus sum
Display current status of all objects and subsequent configuration and
state changes:
hastatus

Displaying logs
VCS log file location: /var/VRTSvcs/log
HAD (engine) log: engine_A.log
Java GUI command log:
Is useful for learning the CLI
Can be used to create batch files
Is cleared when you log out of the GUI
Viewing log files
UNIX utilities:
tail, pg, more, view
VCS hamsg utility:
hamsg -help

Displaying object information


hares display resource

Display service group


information:

hares list condition

hagrp display group

hares value resource attr

hagrp list condition

hares state resource

hagrp value group attribute

Display resource information:

hagrp state group

Getting Help

Command-line syntax:

ha_command help

man ha_command

Bundled Agents Reference Guide

Service group
operations
After completing this topic, you
will be able to perform common
VCS service group operations.

Bringing service groups online


Service groups are brought
online:
websg

Manually, after maintenance

webapache

Automatically, when VCS is started

Resources are brought online in


order from bottom to top.

webip

Persistent resources do not affect


service group state.

webni
c

webmnt
webvol
webdg

Online

hagrp -online

Taking service groups offline


Service groups are taken
offline:
Manually, for
maintenance
Automatically, when VCS
is stopped or during
failover

Resources are taken


offline in order from top
to bottom.
A service group is offline
when all nonpersistent
resources are offline.

websg
Offline
webip
webni
c

webapache
webmnt
webvol
webdg

hagrp -offline

Switching service groups


You can switch a service group between
systems to:

Test failover
Migrate services for maintenance
S2

VCS:
1.

Takes resources offline on system S1.

2.

Brings resources online on system S2.

S1

Only resources online on system S1


are brought online on system S2.

hagrp -switch

Example: Switching websg

hastatus

Freezing a service group


Freeze a service group to prevent offline, online, or
failover actions even if a resource faults causing the
group to fault.
Temporary
Only in effect
until VCS
restarts
TFrozen=1

Persistent
Remains in
effect through
VCS restarts
Frozen=1

Example
Administrator
can start and
stop an
application
outside of VCS
control

When frozen, VCS does not take action on the service


group even if you cause a concurrency violation by
bringing the service online on another system outside of
VCS.
hagrp -freeze

Application management practices


Direct VCS not to
intervene:

Use VCS to start and


stop the application.
or

1. Freeze the service group.


2. Perform administrative
operations outside of VCS.
3. Unfreeze the service group
to re-enable VCS control.

You can mistakenly cause problems if you


manipulate resources outside of VCS, such
as forcing faults:
Causing failover and downtime
Preventing failover

Resource operations
After completing this topic, you
will be able to perform common
operations on resources in a
service group.

Bringing resources online


Resources are brought
online:

websg

Automatically, when a service


group is brought online
Manually, after maintenance
In dependency order from
bottom

Agent runs the online entry


point

Online
entryexample:
point runs
Disk
group online
specific
startup
operations
vxdg
t import
webdatadb

webip
webni
c

webapache
webmnt
webvol
webdg

Online

hares -online

Taking resources offline


Resources are taken offline:
Automatically, when a service
group is taken offline

dboracle

dbsg

Manually, for maintenance


In dependency order from top

dbip

dbmnt

dbnic

dbvol

Agent runs the offline entry point


Offline entry point runs specific
shutdown operations

dbdg

Database offline example:


sqlplus "/as sysdba"
shutdown immediate
hares -offline

Using the VCS


Simulator
After completing this topic, you
will be able to use the VCS
Simulator to practice managing
the cluster.

Using the VCS Simulator


The VCS Simulator enables you to:
Learn how to manage VCS using predefined clusters.
Create and test new cluster configurations.
Simulate faults to see how VCS responds.
Use the Java GUI or the Simulator-specific command-line
interface.
Simulator software is:
http://go.symantec.com/vcsm_download/
Downloadable from Symantec:

Installable on Windows only


Packaged with the Java GUI

Simulator Java Console


Use the Simulator Java Console to:
Start and stop
sample Simulator
configurations.
Launch the Cluster
Manager Java
Console.
Create new
Simulator
configurations.
Verify configuration
file syntax.
Delete Simulator
configurations.
VCS
Simulator online guide:
https://sort.symantec.com/public/documents/sfha/5.1sp1/linux/
productguides/html/vcs_admin/ch08.htm

Lesson summary
Key points
Use VCS tools to manage applications under VCS control.
The VCS Simulator can be used to practice managing
resources and service groups.

Reference materials
SORT downloads:
http://go.symantec.com/vcsm_download/
http://go.symantec.com/vom/

Symantec Connect: symantec.com/connect


Veritas Cluster Server Release Notes
Veritas Cluster Server Users Guide

End of Presentation