Professional Documents
Culture Documents
ES-331
Copyright © 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this
product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any.
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun Logo, Sun Enterprise, Sun StorEdge Volume Manager, Solstice DiskSuite, Solaris Operating Environment, Sun StorEdge A5000,
Solstice SyMon, NFS, JumpStart, Sun VTS, OpenBoot, and AnswerBook are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other
countries.
All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products
bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts
of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox
to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written
license agreements.
U.S. Government approval required when exporting the product.
RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Govt is subject to restrictions of FAR 52.227-14(g) (2)(6/87) and FAR 52.227-19(6/87), or DFAR
252.227-7015 (b)(6/95) and DFAR 227.7202-3(a).
DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS, AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Sun Cluster
High Availability Data Service API .................................................................................13-1
Module Overview ................................................................................................................................. 13-2
Overview ................................................................................................................................................ 13-3
Data Service Requirements .................................................................................................................. 13-4
Reconfiguration Overview .................................................................................................................. 13-5
Data Service Methods ........................................................................................................................... 13-6
Giveaway and Takeaway ..................................................................................................................... 13-7
START and STOP Method Examples ................................................................................................. 13-8
Data Service Dependencies ............................................................................................................... 13-10
The haget Command ......................................................................................................................... 13-11
The hactl Command ......................................................................................................................... 13-12
The halockrun Command ................................................................................................................ 13-13
The hatimerun Command ................................................................................................................ 13-14
Exercise ................................................................................................................................................. 13-15
Check Your Progress .......................................................................................................................... 13-16
Think Beyond ...................................................................................................................................... 13-17
Preface
Course Goal
This course provides you with knowledge and skills to install
and administer a Sun Enterprise™ Cluster system running
Sun Cluster 2.2 software.
Course Overview
• Sun Enterprise Cluster hardware configuration
• Sun Cluster software installation
• Sun Cluster software configuration
• Sun Enterprise Cluster operation
• System failure recovery
Sun Cluster
Overview
Installation
Operation
Recovery
System
Recovery
High Availability
Module-by-Module Overview
• Module 1 – "Sun Cluster Overview"
• Module 2 – "Terminal Concentrator"
• Module 3 – "Administration Workstation Installation"
• Module 4 – "Preinstallation Configuration"
• Module 5 – "Cluster Host Software Installation"
• Module 6 – "System Operation"
• Module 7 – "Volume Management Using CVM and
SSVM"
Module-by-Module Overview
• Module 8 - "Cluster Configuration Database"
• Module 9 - "Public Network Management"
• Module 10 - "Logical Hosts"
• Module 11 - "The HA-NFS Data Service"
• Module 12 - "System Recovery"
• Module 13 - "Sun Cluster High Availability Data Service
API"
• Module 14 - "Highly Available DBMS"
Course Objectives
• Describe major Sun Cluster components and functions
Course Objectives
• Configure environmental variables for correct Sun
Cluster operation
Course Objectives
• Create and configure logical hosts
Module
Skills Gained 1 2 3 4
Skill or Objective 1
Skill or Objective 2
Skill or Objective 3
Skill or Objective 4
Introductions
• Name
• Company affiliation
• Title, function, and job responsibility
• Clustered systems experience
• Reasons for enrolling in this course
• Expectations for this course
Additional resources
Discussion
Exercise objective
Caution
!
Warning
Module 1
Overview
• Objectives
• Relevance
Public network
Terminal Concentrator
Private network
Public network
Node 0 Node 1
hme0 hme1 hme0 hme1
Application Application
Private networks
Volume Volume
manager manager
Primary Mirror
data data
Cluster Configurations
Highly Available Data Service Parallel Database
Application A Application B
data data Database data
• Parallel databases
Logical Hosts
Node 0 Node 1
ifconfig
Network Access
start
Application
Primary: Node 0
Backup: Node 1 Lhost_1
import
Disk group information
ccd.database ccd.database
Disk
group
Fault Monitoring
Public network Node 0 Node 1
PNM PNM
Node 0 Node 1
CMM CMM
Data Service check
SMA SMA
check Heartbeats
Disk Disk
management Consistency management
CDB CDB
Consistency
CCD CCD
Heartbeat
Fiber-optic CMM CMM Fiber-optic
channels channels
Heartbeat
SMA SMA
Network Network
Private networks
driver driver
Think Beyond
What are some of the most common problems encountered
during cluster installation?
How does a cluster installation proceed? What do you need to
do first?
Do you need to be a database expert to administer a Sun
Enterprise Cluster system?
Module 2
Terminal Concentrator
Module Overview
• Objectives
• Relevance
• Terminal Concentrator
Administration
Tools
Network
Terminal Concentrator
Network
Setup interface
Serial ports
port
1 2 3 4 5 6 7 8
Serial port A
Node 0 Node 1
Setup device
PROM
Network Operating system
interface
OPER_52_ENET.SYS
Serial ports
Setup
port 1 2 3 4 5 6 7 8
Serial port A
Node 0 Node 1
Setup device
1 2 3 4 5 6 7 8
STATUS
Terminal Concentrator
Troubleshooting
• Use the telnet command to manually connect to a
node
• Use the telnet command to abort a node
• Use the terminal concentrator help command
• Use the who and reset commands to free a port
• Use the erase command to reset the password
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
Is there a significant danger if the TC port variables are not set
correctly?
Is the Terminal Concentrator a single point of failure? What
would happen if it failed?
Module 3
Administrative Workstation
Overview
• Objectives
• Relevance
Sol_7 Sol_2.6
Cluster
Volume Manager
Administration
workstation
Solaris 2.6/7
Sun Cluster
client software
Network
Node 0 Node 1
system system
hardware hardware
Choices:
manual Interactively install each package
automatic Install the selected packages with no user interaction.
Administration Workstation
Environment
• Environmental changes after client software
installation:
• New search and man page paths
• Host name resolution changes
• Remote login control
• Remote display enabling
• rsh and rcp access control
host X
No Is user JD in Yes
/etc/passwd?
Yes Is user JD
a superuser?
No
Is host A in Yes
/etc/hosts.equiv?
No
Access allowed
Is host A in
$HOME/.rhosts? Yes
No Yes
rlogin Password Password
Command? prompt correct?
rcp rsh No
Login prompt
Access denied
Administration workstation
Administration
tools
Network
Terminal concentrator
Network Serial ports
interface 1 2 3 4 5 6 7 8
Serial port A
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
What is the advantage of the /etc/clusters and
/etc/serialports files?
Why is the Cluster SNMP agent installed on the
administrative workstation?
What is the impact on the cluster if the administrative
workstation is not available? What would you do for backup?
Module 4
Preinstallation Configuration
Module Overview
• Objectives
• Relevance
Cluster Topologies
• Scalable
• Ring
• N+1
• Clustered pairs
• Shared-nothing
Cluster Topologies
CIS switch
or hub
A B A B A B A B
Array Array Array Array
Cluster Topologies
Node 0
Node 2
Cluster Topologies
CIS switch
or hub
A B A B A B
Array Array Array
Cluster Topologies
CIS switch
or hub
A B A B A B A B
Array Array Array Array
Cluster Topologies
CIS switch
or hub
a0 a1 b0 b1
A5000 storage
array
Reserve Reserve
A B
Q
Reserve Reserve
Controller
A Q B
A B A B A B
Resource Resource Resource
1 2 3
Abort
TC
2 3 4 5 6 Node 3
interconnect
failure
H
U
B
Node 0 Node 1 Node 2 Node 3
Node 0 Node 1
System board hme0 hme0 System board
• Point-to-point connections
204.152.65.33 204.152.65.35
204.152.65.34 204.152.65.36
Node 0 Node 1
primary
hme0 hme0
System board or or System board
scid0 scid0
backup
hme1 hme1
System board or or System board
scid1 scid1
23
System board scid1 scid1 System board
Scrubber jumper
On
Off
Scrubber on
Node 0 Scrubber off
Node 1
Scrubber on
Scrubber off
Node 0 Node 1
Hub 0
System board hme0 hme0 System board
Node 2 Node 3
Hub 1
System board hme0 hme0 System board
Node 0
Node 1 Monitor
primary
pnmd ifconfig
backup
ccd
/etc/pnmconfig
NAFO group
IP address NAFO group
configuration
In the following you will be prompted to do configuration for network adapter failover
Node 0 Node 1
ccd.database ccd.database
Intrlv. Intrlv.
Brd Bank MB Status Condition Speed Factor With
--- ----- ---- ------- ---------- ----- ------- -------
0 0 256 Active OK 60ns 2-way A
2 0 256 Active OK 60ns 2-way A
Bus Freq
Brd Type MHz Slot Name Model
--- ---- ---- ---- --------------------- --------------
1 SBus 25 0 DOLPHIN,sci
1 SBus 25 1 qec/be (network) SUNW,270-2450
1 SBus 25 2 QLGC,isp/sd (block) QLGC,ISP1000U
1 SBus 25 3 SUNW,hme
1 SBus 25 3 SUNW,fas/sd (block)
1 SBus 25 13 SUNW,soc/SUNW,pln 501-2069
Detached Boards
===============
Slot State Type Info
---- -------- ----- -----------------------------
7 disabled disk Disk 0: Target: 14 Disk 1: Target: 15
TPE Fast/Wide
10/100 SCSI
FCOM FCOM
SBus 0 SBus 1
# luxadm probe
Found
SENA Name:d Node WWN:5080020000011df0
Logical Path:/dev/es/ses0
Logical Path:/dev/es/ses1
SENA Name:a Node WWN:50800200000291d8
Logical Path:/dev/es/ses2
Logical Path:/dev/es/ses3
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
What additional preparation might be necessary before
installing the Sun Cluster host software?
Module 5
Module Overview
• Objectives
• Relevance
Sun_Cluster_2_2
Sol_7 Sol_2.6
scinstall
(Installation script)
Administration
workstation
Solaris 2.6/7
Sun Cluster
client software
Network
Node 0 Node 1
system system
hardware hardware
---------WARNING---------
Solstice DiskSuite (SDS) will need to be installed before the cluster can be
started.
TC
1 2 3 4 5 6
1) SSA:000000779A16
2) SSA:000000741430
3) DISK:c0t1d0s2:01799413
Quorum device: 1
...
SSA with WWN 000000779A16 has been chosen as the quorum device.
A B A B A B
Resource Resource Resource
1 2 3
lowest -- The subset containing the node with the lowest node ID value automatically
becomes the new cluster. All other subsets must be manually aborted.
highest -- The subset containing the node with the highest node ID value automatically
becomes the new cluster. All other subsets must be manually aborted.
Select the selection policy for handling partitions (lowest|highest) [lowest]: highest
Application Configuration
• Highly available data services
• Highly available databases
• Parallel databases
Application Configuration
==== Select Data Services Menu ====================
Please select which of the following data services are to be installed onto this cluster.
Select singly, or in a space separated list.
Note: HA-NFS and Informix Parallel Server (XPS) are installed automatically with the
Server Framework.
Post-Installation Configuration
• Verify installation
• Configure new software directory paths
• Complete SCI interconnect installation
• Install Sun Cluster patches
Post-Installation Configuration
# scconf sc-cluster -p
/etc/opt/SUNWcluster/conf/sc-cluster.cdb
Checking node status...
Post-Installation Configuration
Cluster is configured as = SC
HOST 0 = sec-0
HOST 1 = sec-1
HOST 2 = _%sec-2
HOST 3 = _%sec-3
Netmask = f0
Post-Installation Configuration
Cluster is configured as = SC
HOST 0 = sec-0
HOST 1 = sec-1
HOST 2 = sec-2
Netmask = f0
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
As you add additional nodes to the cluster, what might you
need to do on the existing nodes? Can you do this while the
nodes are running?
What kinds of configuration changes need to be made
simultaneously on all nodes? How can you tell? What would
happen if you did not make them simultaneously?
What would happen if you did not specify any quorum
devices or use failure fencing?
Module 6
System Operation
Module Overview
• Objectives
• Relevance
• hastat Command
Administration workstation
Custer Control
Panel
Network
Terminal Concentrator
Network
interface
Serial ports
Node 0
uptime of sc-node0:
12:47am up 1:38, 1 user,
load average: 0.14, 0.12, 0.10
uptime of sc-node1:
12:47am up 1:37, 1 user,
load average: 0.16, 0.12, 0.10
uptime of sc-node2:
12:50am up 1:38, 1 user,
load average: 0.16, 0.12, 0.10
None
Feb 2 00:24:20 sc-node0 unix: sbusmem51 at sbus3: SBus3 slot 0x3 offset 0x0
Feb 2 00:24:20 sc-node0 unix: sbusmem51 is /sbus@7,0/sbusmem@3,0
Feb 2 00:36:31 sc-node0 ID[SUNWcluster.ha.hareg.2004]: Service dns is registered
Feb 2 00:24:22 sc-node1 unix: sbusmem45 at sbus2: SBus2 slot 0xd offset 0x0
Feb 2 00:24:22 sc-node1 unix: sbusmem45 is /sbus@6,0/sbusmem@d,0
Feb 2 00:24:22 sc-node1 unix: sbusmem48 at sbus3: SBus3 slot 0x0 offset 0x0
Feb 2 00:27:05 sc-node2 unix: sbusmem13 at sbus0: SBus0 slot 0xd offset 0x0
Feb 2 00:27:05 sc-node2 unix: sbusmem13 is /sbus@1f,0/sbusmem@d,0
Feb 2 00:27:05 sc-node2 unix: sbusmem14 at sbus0: SBus0 slot 0xe offset 0x0
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
What would it be like to administer a cluster with 16 nodes
and 200 storage arrays?
What would it be like to administer a cluster with each cluster
member located in a different city?
How does SNMP in general interact with the cluster
environment?
Module 7
Module Overview
• Objectives
• Relevance
Volume 01
Blocks 1000 – 3000
Private region
Configuration and
management information
Public region
Data Storage
SCSI
c1
SOC
c2
rootvol rootmirror
newdg
disk group
Storage Array
Disk group
Storage array
Disk group
Storage array
# vxdisk list
Host system
Drive
Drive
Drive
SOC Controller
card C1
SOC Controller
Drive
Drive
Drive
card C2
DMP
driver
fiber-optic
interface
Think Beyond
Where does Volume Manager recovery fit into the high
availability environment?
What planning issues are required for the Volume Manager in
the high availability environment?
Is the use of the Volume Manager required for high
availability functionality?
Module 8
Module Overview
• Objectives
• Relevance
SCI switch
Freeze Freeze
ccdd ccdd ccdd
Propagate Propagate
(Master)
Update
request
Node 0 Node 1
ccd.database ccd.database
Please, select the disks you want to use from the following
list:
1) SSA:00000078C8A0
2) SSA:000000722F83
Device 1: 1
1) t0d0
2) t0d1
3) t0d2
Disk: 3
1) SSA:00000078C8A0
2) SSA:000000722F83
Device 2: 2
1) t0d2
Disk:
1) t0d2
Disk: 1
CCD Administration
The ccdadm command is used for CCD maintenance and is
used to:
• Verify global CCD consistency
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
When would you disable the CCD update quorum
requirement?
What would it take to have information defined for all nodes,
even if the nodes are offline?
Module 9
Module Overview
• Objectives
• Relevance
PNM Overview
• Adapter failover
• IP address failover
• Continuous fault monitoring
• Backup group configuration
• Interface support
Network
Node 0
Node 1 Monitor
primary
pnmd ifconfig
backup
ccd
/etc/pnmconfig
NAFO group
IP address NAFO group
configuration
• Local adapter
• Remote adapter
• Network
• Take or request appropriate recovery action
In the following, you will be prompted to do configuration for network adapter failover
hme1 is active
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Think Beyond
Are there other system components that would benefit from
the approach taken to network adapters by PNM?
What are the advantages and disadvantages of automatic
adapter failover? Manual adapter failover?
How will IP striping affect this model? Can you realize the
dual goals of higher throughput and high availability through
PNM/NAFO for the network connections?
Module 10
Logical Hosts
Module Overview
• Objectives
• Relevance
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 2 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Logical Hosts
• Collection of network definitions and disk storage
• Highly available data services require a logical host
• Routines for logical host failover
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 3 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Logical Host
Client workstation
# ping ds_host
# mount dshost:/Vol-02
Network
Node 0 Node 1
Data service
Logical hostname: recovery routines
dshost
129.50.20.3 Detect Node 0 failure
Import dg3 disk group
NAFO Group fsck and mount Vol-02
Ifconfig dshost IP address
Other recovery routines
Vol-02
volume
Disk group: dg3
lhost2
Primary: Node 0
Backup: Node 1 information
ccd.database
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 4 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 5 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 6 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 7 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 8 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 9 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 10 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 11 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 12 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Think Beyond
If the concept of a logical host did not exist, what would that
imply for failover?
What complexities does having multiple backup hosts for a
single logical host add to the high availability environment?
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 10, slide 13 of 13
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Module 11
Module Overview
• Objectives
• Relevance
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 2 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Objectives
• Describe the function of HA-NFS support files
• List the primary functions of HA-NFS start and stop
methods
• List the primary functions of HA-NFS fault monitoring
probes
• Configure HA-NFS in a Sun Cluster environment
• Add and remove HA-NFS file systems
• Switch a HA-NFS logical host between systems
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 3 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
HA-NFS Overview
• Completely transparent to NFS™ clients
• No client impact
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 4 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
User applications
NFS
Start methods
Stop methods
HA-NFS NFS-oriented
fault monitoring
HA Framework
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 5 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 6 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 7 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 8 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Fault Probes
Public net
Service
(such as HTTP)
Remoteeprobe
Private net
Localprobe
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 9 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 10 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 11 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 12 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
phys-hostA phys-hostB
check
Data service
check Local
fault Remote
monitor fault
monitor
giveaway
takeaway
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 13 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
• nfs_probe_loghost
• nfs_mon
• nfs_probe_local_start
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 14 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 15 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 16 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 17 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 18 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 19 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Think Beyond
Are there restrictions on the file systems HA-NFS can
support?
What types of NFS operations (if any) might be more difficult
in the HA-NFS environment?
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 11, slide 20 of 20
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Module 12
System Recovery
Module Overview
• Objectives
• Relevance
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 2 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 3 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Cluster
Reconfiguration Control
Node 0 Node 1
SMA SMA
DBMS DBMS
CMM CMM
Heartbeats
Updates
ccdd ccdd
Disk Disk
management PNM PNM management
FF FF
Fiber-optic Fiber-optic
channels Fault Fault channels
monitor monitor
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 4 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 5 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Cluster Failfast Driver
Node 0
Critical daemon
Critical operation
Kernel driver: ff OK
Failfast timeout
reconf_ener
Reboot
Cluster
configuration
dependent
steps
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 6 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 7 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Cluster
Reconfiguration Sequence
Operator commands Status change detected
reconf_ener
Disk Management
Monitor and
Virtual volumes
disable structures
Resync volumes
UNIX
File system recovery
Reboot after panic
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 8 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 9 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Cluster
Reconfiguration Steps
CIS
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 10 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 11 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 12 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 13 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
phys-hostA phys-hostB
check
Data service
check Local
fault Remote
monitor fault
monitor
giveaway
takeaway
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 14 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 15 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 16 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Think Beyond
What are the issues for split-brain failures with more than two
modes?
Is it safe to have two “subclusters” running in a nominal four-
node cluster?
What procedures should be documented for operations
personnel?
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 12, slide 17 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Module 13
Sun Cluster
High Availability Data Service API
Module Overview
• Objectives
• Relevance
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 2 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Overview
User applications
Client-server
data service
C library
Sun Cluster Command–line
utilities
High Availability API
High Availability
framework
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 3 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 4 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Reconfiguration Overview
Logical Host Coming Down Logical Host Coming Up
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 5 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 6 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Public network
phys-hostA phys-hostB
check
Data service
check Local
fault Remote
monitor fault
monitor
giveaway
takeaway
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 7 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
mars venus
phys-mars phys-venus
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 8 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
venus
mars
phys-mars phys-venus
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 9 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
B: START A: STOP_NET
A: START B: STOP_NET
B: START_NET A: STOP
A: START_NET B: STOP
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 10 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 11 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 12 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 13 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 14 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 15 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 16 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Think Beyond
Are there other methods that might be needed for some data
services? What would they be?
Are there ways to make a non-HA compliant data service
work with HA?
How would you debug HA API problems when you were
developing your data service?
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 13, slide 17 of 17
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Module 14
Module Overview
• Objectives
• Relevance
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 2 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 3 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
i1 i2 Private net i3
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 4 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 5 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 6 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 7 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 8 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 9 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 10 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Configuration Overview
• Never start the database manually
• Only the cluster framework should start the DBMS
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 11 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 12 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 13 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 14 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 15 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
HA-DBMS Control
• Fault monitoring configuration information
• Stored in CCD
• Use haoracle/hasybase/hainformix insert
• Command variations for each HA-DBMS
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 16 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
• As in a node crash
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 17 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
HA-DBMS Recovery
• Clients and applications must be prepared
• Transaction monitors can help with disruption
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 18 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
• Sybase
• sybtab, hasybase_config_V1
• Informix
• inftab, hainformix_config_V1
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 19 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Exercise
• Objectives
• Tasks
• Discussion
• Solutions
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 20 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 21 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Sun Educational Services
Think Beyond
Are there services associated with HA-DBMS that should be
highly available?
Are there advantages to using multiple disk groups with the
HA-DBMS?
Do you need application-specific fault probes for an HA-
DBMS environment? Why or why not?
Why is the quorum mechanism so important with HA-
DBMS?
Sun Enterprise Cluster Administration – Veritas Volume Manager Module 14, slide 22 of 22
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services October 1999 Revision A
Copyright © 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this
product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any.
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun Logo, Sun Enterprise, Sun StorEdge Volume Manager, Solstice DiskSuite, Solaris Operating Environment, Sun StorEdge A5000,
Solstice SyMon, NFS, JumpStart, Sun VTS, OpenBoot, and AnswerBook are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other
countries.
All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products
bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts
of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox
to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written
license agreements.
U.S. Government approval required when exporting the product.
RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Govt is subject to restrictions of FAR 52.227-14(g) (2)(6/87) and FAR 52.227-19(6/87), or DFAR
252.227-7015 (b)(6/95) and DFAR 227.7202-3(a).
DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS, AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.