Beruflich Dokumente
Kultur Dokumente
cover
HACMP System
Administration I: Planning and
Implementation
(Course Code AU54)
Student Exercises
with Hints
ERC 6.0
Trademarks
IBM is a registered trademark of International Business Machines Corporation.
The following are trademarks of International Business Machines Corporation in the United
States, or other countries, or both:
AIX AIX5L DB2
DB2 Universal Database eServer Enterprise Storage Server
HACMP iSeries NetView
Notes POWER4+ POWER5
pSeries Redbooks RS/6000
SP Tivoli TotalStorage
WebSphere
Think is a trademark or registered trademark of Lenovo in the United States, other
countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the
United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft
Corporation in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other company, product and service names may be trademarks or service marks of others.
The information contained in this document has not been submitted to any formal IBM test and is distributed on an as is basis without
any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer
responsibility and depends on the customers ability to evaluate and integrate them into the customers operational environment. While
each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will
result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.
Copyright International Business Machines Corporation 1998, 2005. All rights reserved.
This document may not be reproduced in whole or in part without the prior written permission of IBM.
Note to U.S. Government Users Documentation related to restricted rights Use, duplication or disclosure is subject to restrictions
set forth in GSA ADP Schedule Contract with IBM Corp.
V3.1.0.1
Student Exercises with Hints
TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
TMK Trademarks
The reader should recognize that the following terms, which appear in the content of this
training document, are official trademarks of IBM or other companies:
IBM is a registered trademark of International Business Machines Corporation.
The following are trademarks of International Business Machines Corporation in the United
States, or other countries, or both:
AIX AIX 5L DB2
DB2 Universal Database eServer Enterprise Storage Server
HACMP iSeries NetView
Notes POWER4+ POWER5
pSeries Redbooks RS/6000
SP Tivoli TotalStorage
WebSphere
Think is a trademark or registered trademark of Lenovo in the United States, other
countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the
United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft
Corporation in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other company, product and service names may be trademarks or service marks of others.
Text highlighting
The following text highlighting conventions are used throughout this book:
Bold Identifies file names, file paths, directories, user names and
principals.
Italics Identifies links to Web sites, publication titles, is used where the
word or phrase is meant to stand out from the surrounding text,
and identifies parameters whose actual names or values are to
be supplied by the user.
Monospace Identifies attributes, variables, file listings, SMIT menus, code
examples of text similar to what you might see displayed,
examples of portions of program code similar to what you might
write as a programmer, and messages from the system.
Monospace bold Identifies commands, daemons, menu paths, and what the user
would enter in examples of commands and SMIT menus.
Introduction
The scenario that the exercises are based on is a company which is
amalgamating its computer sites to a single location. It is intended to
consolidate computer sites from two cities into one situated roughly in
the middle of the original two. The case study has been designed
around five randomly chosen countries in the world. These countries
and city configurations have been tested in our environment but we
offer the choice to use your own. On to the scenario.
You will also checkout your lab environment in this exercise.
Required Materials
Your imagination.
Paper or a section of a white board.
Lab setup
EXempty
hdisk0 VIO L1 L2 CL L3
en0
rootvg en1
hdisk1
en2
vdisks
ent
en2 = console session
HMC
In this environment:
a. The console is now an IP address that will NOT be used by HACMP
b. An X session (full screen) is via the VNC software
c. All adapters (Ethernet and disk) in the HACMP nodes are virtual.
If you are not running in this environment please ask the instructor for any additional
checking such as access to the shared disks. There may be some differences if not running
in this environment
END OF LAB
Introduction
Lab scenario
The systems provided are to be the new systems for the consolidated
computer center. You must prepare these systems to be the
replacements of the production systems.
In this exercise, you will be examining and configuring the shared
storage for your high availability solution.
You will be using the On Line Planning Worksheets (OLPW)
application to document your configuration. However, since it is useful
to have a paper copy of the cluster configuration to refer to as you are
doing the exercises and since most classrooms do not have a printer,
you will also be filling out the Cluster Component Worksheets on
page 16.
Lab equipment
There may be differences between the documentation and the real
machines in the classroom environment. The systems have been
selected to provide a consistent experience but a variety of equipment
may be used.
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty
Label = Label =
non-IP
Device = Device =
network
rootvg VG = rootvg
disk =
disk =
VG =
disk =
disk =
Copyright IBM Corporation 2005
Naming Conventions
In this exercise guide, we suggest a naming convention for the class
exercises. Your instructor may ask that you follow a different
convention. For the sake of your instructors sanity, please follow the
naming conventions suggested in the exercises or the naming
convention he or she requests that you use.
- Cluster name
You will use your team number to create your cluster name in the
OLPW application:
team#
where # is replaced by your team number.
- Network names and addresses
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Each team will have two cluster nodes and one client system. We use
a naming convention based on three Canadian cities and your team
number:
t#hallifax node1
t#toronto node2
t#regina client
where # is replaced by your team number. The team number is used
for network names and addresses to avoid confusion and duplicate IP
addresses. You will configure the network in the next exercise.
- Storage names
In this exercise, you will be discovering and configuring the shared
storage for two applications: appA and appB.
Each application will be associated with a resource group. The
resource groups will include the following storage components, which
will be configured in this exercise:
appA_group appB_group
Volume group appA_vg appB_vg
FS logical volume appA_lv appB_lv
FS log LV appA_log_lv appB_log_lv
FS mount point /appA_fs /appB_fs
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Vx and Cx are the IPAR ID and virtual slot numbers. From this we can see
that:
hdisk1-4 are on the same adapter (which we know from the previous step
to be vscsi1) and
hdisk0 is on vscsi0.
__ 5. Identify and record in the cluster components worksheet the device names and
location codes of the internal disks.
SSA DISKS
# lsdev -Cc disk
# lsdev -Cc pdisk
VIRTUAL SCSI DISKS
# lscfg | grep disk
EXempty __ 6. The storage needs to be divided into two volume groups. Size of the volume groups
is not important. In a real environment, disks should be mirrored and quorum issues
addressed. Here the emphasis is on the operation of HACMP not how the storage is
organized. You should have four disks so feel free to set up a mirror on one of the
volume groups. Different methods of configuring the disks are going to be used
through out the exercises. Decide on the organization but only create the volume
groups when directed to.
__ 7. Identify and update the cluster planning worksheets with the names of two shared
volume groups. Use the following names:
appA_vg
appB_vg
__ 8. Identify and update the cluster component worksheets with the LV component
names to have a shared file system in each of the two volume groups. Select names
for the logical volumes, file systems and file system logs. Use the following names.
(Instructions and hints assume JFS file systems, however feel free to use JFS2 if
you prefer.)
data LVs:
appA_lv
appB_lv
jfslog LVs:
appA_log_lv
appB_log_lv
file systems:
/appA_fs
/appB_fs
__ 9. Identify and update the cluster components worksheets the name for your cluster
(any string without spaces, up to 32 characters) using the following or choose your
own.
- cluster name is team#
__ 10. Now, add the networking information to the generic cluster diagram of your cluster.
This diagram can be found in Appendix A (there are two blank ones after the filled in
one. One is for in class and the other is to take home). On the other hand you may
want to just compare the information on your component worksheets to the filled in
worksheet at the beginning of Appendix A.
Only fill in what you know -- the LVM information-- at the bottom of the diagram.
__ 11. Next, you will enter the storage information into the Online Planning Worksheets
(OLPW) application.
Open a graphical connection to one of your nodes and start the Online Planning
Worksheets application.
# /usr/es/sbin/cluster/worksheets/worksheets
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 12. Enter Cluster Name, Company and Author and click Apply. Use any values you
like.
__ 13. You will need to navigate to Resource Associations to add the storage information,
but first you must add the two nodes and the two resource groups to the OLPW.
__ 14. Select the Requisite tab at the bottom left. Select Nodes and Communication
Paths in the navigation pane. Enter each node name and click Add. Leave the
Communication Path to the Node: field blank for now.
EXempty __ 15. Select Resource Groups in the navigation pane on the left side of the OLPW. Enter
the name of one resource group. Allow the Startup Behavior, Fallover Behavior
and Fallback Behavior fields to default for now. Select one node from Available
Nodes and click >> to add it to Participating Nodes. Repeat for the second node.
Click Add. (You may need to scroll down to find the Add button.)
Repeat for the second resource group.
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 17. Now, you are ready to add the storage information for appA_group. Select
Resource Associations in the navigation pane. Select appA_group from the
Resource Group pull down list. Select HDisks from the Resource Type pull down
list. Type hdisk1 (or whatever your first shared disk name is) in the Resource Name
field and click Add. Repeat for the other disks. Select Volume Group
(non-concurrent) in the Resource Type pull down; enter appA_vg in the
Resource Name field and click Add. Select File System in the Resource Type pull
down; enter appA_lv in the Resource Name field and click Add.
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
SSA DISKS
# lscfg | grep hdisk
VIRTUAL SCSI DISKS
# lspv
__ 24. On both systems, delete only the external hdisks.
Hint assumes hdisk0 is the only internal disk and that hdisk1-4 are shared
disks.
# rmdev -l hdisk1 -d
# rmdev -l hdisk2 -d
# rmdev -l hdisk3 -d
# rmdev -l hdisk4 -d
ALTERNATE METHOD:
# for i in 1 2 3 4
do
>rmdev -l hdisk$i -d
>done
__ 25. On one system, add all of disks back in and give them PVIDs.
Hint assumes hdisk0 is the only internal disk and that hdisk1-4 are shared
disks.
# cfgmgr
# chdev -a pv=yes -l hdisk1
# chdev -a pv=yes -l hdisk2
# chdev -a pv=yes -l hdisk3
# chdev -a pv=yes -l hdisk4
EXempty __ 29. Go to your t#halifax node. Create an Enhanced Concurrent Volume Group called
appA_vg. This will be the volume group for appAs shared data. Remember to use
the major number you discovered in the previous step.
In order to create an Enhanced Concurrent Volume Group, the bos.clvm.enh fileset
must be installed. Check to see if it is installed.
# lslpp -L | grep lvm
If not, you will need to install it. In order to install it, you must install one of the
following prerequisites:
rsct.basic.rte 2.2.0.0
cluster.es.server.rte 4.4.0.0
Since we are not ready to install the HACMP (cluster.es.*) filesets yet, well install
the rsct.basic fileset for now. Install rsct.basic from the /ha53/hacode/ex2/rsct
directory and bos.clvm from the /ha53/hacode/ex2/clvm directory.
# smitty install_latest
Fill in /ha53/hacode/ex2/rsct in the
INPUT device / directory for software field.
Use F4 in the Software to install field and select the rsct.basic filesets.
# smitty install_latest
Fill in /ha53/hacode/ex2/clvm in the
INPUT device / directory for software field.
Use F4 in the Software to install field and select the bos.clvm filesets.
# smitty vg
(or smitty -> system storage -> logical volume manager ->
volume groups)
Select Add a volume group)
Select Add an Original Volume Group
Fill in Volume Group name field
Set partition size (if default value wont work) <-- pop-up list is available
Using F4 select a single physical volume in the PHYSICAL VOLUME names
field (you may select another volume if you have three or more shared disks)
Set Activate volume group AUTOMATICALLY at system restart? to no
Set the Volume group MAJOR NUMBER to the value discovered in the previous
step
Set Create VG Concurrent Capable? to enhanced concurrent
__ 30. Vary on the volume group and create a jfslog logical volume with a name of
appA_log_lv. The type is to be jfslog. Only one LP is required.
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
# varyonvg appA_vg
# smitty lv
Select Add a Logical Volume
Select the volume group just created, a list is provided (F4)
Fill in the NAME = appA_log_lv,
number of lp = 1,
TYPE = jfslog
Allow other fields to default, or fill in your favorite options
__ 31. Format the jfslog logical volume.
# logform /dev/appA_log_lv
answer y to delete all the information
__ 32. Create a logical volume for data called appA_lv. Set number of LPs to 10.
# smitty lv
Add the logical volume
Enter your favorite options
__ 33. Create a file system on appA_lv using the Add a Journaled File System on a
previously defined logical volume. The mount point should be /appA_fs and
the file system should not be automatically activated on system restart.
# smitty jfs
-> Add a Journaled File System on a previously defined logical
volume
-> Add a Standard Journaled File System
Fill the required fields, making sure to:
use the F4 list to select the logical volume just created
Use /appA_fs as the mount point
Set mount automatically at system restart to No
__ 34. Verify the file system can be mounted manually.
# mount /appA_fs
__ 35. Check the correct log file (appA_log_lv) is active. If you have a loglv00 then you
might not have formatted the jfs log before you created the jfs.
# lsvg -l appA_vg
ALTERNATE METHOD: mount command with no arguments
__ 36. Umount the file system.
# umount /appA_fs
__ 37. Vary off the volume group.
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Node Name
***Ext. Disk Adapter*** ***SSA 160 Serial RAID Adapter*** ssaX 10-90
Ext. Disk Adapter 1
Ext. Disk Adapter 2
***Internal Disk *** 16 Bit LVD SCSI Disk Drive hdiskX 10-80-00-4,0
Internal Disk 1
Internal Disk 2
Internal Disk 3
Persistent Address
EXempty
Table 2: Non-shared Components Worksheet: SECOND Node
Component Description Value
Node Name
***Ext. Disk Adapter*** ***SSA 160 Serial RAID Adapter*** ssaX 10-90
Ext. Disk Adapter 1
Ext. Disk Adapter 2
***Internal Disk *** 16 Bit LVD SCSI Disk Drive hdiskX 10-80-00-4,0
Internal Disk 1
Internal Disk 2
Internal Disk 3
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Cluster Name
Cluster ID
Network Name
Network Name
Shared vg 1
Shared jfs log 1
Shared jfs lv 1
Shared file system 1
-mount point
Shared vg 2
Shared jfs log 2
Shared jfs lv 2
Shared file system 2
-mount point
REPLACEMENT node2:
Service Label/address
Hardware Address ---------------------N/A-----------------
Copyright IBM Corp. 1998, 2005 Exercise 2. Cluster Planning: Storage 2-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
(with Hints)
Introduction
This section establishes the communication networks required for
implementing HACMP. Networking is an important component of
HACMP, so all related aspects are configured and tested.
Lab equipment
There may be differences between the documentation and the real
machines in the classroom environment. The systems have been
selected to provide a consistent experience but a variety of equipment
may be used.
Please check with your instructor if you have any questions.
- Networks
The communications path will usually be Ethernet. There will be two
network interfaces for cluster communications (usually en0 and en1).
If your lab equipment is remote, there will be a third interface for
communication to the remote classroom (usually en2).
If you are using POWER5-based LPARs, these will be virtual Ethernet
adapters.
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Label = Label =
non-IP
Device = Device =
network
rootvg VG = rootvg
disk =
disk =
VG =
disk =
disk =
Copyright IBM Corporation 2005
Required Materials
Cluster Planning Worksheets and cluster diagram from exercise 2.
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty You can use the following names/addresses or select your own.
Item Address
netmask 255.255.255.0
t#halifax-if1 192.168.#1.1
t#halifax-if2 192.168.#2.1
t#toronto-if1 192.168.#1.2
t#toronto-if2 192.168.#2.2
If you choose to use your own please verify with the instructor that they will not
conflict with another team.
__ 3. Identify, and record in the cluster components worksheets, the IP labels/addresses
for the service and persistent labels using the following guidelines.
Ensure that the logical subnet rules are complied with.
- We will NOT be using heartbeating over alias
- We WILL be using IPAT via alias
This means that the service labels/addresses and persistent labels/addresses
may not be on the same logical subnet as any one of the communication
interfaces.
The following names/addresses may be used or select your own. If you choose
to use your own please verify with the instructor that they will not conflict with
another team.
Item Address
t#halifax-per 192.168.#3.1
t#toronto-per 192.168.#3.2
t#appA-svc 192.168.#3.10
t#appB-svc 192.168.#3.11
__ 4. The IP network name is generated by HACMP.
Note: If you use the Two-Node Cluster Configuration Assistant (as we will do in a
later exercise), HACMP generates the network name. It is also possible to set the
network name using the HACMP Extended Configuration SMIT menus or the
Online Planning Worksheets. We will use the HACMP generated network name in
these exercises.
__ 5. Identify and update the cluster components worksheet with the device names and
location codes of the serial ports.
Note: If you are using POWER5 LPARs for your nodes, you will probably not have a
serial port available for you non-IP network. You will be using disk heartbeat using
an enhanced concurrent volume group.
# lsdev -C | grep - i serial
__ 6. The non-IP network name is generated by HACMP.
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 7. At this point in time most of the names for the various cluster components should
have been selected and populated on the cluster component worksheets. It is
important to have a clear picture of the various names of these components as you
progress through the exercises.
__ 8. Now add the networking information to the generic cluster diagram of your cluster.
This diagram can be found in Appendix A (there are two blank ones after the filled in
one. One is for in class and the other is to take home). On the other hand you may
want to just compare the information on your component worksheets to the filled in
worksheet at the beginning of Appendix A.
Only fill in what you know -- cluster name, node names (t#halifax, t#toronto), and
IP information at the top.
__ 9. Next you will enter the network information into the Online Planning Worksheets
(OLPW) application.
Open a graphical connection to one of your nodes and start the Online Planning
Worksheets application.
# /usr/es/sbin/cluster/worksheets/worksheets
__ 10. Open the worksheet file you saved from the previous exercise.
Select File -> Open
Navigate to /home/au54 and select cluster_name.haw
__ 11. Navigate to the Networks screen and add the network name. Use the default
HACMP name for the first Ethernet network: net_ether_01.
Select the Requisite tab in lower left.
Select Networks in the navigation pane.
Enter net_ether_01 in the Network Name: field.
Verify that:
Network Type: = ether
Network Class: = Class C
Enable IP Address Takeover via IP Aliases: is checked
Click Add
__ 12. Navigate to the Interface Names screen and enter the interfaces that HACMP will
be using. If you are accessing the systems remotely, you do not need to add the
interfaces used for classroom access (en2 in our example).
Select Interface Names in the navigation pane.
Enter the IP label for the first interface and the interface device for your first
node; verify that Network Type:, Network Name:, and Node Name: fields
are correct and click Add.
Repeat for the other interface in the first node.
__ 13. Navigate to the IP Labels screen and enter the service and persistent IP labels.
Select IP Labels in the navigation pane.
Start with the service labels. Select:
Type: = Service
Shared: = Yes C
Enter the IP label for each service address and click Add.
Next add the persistent labels. Select:
Type: = Persistent
Enter each nodes persistent IP label in the Node IP Label: field;
select the node name in the Node Name: pull-down;
and click Add.
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 14. Save your worksheet. Since you now have the network information entered, you
should use the Validate When Saving setting.
Select the Settings menu; verify that Validate When Saving is checked.
Select File -> Save. The Validate HACMP Definition window should open
and show No errors. Click Close to continue.
EXempty __ 18. Using the component worksheets or configuration diagram for values, configure two
network adapters for use as communication interfaces, remember that each
communication interfaces must use a separate logical subnet. If you are accessing
the system remotely, dont change the remote access interface (usually en2).
Note: Do NOT use the Minimum Configuration & Startup option in SMIT. It
changes the name of the node. Use smit chinet instead.
# smitty chinet - or
# smitty
Communications Applications and Services -> TCP/IP -> Further
Configuration -> Network Interfaces -> Network Interface
Selection -> Change / Show Characteristics of a Network Interface
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
t2toronto # for i in 1 2
> do
> ping -c 2 192.168.21.$i
> ping -c 2 192.168.22.$i
> done
__ 23. Update the /etc/hosts file on both nodes (update one and ftp it to the other node).
(Remember to include your service IP labels and persistent IP labels.)
Notes:
Example assumes using suggested IP labels.
Client labels are covered in a later exercise.
If you are connecting remotely, you will need to supply the correct values
for the classroom network interfaces, as provided by your instructor.
# vi /etc/hosts
127.0.0.1 loopback localhost
192.168.#1.1 t#halifax-if1
192.168.#2.1 t#halifax-if2
192.168.#3.1 t#halifax-per
192.168.#3.10 t#appA-svc
192.168.#1.2 t#toronto-if1
192.168.#2.2 t#toronto-if2
192.168.#3.2 t#toronto-per
192.168.#3.20 t#appB-svc
A.B.C.X t#halifax
A.B.C.Y t#toronto
__ 24. Verify name resolution and connectivity on BOTH nodes for all interface IP labels.
(Service and persistent IP labels are not configured yet, so ping will not succeed for
them, but you should still verify name resolution.)
t2halifax # host t2halifax-if1
t2halifax # ping t2halifax-if1
t2halifax # host t2halifax-if2
t2halifax # ping t2halifax-if2
t2halifax # host t2toronto-if1
t2halifax # ping t2toronto-if1
t2halifax # host t2toronto-if2
t2halifax # ping t2toronto-if2
t2halifax # host t2halifax-per
t2halifax # host t2toronto-per
t2halifax # host t2appA-svc
t2halifax # host t2appB-svc
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
# smitty tty
-> Change/Show Characteristics of a tty or Add a tty
Enable LOGIN = disable
BAUD rate = 9600
PARITY= none
BITS per character = 8
Number of STOP BITS = 1
__ 29. Test the non-IP communications:
- On one node execute
# stty < /dev/tty#
where # is your tty number.
- The screen appears to hang. This is normal.
- On the other node execute
# stty < /dev/tty#
where # is your tty number.
- If the communications line is good, both nodes return their tty settings.
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 3. Cluster Planning: Network Setup and Test 3-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Introduction
The intention is to go through the process of making sure an
application and the start/stop scripts work outside of HACMP before
configuring HACMP to take control.
Required Materials
The AIX 5L Expansion pack
EXempty __ 7. # /tmp/Astart
__ 8. # /tmp/Astop
__ 9. # cat /appA_fs/log (you should see entries from the start/stop scripts)
__ 10. # umount /appA_vg
__ 11. # varyoffvg /appA_vg
Part 4: Test
__ 15. Start an X session (vnc) to t#halifax and open a terminal window.
__ 16. Bring up the web server using the following command (this command will become
the start script):
# /usr/HTTPServer/bin/apachectl start
__ 17. Bring up mozilla and connect to the web server using the URL:
http://t#halifax
__ 18. Bring down the web server using the following command (this command will become
the stop script).
# /usr/HTTPServer/bin/apachectl stop
END OF LAB
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 5. HACMP Software Installation 5-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Copyright IBM Corp. 1998, 2005 Exercise 5. HACMP Software Installation 5-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty suggested address is 192.168.#1.3. Do not set default route and ensure DNS is
disabled.
__ 23. Create an alias for the interface above to be on the same subnet as the service label
for the web app. The suggested value is 192.168.#3.30 and the subnet mask is
255.255.255.0.
smit inet --> configure Aliases --> Add an IPV4 Network Alias
__ 24. Acquire the /etc/host file from halifax# and ensure that the information in this file
agrees with what you did in the previous 2 steps.
ftp t#halifax-if1
get /etc/hosts
quit
cat /etc/hosts
__ 25. Test to ensure that TCP/IP functions correctly.
ping t#halifax-if1
ping t#toronto-if1
__ 26. Test name resolution of the client and the nodes.
Use the host command to test name resolution.
Copyright IBM Corp. 1998, 2005 Exercise 5. HACMP Software Installation 5-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
The next 3 steps will prepare you to use clinfoES from the client machine after HACMP is
started in the next exercise.
__ 32. Copy the clstat.cgi script from /usr/es/sbin/cluster to the /var/docsearch/cgi-bin
directory.
cd /var/docsearch/cgi-bin
cp /usr/es/sbin/cluster/clstat.cgi ./
__ 33. Verify that the file /var/docsearch/cgi-bin/clstat.cgi is world-executable (755 or
rwxr-xr-x)
chmod +x clstat.cgi
ls -al clstat.cgi
__ 34. Test access to clstat.cgi using the URL
http://localhost/cgi-bin/clstat.cgi
You should get a window with the message Could not initialize clinfo connection.
__ 35. Reboot and do the ping tests to verify that this client machine functions as expected.
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 5. HACMP Software Installation 5-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Introduction
The scenario starts with setting up and running the Two-Node Cluster
Configuration Assistant to build a standby environment and then
building a second resource group to obtain a (mutual) takeover
environment.
Required Materials
Cluster planning worksheets.
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty node, an application server name unique to your team, start and stop script names,
and a service label.
smitty hacmp --> Initialization and Standard Configuration
--> Configuration Assistants-->Two-Node Cluster Configuration
Assistant
For the Communication Path to Takeover Node, select (F4) t#toronto-if1
For the Application Server Name, type appA
For the Application Server Start script, type /tmp/Astart
For the Application Server Stop Script, type /tmp/Astop
For the Service IP Label, select (F4) t#appA-svc.
__ 2. If you encountered an error then do the cluster remove procedure (see lecture or
ask instructor) on both nodes before retrying. Note If you encounter the error
ERROR: Devices are not in Enhanced Concurrent Mode VG then the efix was not
applied or execute flag not on. Further information, if needed, can be found in the
/var/hacmp/clverify/clverify.log
Lets now look at what happened to you as a result of this command.
__ 3. Look at the smit output to see what the Assistant did. You can also find this output in
the /var/hacmp/log/clconfigassist.log file.
__ 4. Start a console session (login) on to your other node (t#toronto) to prove that the
cluster was created on both nodes.
Were the application start and stop scripts copied over? ________________
Was the volume group imported to the other node? __________________
Use the command /usr/es/sbin/cluster/utilities/cldisp | more to answer the
following questions (ignore warning messages in the output):
What is the cluster name? _______________________________________
What is the resource group name? ________________________________
What is the startup policy? ______________________________________
What is the fallback policy?______________________________________
What is the vg resource name (if any)? _____________________________
What is the non-IP network name (if any)? __________________________
On what enX is t#halifax-if1? _____________________________________
What is the IP network name? ____________________________________
Were the start/stop scripts copied over? _____________________________
Was a network created for your console session address?_____________
Note: You will not see this if you are using an attached console. We will remove
this network later so you do not continue to get verify warnings.
__ 5. So were you impressed? _________________________________
__ 6. You can now add the IP network and non-IP network names, that we promised
would be generated by HACMP, to your component work sheets and/or the cluster
diagram if you want to.
__ 7. Return to your administrative node (t#halifax).
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty __ 13. Check to see that your persistent addresses were created. If not then wait until the
cluster is started in Part 3 below and then check again.
netstat -i
__ 14. Take about 10 minutes to review the Startup, Fallover, and Fallback policies using
the F1 key on the Add a Resource Group menu. When you are ready, proceed to
the next step.
smitty hacmp --> Initialization and Standard Configuration
-->Configure HACMP Resource Groups -->Add a Resource Group
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty Watch the reaction on both nodes in the /usr/es/adm/cluster.log file. Also
monitor the clstat window. Notice that the telnet session from the t#toronto node was
not interrupted and that the log information scrolled by during the event processing.
__ 30. When swap adapter has completed, verify that the location of the t#appA-svc
service address is now on another Ethernet adapter.
Use netstat -i
__ 31. Restore the failed adapter. The interface should now be in an UP state.
ifconfig enX up (or connect the network cable)
__ 32. (Optional) - You may wish to swap the service address (and/or) persistent address
back by using C-SPOC.
execute smitty hacmp.
Select Cluster System Management (C-SPOC)
Select HACMP Communication Interface Management
Select Swap IP Addresses between Communication Interfaces
Select t#appA-svc from the Available Service/Communication Interfaces
smit screen.
Select t#halifax-if1 from the Swap onto Communication Interface smit
screen (This hint assumes that t#appA-svc is currently an alias to
t#halifax-if2).
confirm the information displayed and hit enter)
__ 33. Using the console session rather than a telnet session (because you will lose it),
monitor with the command tail -f /usr/es/adm/cluster.log | grep EVENT the
t#halifax-if1 node and virtually disconnect both network cables using the ifconfig
enX down command to both interfaces at the same time.
ifconfig en0 down ; ifconfig en1 down
__ 34. There should be a network down event executed after a short period of time. What
happens to the resource group on the t#halifax node, and why?
The resource group should have moved to the t#toronto node
The reason for this is because selective fallover is invoked when a network
down event was detected on t#halifax. HACMP moves the resource group to
maximize its availability
__ 35. On t#toronto, check using the command tail -f /usr/es/adm/cluster.log | grep
EVENT to see that the t#toronto node should also have detected a network failure.
__ 36. On t#halifax, restore both the network connections using the ifconfig enX up
command. What event do you observe happens?
ifconfig en0 up ; ifconfig en1 up
network up
__ 37. Where is the resource Group at this time? Verify that the IP labels, volume groups,
and file systems and application are available on that node.
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
The resource group should still be on the t#toronto node because the
Fallback policy is Never Fallback.
netstat -i
lsvg -o
/usr/es/sbin/cluster/utilities/clRGinfo
cat /tmp/appA.log
__ 38. You are now going to move resources back from one node to the other. On the
t#halifax node monitor the cluster.log file. On the t#toronto node execute smit clstop
and stop the cluster services with the mode of takeover. Leave the default value for
the other fields.
tail -f /usr/es/adm/cluster.log | grep EVENT (on t#halifax)
smit clstop (on t#toronto)
__ 39. The clstat.cgi should change colors from green to yellow (substate unstable,
t#toronto leaving) and the state of the t#toronto node and interfaces should change
to red (down).
__ 40. All of the components in the resource group should move over to the t#halifax
node. Verify the IP labels, volume groups, and file systems on the t#halifax node.
netstat -i
lsvg -o
/usr/es/sbin/cluster/utilities/clRGinfo
cat /tmp/appA.log
__ 41. On the t#toronto node restart HACMP. Observe the /usr/es/admin/cluster.log file (as
shown above) on the t#halifax node and, of course, the clstat session. The resource
group will stay put.
EXempty lspv
chdev -a pv=clear -l hdiskX
__ b. Create a new PVID for hdiskX
chdev -a pv=yes -l hdiskX
__ c. On the t#toronto node delete the hdisk.
rmdev -dl hdiskX
__ d. Add the disk back in.
cfgmgr
__ e. Verify the hdisk number and PVID agree between the two nodes.
lspv on both nodes
__ 45. On the administrative node (t#halifax) create a shared volume group called appB_vg
using C-SPOC.
smitty hacmp
Select Initialization and Standard Configuration
Select Configure Resources to make Highly Available.
Select Configure Concurrent Volume Groups and Logical Volumes.
Select Concurrent Volume Groups
Select Create a Concurrent Volume Group
Select Select ALL (both) the Node Names that will share the Volume
Group
Select the PVID that you identified in step 43.
Fill out the volume group menu:
-Name= group appB_vg
-Using F4 select the single physical volume you identified above
-Check the Physical partition SIZE and major number (C-SPOC
chooses a valid major number); set enhanced concurrent is true)
Create the volume group.
__ 46. Verify the Volume Group exists on both nodes.
lspv
lsvg
Now that the volume group is created it must be discovered, a resource group must be
created and finally the volume group must be added to the resource group before any
further C-SPOC utilities will access it.
__ 47. Discover the volume group using the command smitty hacmp and selecting
Extended Configuration followed by selecting Discover HACMP-related
Information from Configured Nodes
__ 48. On t#halifax, create a resource group called appB_group with the t#toronto node as
the highest priority and t#halifax node as the next priority.
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
smitty hacmp
Select Initialization and Standard Configuration
Select Configure HACMP Resource Groups
Select Add a Resource Group
Enter the resource group name appB_group, from the planning worksheets.
The participating node names must also be entered -- enter t#toronto first
Take the defaults for the policies.
__ 49. Add the volume group to the resource group
Return (F3) to the menu Configure HACMP Resource Groups then
Select Change/Show Resources for a Resource Group (standard)
Select appB_group
Enter the volume group name using F4.
__ 50. Synchronize the Cluster.
smitty hacmp
Select Initialization and Standard Configuration
Select Verify and Synchronize HACMP Configuration
Once synchronized, the Volume Group will be varied online, on the owning node
(t#toronto). Wait for this to happen.
__ 51. Now (still on your administrative node t#halifax) use C-SPOC to add a jfs log shared
logical volume to the appB_vg. The name should be appB_jfslog, the LV type should
be jfslog, and use 1 PP.
smitty hacmp
Select Initialization and Standard Configuration
Select Configure Resources to make Highly Available
Select Configure Volume Groups, Logical Volumes and Filesystems
Select Shared Logical Volumes
Select Add a Shared Logical Volume
From the list provided, choose the entry for appB_group appB_vg
From the list provided, choose Auto-select
Set LP=1, NAME = appB_jfslog, LV TYPE = jfslog
__ 52. On t#toronto (where the volume group is active), format the jfslog so that it can be
used by the filesystem that will be created in the next few steps. If the log is not
formatted, it will not be used.
On t#toronto, execute logform /dev/appB_jfslog (answer yes to the
destroy data question
__ 53. Back to t#halifax and CSPOC. Add a second shared logical volume with number of
LOGICAL PARTITIONS=10, NAME= appB_lv, TYPE=jfs.
See the step 51 hint along with the information for this step.
__ 54. Create a filesystem for the Web documents. Enter smit hacmp.
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Optional Exercises
For the Web-enabled Candidates
__ 1. Change the Web server pages on the shared disk to prove the location of the data
elements.
END OF LAB
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 6. Initial Cluster Configuration 6-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Exercise Review/Wrap-up
You have a running cluster. Congratulations, now the fun really begins. Make sure clstat
shows the cluster as stable with the TCP/IP and non-IP networks up.
(with Hints)
Introduction
This lab exercise introduces you to a number of basic HACMP
administration tasks.
Well start by configuring WebSMIT, so that you can use either
interface during this lab.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Next well use the snapshot utility to save the current cluster.
Then well experiment with various startup policies, including using a
settling timer and a delayed fallback timer.
Then well remove the current cluster, create a new cluster using IPAT
via replacement and experiment with IPAT via replacement and HWAT.
Finally, well restore our original cluster.
Required Materials
Cluster planning worksheets.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty Notes:
The snapshot utility runs the clsnapshot command. Two files are created on the
node where the snapshot utility was run:
- snapshot_name.odm
This file contains the current HACMP for AIX ODM class objects.
- snapshot_name.info
This file contains information useful for problem determination in an HACMP
cluster. To populate this file, clsnapshot runs the cllscf, cllsnw, cllsif,
and clshowres commands on the node where the snapshot utility was run
and clsnapshotinfo on both nodes.
By default, the snapshot files are stored in the /usr/es/sbin/cluster/snapshots
directory. You can change this by setting the environment variable
SNAPSHOTPATH.
__ 14. Read the snapshot_name.info file. Go on to the next step when you are ready.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
To check the status of the cluster manager, you can use the following script (from
the clcheck_server man page) to check the state of grpsvcs, which the Cluster
Manager uses. If grpsvcs is down, the Cluster Manager is inactive. This script
must be run on each node where you want to check status.
if ! clcheck_server grpsvcs
then
echo "HACMP cluster services are active"
else
echo "HACMP cluster services are inactive"
fi
Note: At the time of this writing, clcheck_server clstrmgrES always returns 0
(active), so you must run this command on grpsvcs to determine cluster status
at this time.
# cldump
This command can be run on any node, even if the cluster is down on that node.
If cluster services are running on any node, cldump returns detailed status on all
cluster nodes, networks, interfaces and resource groups.
If cluster services are not running on any node, cldump returns an error.
__ 23. Synchronize the cluster using the Extended Verification and Synchronization
menu.
Using the F3 key, traverse back to the Extended Configuration menu.
Select Extended Verification and Synchronization
Notice the menu option Automatically correct errors found during
verification. You only see this option when the cluster is down.
EXempty Actually this is normal, but it might not be what you expect. Since t#halifax
is the highest priority node, you might expect appC_group to not start until
t#halifax comes up. But we set the startup policy to Online on First
Available node, so it starts on t#toronto if it comes up first.
__ 26. Start HACMP on the t#halifax node.
Refer to step __ 24. hints
__ 27. Once the node is stable, check the status of the resource groups. Which node has
the appC_group resource group now? Why?
The resource group should have moved to t#halifax.
Since appC_group has the default fallback policy (Fallback To Higher
Priority Node In The List), HACMP will transition the resource group to
t#halifax when it comes up.
To better understand the startup policies, well bring the cluster services up and down a few
more times.
__ 28. Stop the nodes and bring up t#halifax only. What happens to appC_group and
appD_group?
# smitty hacmp
System Management (C-SPOC) -> Manage HACMP Services -> Stop
Cluster Services
Select both nodes.
Return to the Manage HACMP Services menu.
Select Start Cluster Services.
Select t#halifax only.
The resource groups should have started on t#halifax.
__ 29. Start HACMP on t#toronto. What happens to appC_group and appD_group?
Return to the Manage HACMP Services menu.
Select Start Cluster Services.
Select t#toronto only.
appC_group: Since t#halifax is the higher priority node, the resource group
does not transition.
appD_group: Since the fallback policy is Never Fallback, the resource group
does not transition.
__ 30. Stop t#halifax with Shutdown mode of takeover. Verify that appC_group and
appD_group are running on t#toronto.
Return to the Manage HACMP Services menu.
Select Stop Cluster Services.
Select t#halifax only.
Select takeover in the Shutdown mode field.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
To make sure that you have time for this test, use arp -d, on the client, to delete the
ARP cache entry for t#appA-svc, if it exists. Then use ping to recreate the entry
(restart the 20 minute time-out). Finally use arp -a to verify that there is an entry for
t#appA-svc.
# arp -a | grep appA
# arp -d t#appA-svc
# ping t#appA-svc
# arp -a | grep appA
__ 34. Generate a swap adapter event on the t#halifax node.
Use ifconfig to bring the interface which has the service label down. HACMP will
move the service label to the other interface and AIX will send a gratuitous ARP
packet. This should cause the ARP cache on the client to be updated.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Login to t#halifax (snapshots are stored on the node where they were
created)
# smitty hacmp
Extended Configuration -> Snapshot Configuration -> Apply a
Cluster Snapshot
__ 42. Start HACMP
# smitty clstart
choose both nodes
__ 43. For each resource group, verify to yourself that you understand how the online node
was chosen.
# clRGinfo
__ 44. Fail the t#halifax node in your favorite manner.
Note: If you use the halt command, make sure that you will be able to restart the
node. (If you are using an HMC-connected system, this means you must be able to
connect to the HMC.) Alternatives, which simulate a failed node from the point of
view of HACMP, are:
shutdown -Fr (fast reboot)
smitty clstop, selecting takeover as the Shutdown mode
# halt -q
OR
# shutdown -Fr
OR
# smitty clstop
select takeover.
__ 45. Restart the failed node and observe the re-integration. Verify that you understand
how the online node was chosen for each of the resource groups.
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 5. Wait 2 minutes and then start HACMP -- only on the t#toronto node.
# smitty clstart
choose only t#toronto
__ 6. Using the clRGinfo command, wait until you can see that appB_group is online and
appC_group is still offline on t#toronto. Then start HACMP on the t#halifax node.
Note: The clRGinfo command can be run from either node as long as HACMP is
started on any one of the nodes.
In another window on t#halifax or on t#toronto:
# while true
do
clRGinfo
sleep 5
done
Back in first t#halifax window:
# smitty clstart
choose only t#halifax
__ 7. Verify that the appC_group comes online on t#halifax (without first being online on
t#toronto). As you can see, the purpose of the settling timer is to prevent the
resources from being immediately acquired by the first active node.
__ 8. OPTIONAL -- Repeat this part but wait for settling time to expire after starting the
cluster on t#toronto. Verify that appC_group comes online on t#toronto. Stop the
cluster manager on both nodes, wait 2 minutes, start the cluster manager on both
nodes.
__ 9. If you ARE going on the next OPTIONAL exercise part, you can skip this step.
If you are NOT going on to the other OPTIONAL exercises, restore the snapshot
that you created in Part 2:, Create a cluster snapshot on page 6 (Exercise6snap),
which contains all the cluster definitions you created in exercise 6.
Login to t#halifax (snapshots are stored on the node where they were
created)
# smitty hacmp
Extended Configuration -> Snapshot Configuration -> Apply a
Cluster Snapshot
EXempty __ 10. Cluster should be started on both nodes and appC_group should be online on
t#halifax.
# cldump | grep "Node Name"
# clRGinfo
__ 11. On your administrative node (t#halifax), create a delayed fallback timer policy for
30 minutes from now (instructor may modify this time)
Make sure both nodes are using the same time:
# setclock t#toronto-if1
Write down the current time ______________
# smitty hacmp
Extended Configuration -> Extended Resource Configuration ->
Configure Resource Group Run-Time Policies -> Configure Delayed
Fallback Timer Policies -> Add a Delayed Fallback Timer Policy
use the following values:
daily
Name of the Fallback Policy = my_delayfbt
HOURS and MINUTES = 30 min from current time
__ 12. Add the fallback timer policy to the resource group appC_group
# smitty hacmp
Extended Configuration -> Extended Resource Configuration ->
HACMP Extended Resource Group Configuration -> Change/Show
Resources and Attributes for a Resource Group
Select appC_group
Fill in the field below as indicated:
Fallback Timer Policy [my_delayfbt] (use F4)
__ 13. Synchronize.
Next well test the delayed fallback timer.
__ 14. Verify that appC_group is online on t#halifax using the clRGinfo command
# clRGinfo appC_group
__ 15. Stop cluster services only on t#halifax with takeover.
# smitty clstop
__ 16. Verify that appC_group is now online on t#toronto (clRGinfo).
__ 17. Wait 2 minutes (required before a restart)
__ 18. Start the cluster manager on t#halifax
# smitty clstart
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 19. Monitor the cluster from t#toronto. In /tmp/hacmp.out at the event summary for
check_for_site_up_complete t#halifax, there is now a message stating the
fallback time. Make sure appC_group is still on t#toronto before the fallback, then
use tail -f hacmp.out file and wait for the fallback to occur.
# vi /tmp/hacmp.out
Look for the fallback time message-- should be very near the bottom
# clRGinfo
verify appC_group is online on t#toronto -- before the fallback time
# tail -f /tmp/hacmp.out
and wait
__ 20. At the time set for the Delayed Fallback Timer, appC_group should move back to
t#halifax (you should see activity from the tail command). Verify that
appC_group has moved to its home node (t#halifax).
Execute clRGinfo to verify that appC_group is online on t#halifax.
__ 21. On your administrative node (t#halifax), remove the name of the Delayed Fallback
Timer (my_delayfbt) from the resource group appC_group (you can keep the policy
definition if you want).
# smitty hacmp
Extended Configuration -> Extended Resource Configuration ->
HACMP Extended Resource Group Configuration -> Change/Show
Resources and Attributes for a Resource Group
__ 22. Reset the Settling time to 0 (from the Configure Resource Group Run-Time
Policies menu)
# smitty hacmp
Extended Configuration -> Extended Resource Configuration ->
Configure Resource Group Run-Time Policies -> Configure Settling
Time for Resource Groups
__ 23. Synchronize.
__ 24. If you ARE going on the next OPTIONAL exercise part, you can skip this step.
If you are NOT going on to the other OPTIONAL exercises, restore the snapshot
that you created in Part 2:, Create a cluster snapshot on page 6 (Exercise6snap),
which contains all the cluster definitions you created in exercise 6.
Login to t#halifax (snapshots are stored on the node where they were
created)
# smitty hacmp
Extended Configuration -> Snapshot Configuration -> Apply a
Cluster Snapshot
EXempty Part 9: OPTIONAL: Recreate the cluster and configure IPAT via
replacement
In a previous exercise, you created a cluster using the Two-Node Cluster Configuration
Assistant. In this part, we will remove the current cluster (after first taking a snapshot) and
then create a new cluster manually. Well configure the new clusters network for IPAT via
replacement, which we will be investigating in Part 10: of this exercise.
__ 25. On your administration node (t#halifax), stop both the cluster nodes.
# smitty clstop
choose both nodes
__ 26. Create a snapshot of the current cluster.
Note: If you just made a snapshot in Step __ 37. on page 13, you can skip this step.
# smitty hacmp
Extended Configuration -> Snapshot Configuration -> Add Cluster
Snapshot
Enter snapshot name and description.
Example:
Cluster Snapshot Name = exercise 7
Cluster Snapshot Description = added C & D resource groups
__ 27. Remove the current cluster configuration.
# smitty hacmp
Extended Configuration -> Select Extended Topology Configuration
-> Configure an HACMP Cluster -> Remove an HACMP Cluster
REPEAT on the other node
Clear the HACMP rhosts file
# echo > /usr/es/sbin/cluster/etc/rhosts
(double quotes with no space)
REPEAT on the other node
__ 28. Add a replacement service address to your /etc/hosts files:
192.168.#1.10 t#appR-repl
(must be on the same subnet as one of the t#hostname-ifX interfaces).
# vi /etc/hosts
add
192.168.#1.10 t#appR-repl
(# is your team number - remember?)
Document this address in you component worksheets (exercise 2).
ftp to your other node and to the client.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
__ 29. Configure a new cluster on t#halifax. Go to the HACMP for AIX SMIT panel and
select Initialization and Standard Configuration -> Add nodes to an
HACMP Cluster. Add your two nodes using the two -if1 interfaces.
# smitty hacmp
Initialization and Standard Configuration -> Add Nodes to an
HACMP Cluster
Enter a cluster name (for example, team#).
Using F4, select the appropriate communications paths for BOTH the nodes
(that is, the two -if1 interfaces).
__ 30. Use Extended Configuration to remove the classroom network (t#toronto and
t#halifax interfaces).
# smitty hacmp
Extended Configuration -> Extended Topology Configuration ->
Configure HACMP Networks -> Remove a Network from the HACMP Cluster
Select the classroom network (not the network with the 192.168.21 and
192.168.22 subnets)
__ 31. Use Extended Configuration to set the network to turn off IPAT via aliases.
Extended Configuration -> Extended Topology Configuration ->
Configure HACMP Networks -> Change/Show a Network in the HACMP
Cluster
Select the 192.168 network, press Enter
Change Enable IP Address Takeover via IP Aliases to No;
press Enter.
__ 32. Use Extended Configuration to configure a non-IP network by choosing the pair
of devices that will make up the network.
Using the F3 key, traverse back to the Extended Topology Configuration SMIT
screen.
Extended Configuration -> Extended Topology Configuration ->
Configure HACMP Communication Interfaces/Devices -> Add
Communication Interfaces/Devices
From the list, select, Add Discovered Communication Interface and
Devices
From the list select, Communication Devices
Select the appropriate pair of devices:
hdisk/hdisk or tty/tty or tmssa/tmssa
EXempty __ 33. Redo the Persistent Addresses from your planning worksheet.
Using the F3 key, traverse back to the Extended Topology Configuration SMIT
screen.
Extended Topology Configuration -> Configure HACMP Persistent
Node IP Label/Addresses -> Add a Persistent Node IP Label/Address
Select t#halifax from the list
Use F4 to select both the Network Name and Persistent IP Label/Address
for this node and press Enter
REPEAT for your other node
__ 34. Create the new Service IP Label resource: t#appR-repl.
Using the F3 key, traverse back to the Extended Configuration SMIT screen.
Select Extended Resource Configuration. Select Configurable on Multiple
Nodes when asked to Select a Service IP Label/Address type.
Extended Configuration -> Extended Resource Configuration ->
HACMP Extended Resources Configuration -> Configure HACMP
Service IP Labels/Addresses -> Add a Service IP Label/Address
Select Configurable on Multiple Nodes
Select the Network Name.
Finally, use F4 to select the Service IP Label (t#appR-repl) to be used.
__ 35. Create the appR_group resource group. Set t#halifax as the home node and use
the default policies.
Using the F3 key, traverse back to the Extended Resource Configuration SMIT
screen.
Extended Resource Configuration -> HACMP Extended Resource Group
Configuration -> Add a Resource Group
Enter the Resource Group name (appR_group) and set the participating
nodes (use F4 to choose the nodes). Remember the priority order, the first
node listed, is considered the home or owner node.
Use the default policies
__ 36. Add Resources to the resource group. Add the t#appR-repl Service IP Label and a
Volume Group (either appA_vg or appB_vg). For the purposes of this lab, application
servers are not required. You may add them if you wish.
Using the F3 key, traverse back to the HACMP Extended Resource Group
Configuration SMIT screen.
HACMP Extended Resource Group Configuration -> Change/Show
Resources and Attributes for a Resource Group ->
a Resource Group
Select appR_group from the list
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty As discussed in Unit 3, HWAT is one of several options if you have clients (or routers)
which do not support gratuitous ARP. Since AIX clients actually do support gratuitous ARP,
it is not possible to create this type of problem on the client in this exercise. However, we
will configure the cluster network for HWAT and observe that the hardware address does
indeed follow the service label when the resource group fallsover.
For details about HWAT, see Appendix C in the student guide.
In this scenario, we assume the router in Regina is a bit of an antique and does not support
gratuitous ARP. It was highlighted as a problem since the ARP cache retention is 20
minutes. This problem was discovered during the preliminary cluster testing.
__ 44. On the t#halifax node, log in as root.
__ 45. Identify the interface that is reconfigured with the t#appR-repl service address and
write the MAC address here:
_____________________________________.
For our purposes, there should be 12 digits and no periods. When using the
netstat command, leading 0s before each period are omitted. You must put them
back in.
# netstat -i
__ 46. Identify an alternate mac address. To specify an alternate hardware address for the
Ethernet interface, add 4 to the 1st byte (xy) to [x+4}y:
_________________________________________
__ 47. Change the t#appR-repl service IP label to add an alternate hardware address.
Using Extended Configuration, navigate to Configure Service IP
Labels/Addresses.
# smitty hacmp
Extended Configuration -> Extended Resource Configuration ->
HACMP Extended Resources Configuration -> Configure Service IP
Labels/Addresses -> Change/Show a Service IP Label/Address
Select t#appR-repl
Enter the Alternate Hardware Address using the answer to the previous
step.
__ 48. Synchronize the cluster.
Using the F3 key, traverse back to the Extended Configuration SMIT screen.
This will cause the resource group to go off line: notice the following message in the
SMIT command output window:
cldare: Detected changes to service IP label t2appR-repl. Please note
that changing parameters of service IP label via a DARE may result in
releasing resource group appR_group.
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 7. Basic HACMP Administration 7-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty /EVENT
See the event, the event summary and the search string
__ 8. There is a summary log file for hacmp.out. Take moment to see how you can go
from an entry in the hacmp.out summary to the location of the event in the
hacmp.out file using the search argument.
smitty hacmp
Problem Determination Tools ->HACMP Log Viewing and Management
->View/Save/Delete/HACMP Event Summaries
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 9. Network File System (NFS) 9-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
EXempty Look at the contents of /etc/xtab. It should look like the output from lsnfsexp.
Note: /etc/exports is not used by HACMP-- see what happens when you try to cat
/etc/exports
# cat /etc/xtab
# cat /etc/exports
__ 6. Log in on the client as root.
__ 7. Create two directories: /halifax and /toronto.
# mkdir /halifax
# mkdir /toronto
__ 8. On the client, using the service address for the appA_group, mount the NFS
exported directory /appA_fs on the local directory /halifax.
# mount t#appA-svc:/appA_fs /halifax
OR
# smitty mknfsmnt
__ 9. On the client, using the service address for the appB_group, mount the NFS
exported directory /appB_fs on the local directory /toronto.
Choose sys in the security method field.
# mount t#appB-svc:/appA_fs /halifax
OR
# smitty mknfsmnt
__ 10. Verify the NFS directories are mounted where intended.
# mount
# df -k
__ 11. Back on a cluster node -- fail one of the nodes in your favorite manner. Verify that
both NFS directories are exported on the remaining node and still mounted on the
client system.
# halt -q
# lsnfsexp
on the remaining cluster node
# df -k
on the client system
__ 12. Try to create a file in the /halifax directory. It should not work. Lets see how this can
be addressed.
# touch /halifax/junk
Copyright IBM Corp. 1998, 2005 Exercise 9. Network File System (NFS) 9-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 9. Network File System (NFS) 9-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Exercise Review/Wrap-up
This exercise looked at various methods of implementing NFS in an HACMP cluster.
Introduction
This exercise will give you practice at implementing features
discussed in the Problem Determination Unit of the course.
Copyright IBM Corp. 1998, 2005 Exercise 10. HACMP Problem Determination 10-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
END OF LAB
Copyright IBM Corp. 1998, 2005 Exercise 10. HACMP Problem Determination 10-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
Exercise Review/Wrap-up
This exercise looked at how to run the test tool and show that it is disruptive as well as how
to work with Automatic Verification and Auto Correct.
Copyright IBM Corp. 1998, 2005 Exercise 11. Migration (optional) 11-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises with Hints
rootvg rootvg
VG =
VG =
AP
Client:
Cluster Planning Diagram IP Label IP Address
if1 ________ ___________
alias ___________
if2 ________ ___________
Network = ________________
(netmask = ___.___.___.___)
rootvg rootvg
VG =
VG =
Client:
Cluster Planning Diagram IP Label IP Address
if1 ________ ___________
alias ___________
if2 ________ ___________
Network = ________________
(netmask = ___.___.___.___)
rootvg rootvg
VG =
VG =
backpg
Back page