VERITAS Cluster Server For UNIX, Fundamentals: Lesson 6 VCS Configuration Methods
VERITAS Cluster Server For UNIX, Fundamentals: Lesson 6 VCS Configuration Methods
Fundamentals
Lesson 6
VCS Configuration Methods
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: Sharing Network Interfaces
Lesson 11: Configuring Notification
Lesson 12: Configuring VCS Response to Faults
Lesson 13: Cluster Communications
Lesson 14: System and Communication Faults
Lesson 15: I/O Fencing
Lesson 16: Troubleshooting
Lesson Topics and Objectives
S1 S2
Local Build Current_
Cluster No config in
Discover
Conf memory
_Wait
4
2 main.cf main.cf 6
had had
hashadow hashadow
5
1
hastart 3 7 hastart
VCS Startup Behavior (continued)
S1 S2
Running Remote
Cluster
Cluster Cluster Build
Conf
Conf Conf
10
main.cf main.cf
had had
hashadow hashadow
8 9
had had
had had
3 hastop –all -force
1 hastop -local
S1 S2
S1 S2 had had
had had
4 hastop -all
2 hastop -local -evacuate
Modifying VCS Shutdown Behavior
The EngineShutdown cluster attribute controls hastop.
Value Behavior
Enable (default) Process all hastop commands.
hagrp –add …
Config
Config
In-memory
configuration In-memory
configuration
Opening the Cluster Configuration
1 ReadOnly=0
haconf -makerw Shared cluster configuration
in memory
hares –modify ... .
2 In-memory configuration
main.cf not equal to main.cf
main.cf
Saving the Cluster Configuration
main.cf main.cf
Closing the Cluster Configuration
main.cf main.cf
ls –l /etc/VRTSvcs/conf/config/main*
-rw------ 2 root other 5992 Oct 10 12:07 main.cf
-rw------ 1 root root 5039 Oct 8 8:01 main.cf.08Oct2006...
-rw------ 2 root other 5051 Oct 9 17:58 main.cf.09Oct2006...
-rw------ 2 root other 5992 Oct 10 12:07 main.cf.10Oct2006...
-rw------ 1 root other 6859 Oct 11 7:43 main.cf.autobackup
-rw------ 2 root other 5051 Oct 9 17:58 main.cf.previous
Topic 4: Offline Configuration
group DB3 (
SystemList = {S3=1,S4=2}
AutoStartList = {S3}
DB1 DB2 )
main.cf
S1 S2
Cluster1 DB3 DB4
main.cf
group DB1 (
SystemList = {S1=1,S2=2}
AutoStartList = {S1}
S3 S4
) Cluster2
Example 2: Reusing a Service Group Definition
Service Group Definition Sample Value
Service Group Definition Sample Value
Group TestSG
Group AppSG
Required Attributes
Required Attributes
FailoverPolicy Priority
FailoverPolicy Priority
SystemList S1=0, S2=1
SystemList S1=0, S2=1
Optional Attributes
Optional Attributes
AutoStartList S1
AutoStartList S1
TestProcess
AppProcess
Test
Mount App
TestIP
AppIP Mount
Test TestVol
AppVol
NIC App
TestDG NIC
AppDG
Topic 5: Controlling Access to VCS
Answer
The main.cf file is the configuration file used
by _______ at startup.
A. GAB
B. LLT
C.hashadow
D.had
The correct answer is D.
Next >>
You have decided that each application
manager is to have full access to only their
service groups. Which VCS user category
would you assign to each application manager?
A. Cluster Operator
B. Group Administrator
C. Group Operator
D. Service Administrator
Answer
You have decided that each application
manager is to have full access to only their
service groups. Which VCS user category
would you assign to each application manager?
A. Cluster Operator
B. Group Administrator
C. Group Operator
D. Service Administrator
The correct answer is B.
Next >>
You would like to provide read-only access
using the VCS Java GUI to users who are in the
UNIX group named vcsreaders. How would
you do this?
A. Change the UNIX group ownership for hagui to
vcsreaders.
B. VCS GUIs cannot be restricted to read-only
access.
C. Add each user to VCS in the Cluster Guest
category.
D. These users must use Web-based access to VCS.
Answer
You would like to provide read-only access
using the VCS Java GUI to users who are in the
UNIX group named vcsreaders. How would
you do this?
A. Change the UNIX group ownership for hagui to
vcsreaders.
B. VCS GUIs cannot be restricted to read-only
access.
C. Add each user to VCS in the Cluster Guest
category.
D. These users must use Web-based access to VCS.
The correct answer is C.
Next >>
You want to stop VCS on one system but leave
applications running. Which command line
do you use?
A. hastop -all -force
B. hastop -all -migrate
C. hastop -all -evacuate
D. hastop –local –force
Answer
You want to stop VCS on one system but leave
applications running. Which command line do
you use?
A. hastop -all -force
B. hastop -all -migrate
C. hastop -all -evacuate
D. hastop –local -force
The correct answer is D.
Next >>
If you want to be warned that the configuration
is open if you try to stop VCS:
A. Set EngineShutdown to Disable.
B. Do not use the –force -all option to
hastop.
C. Set ReadOnly to No.
D. Use the –warn option to hastop.
Answer
If you want to be warned that the configuration
is open if you try to stop VCS:
A. Set EngineShutdown to Disable.
B. Do not use the –force option to hastop.
C. Set ReadOnly to No.
D. Use the –warn option to hastop.
Next >>
Lab 6: Starting and Stopping VCS
vcs1
train1 train2
haconf -makerw
main.cf main.cf
.stale .stale
Next
Saving the Cluster Configuration
haconf -dump
main.cf main.cf
.stale .stale
Next
Closing the Cluster Configuration
main.cf
main.cf
2 .stale .stale
Back
How VCS Protects the Cluster Configuration
The stale flag:
Is a protection mechanism for online configuration
Indicates that the in-memory configuration may not
match the main.cf file on disk
Back
How VCS Starts Up by Default (4.x)
S1 S2
Local Build Current_
Cluster No config in
Discover
Conf memory
_Wait
5
3 main.cf main.cf 8
2 .stale .stale 7
had had
hashadow hashadow
6
1
hastart 4 9 hastart
Next
Next System Startup
S1 S2
Running Remote
Cluster
Cluster Cluster Build
Conf
Conf Conf
12
main.cf main.cf
had had
hashadow hashadow
10 11
Next
VCS Startup with a .stale File (4.x)
S1 S2
Stale Unknown
No config in
admin
memory
wait
5
3 main.cf main.cf
2 .stale .stale
had
hashadow
1 hastart 4
Next
Forcing VCS to Start from a Wait State (4.x)
S1 S2
Local Build Waiting
Cluster No config in
for a
Conf memory
running
6 config
5
1 main.cf main.cf
4 .stale .stale
had had
hashadow hashadow
3 hasys –force S1
S1 S2
Running Remote
Cluster
Cluster Cluster Build
Conf
Conf Conf
10
main.cf main.cf
9
.stale
had had
hashadow hashadow
7 8
Back