Beruflich Dokumente
Kultur Dokumente
100-002685-C
COURSE DEVELOPERS
Bilge Gerrits
Steve Hoffer
Siobhan Seeger
Pete Toemmes
Graeme Gofton
Sean Nockles
Brad Willer
TECHNICAL
CONTRIBUTORS AND
REVIEWERS
Geoff Bergren
Kelli Cameron
Tomer Gurantz
Anthony Herr
James Kenney
Gene Henriksen
Bob Lucas
Paul Johnston
Rod Pixley
Clifford Barcliff
Danny Yonkers
Antonio Antonucci
Satoko Saito
Feng Liu
Table of Contents
i
Copyright 2012 Symantec Corporation. All rights reserved.
ii
Table of Contents
iii
Copyright 2012 Symantec Corporation. All rights reserved.
iv
Appendix B
Lab Solutions
B2
Lab environment
Whether you are taking the Veritas Cluster Server 6.0 for UNIX: Administration
course in a physical classroom environment where you are provided a physical
computer to perform the labs or you are taking the course in a virtual classroom
where you are connected via the internet to a virtual lab environment, the labs are
performed within a virtual environment consisting of eight virtual machines
(VMs). This virtual lab environment has been developed specifically for this
course and is detailed in the next sections.
B3
Copyright 2012 Symantec Corporation. All rights reserved.
The cluster systems and target cluster systems have all required patches installed
for Storage Foundation HA 6.0. Additionally, required patches and OS
configuration has been done on the sym1, sym2, sym3, and sym4 systems for
Oracle 11.2.0.2.
10
Note: Note: In the context of the labs for this course, the term virtual machine or
VM is used when a specific VMware action is taken, such as turning the
power on or taking a snapshot of a VM. The terms system, node and host
are used to refer to activity being performed on the host operating system
within the VM, such as navigating to a terminal window, installing
software, checking status, and so on. While most labs adhere to this
convention, the terms VM, system, node, and host can be considered
interchangeable.
B4
The labs in the Veritas Cluster Server 6.0 for UNIX: Administration course use
eight virtual machines. The introductory page of each lab shows which virtual
machines will be used. The lab exercises contain icons like those shown in this
slide, to indicate which steps are performed on which virtual machines.
11
System Name
Description
mgt
mgt.example.com
winclient
winclient.example.com
vom
Veritas Operations
Manager CMS
vom.example.com
cps
Coordination Point
Server
cps.example.com
NFS Server
DNS Server
iSCSI Array
NTP Server
Note: In the lab exercises, virtual machines are identified by the system names
found in this table. The first Fully Qualified Host Name and Hostname
system names are bound to the first IP address listed in both the DNS and
the local hosts file.
B5
Copyright 2012 Symantec Corporation. All rights reserved.
sym1
sym1.example.com
sym2
sym2.example.com
sym3
sym3.example.com
sym4
sym4.example.com
Note: In the lab exercises, virtual machines are identified by the system names
found in this table. The first Fully Qualified Host Name and Hostname
system names are bound to the first IP address listed in both the DNS and
the local hosts file.
12
System Name
B6
Logon Information
mgt
User: student
Password: veritas
winclient
User: Administrator
Password: veritas
vom
User: root
Password: veritas
cps
User: root
Password: veritas
sym1
User: root
Password: veritas
sym2
User: root
Password: veritas
sym3
User: root
Password: veritas
sym4
User: root
Password: veritas
Note: Access to the mgt system by the root user is restricted. Notify your
instructor if you require root access.
13
There are two introductory labs that follow, Intro Lab A and Intro Lab B. You will
complete only one of them depending on how and where you attend this course.
Your instructor will direct you to the appropriate introductory lab.
If you are attending this course in a physical classroom, continue to Intro Lab
A: Using VMware Workstation in a physical classroom.
If you are attending this course in a virtual environment where you are
connected via the internet, skip to Intro Lab B: Using Hatsize.
B7
Copyright 2012 Symantec Corporation. All rights reserved.
14
B8
Note: These exercises are to be used only in a physical classroom using the
VMware Workstation environments. Exercises for the Hatsize environment
are in Intro Lab B.
Two parallel versions of the labs enable you to choose the level of detail that suits
your experience level:
Appendix A provides step-by-step lab instructions.
Appendix B provides complete lab instructions and solutions.
15
B9
The eight virtual machines communicate using the several virtual networks
residing within the host.
16
B10
VMware Workstation software runs on the host system and provides an interface
to access the virtual machines. This interface has menu items and a tool bar that is
used to control the virtual machines or guest systems. Virtual machines are
accessed by clicking on the tab with the appropriate system name.
17
B11
If VMware is not already open, start VMware Workstation and ensure that the
following tabs are present:
mgt
winclient
vom
cps
sym1
sym2
sym3
sym4
CAUTION If any of the tabs are not present, notify your instructor.
Solution
Ensure that VMWare Workstation opens and that the following tabs are
present - mgt, winclient, vom, cps, sym1, sym2, sym3 and sym4. If these
tabs are not present, notify your instructor.
End of Solution
18
Review the current settings, including the memory and virtual network
adapters, for each virtual machine. Ensure the memory for each virtual
machine is set to the following:
B12
mgt: 1 GB
winclient: 1 GB
vom: 1 GB
cps: 1 GB
sym1: 2 GB
sym2: 2 GB
Veritas Cluster Server 6.0 for UNIX: Administration
Copyright 2012 Symantec Corporation. All rights reserved.
sym3: 2 GB
sym4: 2 GB
CAUTION If the memory settings are different that listed above, notify your
instructor.
Solution
From the Summary view, locate the Devices pane and review the
information showing the virtual machine configuration.
Click each of the remaining tabs and review the Devices pane information
for each virtual machine.
End of Solution
19
B13
mgt
3
Note: The mgt virtual machine is required for all lab exercises. Failure to
start it will result in missing files and missing shared LUNs.
Solution
End of Solution
vom
4
Note: For best performance, do not start another virtual machine until the
previous virtual machine is fully started and displaying a log in prompt.
20
Note: Generally, each lab requires no more than six virtual machines to be
started. For best performance, you may shut down and re-start virtual
machines to match those required by each lab. The virtual machines
needed for each lab is identified in Exercise 1 of each lab.
B14
Solution
End of Solution
sym1
5
End of Solution
21
sym2
6
B15
End of Solution
winclient
7
End of Solution
22
B16
vom
1
From the vom server desktop, click the mouse to establish keyboard
control.
End of Solution
23
B17
sym1
2
From the sym1 computer desktop, click the mouse to establish keyboard
control.
End of Solution
sym2
3
Account: root
Password: veritas
24
Solution
B18
From the sym2 computer desktop, click the mouse to establish keyboard
control.
End of Solution
winclient
4
25
End of Solution
B19
In this exercise, VMware Workstation controls are used to view the virtual
machines in Quick Switch and Full Screen modes and to resize the virtual
machines displays.
1
From the VMware Workstation menu, select View > Quick Switch. How is
the Quick Switch view different from the default view?
The workspace, including the virtual machine tabs, is enlarged to fit the host
computers display.
2
Note: When working through the lab exercises, use the F11 shortcut key to
toggle between the default and Quick Switch views, as desired.
From the VMware Workstation menu, select View > Full Screen. How is the
Full Screen view different from the default view?
The workspace is enlarged to fit the host computers display. A toolbar (which can be
Copyright 2012 Symantec Corporation. All rights reserved.
hidden) is included that can be used to control the virtual machine and to switch
26
B20
From the VMware Workstation menu, select View > Autofit Guest.
Veritas Cluster Server 6.0 for UNIX: Administration
Copyright 2012 Symantec Corporation. All rights reserved.
In Autofit Guest mode, the screen resolution of the guest system will automatically
27
B21
vom
1
If a terminal window is not already open, from the desktop, right-click and
select Konsole.
28
End of Solution
B22
Use the ip addr show command and record the IP addresses assigned to
this system.
vom IP address - eth0:
10.10.2.6
10.10.3.6
Solution
ip addr show
Note: This is a command to be entered in the terminal window. In the
terminal window, type: ip addr show
The output from this command follows.
29
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
End of Solution
ping -c 3 10.10.2.1
PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data.
64 bytes from 10.10.2.1: icmp_seq=1 ttl=128 time=1.62 ms
B23
ping -c 3 10.10.3.1
PING 10.10.3.1 (10.10.3.1) 56(84) bytes of data.
64 bytes from 10.10.3.1: icmp_seq=1 ttl=128 time=1.33 ms
64 bytes from 10.10.3.1: icmp_seq=2 ttl=128 time=0.098 ms
64 bytes from 10.10.3.1: icmp_seq=3 ttl=128 time=0.089 ms
--- 10.10.3.1 ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.089/0.507/1.335/0.585 ms
End of Solution
Use the nslookup command to discover the fully qualified host name of
sym1.
Solution
nslookup sym1
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
sym1.example.com
Address: 10.10.2.11
End of Solution
sym1
30
If a terminal window is not already open, from the desktop, right-click and
select Konsole.
End of Solution
B24
Use the ip addr show command and record the IP addresses assigned to
this system.
sym1 IP address - eth0:
10.10.2.11
10.10.3.11
10.10.4.11
10.10.5.11
Solution
31
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:5a:b1:ee brd ff:ff:ff:ff:ff:ff
inet 10.10.2.11/24 brd 10.10.2.255 scope global eth0
inet6 fe80::20c:29ff:fe5a:b1ee/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:5a:b1:f8 brd ff:ff:ff:ff:ff:ff
inet 10.10.3.11/24 brd 10.10.3.255 scope global eth1
inet6 fe80::20c:29ff:fe5a:b1f8/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:5a:b1:02 brd ff:ff:ff:ff:ff:ff
inet 10.10.4.11/24 brd 10.10.4.255 scope global eth2
inet6 fe80::20c:29ff:fe5a:b102/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:5a:b1:0c brd ff:ff:ff:ff:ff:ff
inet 10.10.5.11/24 brd 10.10.5.255 scope global eth3
inet6 fe80::20c:29ff:fe5a:b10c/64 scope link
valid_lft forever preferred_lft forever
6: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:5a:b1:16 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe5a:b116/64 scope link
valid_lft forever preferred_lft forever
7: eth5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:5a:b1:20 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe5a:b120/64 scope link
valid_lft forever preferred_lft forever
8: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
Locate the entries for the eth0, eth1, eth2 and eth3 interfaces.
B25
End of Solution
Use the nslookup command to discover the fully qualified host name of
sym2.
Solution
nslookup sym2
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
sym2.example.com
Address: 10.10.2.12
End of Solution
Use the fdisk -l command to ensure that the iSCSI LUNs are available.
Note: The mgt virtual machine must be running to have access to the iSCSI
LUNs.
Solution
fdisk -l
Device Flag
/dev/sdd3 u
/dev/sdd8 u
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdd3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
32
Start
0
0
Device Flag
/dev/sdd3p3 u
/dev/sdd3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdd8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
Start
End
Blocks
Id System
/dev/sdd8p3 u
0
1022
2093056
5 Whole disk
/dev/sdd8p8 u
0
1022
2093056
f Unknown
...
Disk /dev/sdz (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
B26
Device Flag
/dev/sdz3 u
/dev/sdz8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3p3 u
/dev/sdz3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz8p3 u
/dev/sdz8p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
End of Solution
sym2
9
If a terminal window is not already open, from the desktop, right-click and
select Konsole.
End of Solution
33
10 Use the ip addr show command and record the IP addresses assigned to
this system.
sym2 IP address - eth0:
10.10.2.12
10.10.3.12
10.10.4.12
10.10.5.12
B27
Solution
ip addr show
34
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
Locate the entries for the eth0, eth1, eth2 and eth3 interfaces.
End of Solution
B28
11 Use the nslookup command to discover the fully qualified host name of
vom.
Solution
nslookup vom
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
vom.example.com
Address: 10.10.2.6
End of Solution
12 Use the fdisk -l command to ensure that the iSCSI LUNs are available.
Note: The mgt virtual machine must be running to have access to the iSCSI
LUNs.
Solution
fdisk -l
Disk /dev/sde3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sde3p3 u
/dev/sde3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sde8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
35
Device Flag
/dev/sde8p3 u
/dev/sde8p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdf (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
Start
End
Blocks
Id System
/dev/sdf3 u
0
1022
2093056
5 Whole disk
/dev/sdf8 u
0
1022
2093056
f Unknown
...
Disk /dev/sdz (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3 u
/dev/sdz8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
B29
Disk /dev/sdz3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3p3 u
/dev/sdz3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz8p3 u
/dev/sdz8p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
End of Solution
36
B30
vom
1
From vom, from the terminal window, use the shutdown -h now
command to shutdown and power off the virtual machines until it is needed in
a future lab.
Solution
shutdown -h now
End of Solution
winclient
2
From winclient, terminal window, use the Start menu to shutdown and
power off the virtual machines until it is needed in a future lab.
Solution
37
To the right of the Log off button, click the right-arrow menu and select
Shutdown.
End of Solution
End of lab
Lab 2: Intro Lab A: Using VMware Workstation in a classroom
Copyright 2012 Symantec Corporation. All rights reserved.
B31
38
B32
39
System Name
Hatsize Name
mgt
S#.mgt
winclient
S#.winclient
vom
S#.vom
cps
S#.cps
sym1
S#sym1
sym2
S#.sym2
sym3
S#.sym3
sym4
S#.sym4
B33
Hatsize interface
The Hatsize interface is used to access the virtual machines. Instead of using tabs
like VMware Workstation, the Hatsize virtual machines are accessed from the
Operations and Windows menus. Other key interface elements include:
Title Bar: Indicates the currently connected machine and whether you have
control of the machine or are in view-only mode
Operations: Used to connect to additional virtual machines
Windows: Used to switch between active virtual machines
System Control: Used to start, stop and restart virtual machines
40
B34
Locate the Hatsize portal URL and login credentials from your registration
e-mail. Record your credentials here:
Hatsize username:
Hatsize password:
2
Your student number is the number at the end of your Hatsize username
recorded in the previous step. Record your student number here:
Note: When you use the Hatsize environment, all of the virtual machines assigned
to you are prefixed with a letter and your student number. For example, if
your student number is 8, the virtual machine named mgt is named k8-mgt,
s8-mgt or in a similar fashion. Since the prefix is different for each student,
the lab exercises refer only to the system name without the prefix.
41
B35
In Internet Explorer, open the Hatsize portal URL and log on with your
assigned user name and password recorded in a previous step.
After logging in, find your class in the Current Classes table and click Enter.
Note: The name of your class will be different than the sample shown here.
42
B36
In the Agenda for your class, find the Day 1 lab session and click OPEN.
43
B37
Note: The menus you encounter in the hatsize interface will be slightly different
than the menu samples shown in this exercise.
44
sym1
2
B38
Password: veritas
Solution
From the sym1 computer desktop, click the mouse to establish keyboard
control.
End of Solution
Use the Window > mgt menu item to switch to the mgt system.
Use the Window > sys1 menu item to switch back to the sys1 system.
Use the Operations > Disconnect menu item to disconnect the sys1 system.
45
B39
Use the Window menu item to verify that the console window for the sys1
system is closed.
Note: Notice that the sys1 entry is no longer available from the Window
menu item.
Note: In further labs, use the steps you practiced in this exercise to navigate
between different virtual lab systems in the Hatsize environment. The lab
solutions will no longer display the steps needed to navigate from one
virtual machine to another.
46
B40
Note: For simplicity, the instructions found in the solutions to enter a command
in a terminal window will only show the command. to be entered. These
commands will be appear in a bolded font that is different than the normal
text.
As an example, the instructions for step d will be shown as:
d ip addr show
rather than:
d In the terminal window, type: ip addr show
After typing each command, press Enter.
Sample output that is to be expected from each command will be shown
directly after the command in a smaller font.
vom
47
If a terminal window is not already open, from the desktop, right-click and
select Konsole.
End of Solution
B41
Use the ip addr show command and record the IP addresses assigned to
this system.
vom IP address - eth0:
10.10.2.6
10.10.3.6
Solution
ip addr show
Note: This is a command to be entered in the terminal window. In the
terminal window, type: ip addr show
The output from this command follows.
48
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
End of Solution
B42
ping -c 3 10.10.2.1
PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data.
64 bytes from 10.10.2.1: icmp_seq=1 ttl=128 time=1.62 ms
64 bytes from 10.10.2.1: icmp_seq=2 ttl=128 time=0.138 ms
64 bytes from 10.10.2.1: icmp_seq=3 ttl=128 time=0.100 ms
--- 10.10.2.1 ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.100/0.621/1.627/0.711 ms
ping -c 3 10.10.3.1
PING 10.10.3.1 (10.10.3.1) 56(84) bytes of data.
64 bytes from 10.10.3.1: icmp_seq=1 ttl=128 time=1.33 ms
64 bytes from 10.10.3.1: icmp_seq=2 ttl=128 time=0.098 ms
64 bytes from 10.10.3.1: icmp_seq=3 ttl=128 time=0.089 ms
--- 10.10.3.1 ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.089/0.507/1.335/0.585 ms
End of Solution
Use the nslookup command to discover the fully qualified host name of
sym1.
Solution
nslookup sym1
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
sym1.example.com
Address: 10.10.2.11
49
End of Solution
B43
sym1
5
If a terminal window is not already open, from the desktop, right-click and
select Konsole.
End of Solution
Use the ip addr show command and record the IP addresses assigned to
this system.
sym1 IP address - eth0:
10.10.2.11
10.10.3.11
10.10.4.11
10.10.5.11
Solution
50
ip addr show
B44
Locate the entries for the eth0, eth1, eth2 and eth3 interfaces.
End of Solution
Use the nslookup command to discover the fully qualified host name of
sym2.
Solution
nslookup sym2
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
sym2.example.com
Address: 10.10.2.12
51
End of Solution
Use the fdisk -l command to ensure that the iSCSI LUNs are available.
Note: The mgt virtual machine must be running to have access to the iSCSI
LUNs.
B45
Solution
fdisk -l
Device Flag
/dev/sdd3 u
/dev/sdd8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdd3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdd3p3 u
/dev/sdd3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdd8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
Start
End
Blocks
Id System
/dev/sdd8p3 u
0
1022
2093056
5 Whole disk
/dev/sdd8p8 u
0
1022
2093056
f Unknown
...
Disk /dev/sdz (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3 u
/dev/sdz8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3p3 u
/dev/sdz3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz8p3 u
/dev/sdz8p8 u
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
52
Start
End of Solution
sym2
B46
If a terminal window is not already open, from the desktop, right-click and
select Konsole.
End of Solution
10 Use the ip addr show command and record the IP addresses assigned to
this system.
sym2 IP address - eth0:
10.10.2.12
10.10.3.12
10.10.4.12
10.10.5.12
Solution
53
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:2d:77:72 brd ff:ff:ff:ff:ff:ff
inet 10.10.2.12/24 brd 10.10.2.255 scope global eth0
inet6 fe80::20c:29ff:fe2d:7772/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:2d:77:7c brd ff:ff:ff:ff:ff:ff
inet 10.10.3.12/24 brd 10.10.3.255 scope global eth1
inet6 fe80::20c:29ff:fe2d:777c/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:2d:77:86 brd ff:ff:ff:ff:ff:ff
inet 10.10.4.12/24 brd 10.10.4.255 scope global eth2
inet6 fe80::20c:29ff:fe2d:7786/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
link/ether 00:0c:29:2d:77:90 brd ff:ff:ff:ff:ff:ff
inet 10.10.5.12/24 brd 10.10.5.255 scope global eth3
inet6 fe80::20c:29ff:fe2d:7790/64 scope link
valid_lft forever preferred_lft forever
6: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
1000
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
pfifo_fast qlen
B47
Locate the entries for the eth0, eth1, eth2 and eth3 interfaces.
End of Solution
11 Use the nslookup command to discover the fully qualified host name of
vom.
Solution
nslookup vom
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
vom.example.com
Address: 10.10.2.6
End of Solution
12 Use the fdisk -l command to ensure that the iSCSI LUNs are available.
Note: The mgt virtual machine must be running to have access to the iSCSI
LUNs.
54
Solution
fdisk -l
Disk /dev/sde3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sde3p3 u
/dev/sde3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sde8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
B48
Device Flag
/dev/sde8p3 u
/dev/sde8p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdf (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
Start
End
Blocks
Id System
/dev/sdf3 u
0
1022
2093056
5 Whole disk
/dev/sdf8 u
0
1022
2093056
f Unknown
...
Disk /dev/sdz (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3 u
/dev/sdz8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz3 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz3p3 u
/dev/sdz3p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
Disk /dev/sdz8 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders
Units = cylinders of 4096 * 512 bytes
Device Flag
/dev/sdz8p3 u
/dev/sdz8p8 u
Start
0
0
End
1022
1022
Blocks
2093056
2093056
Id
5
f
System
Whole disk
Unknown
End of Solution
End of lab
55
B49
56
B50
57
B51
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
This virtual machine should be powered on, but there is no need to log
into it at this time.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
This virtual machine should be powered on, but there is no need to log
into it at this time.
Note: The terminal windows are referred to as hostname:terminal#
throughout the labs. For example: sym1:terminal1, sym1:terminal2,
sym2:terminal1, and sym2:terminal2. It is not necessary to label the
terminal windows and you may decide which is terminal1 and which is
terminal2.
58
If you have virtual machines running that are not used in this lab, shut down
the operating system and power the machines off.
Note: If you are completing the lab exercises in order, you will not need to
shutdown or power on any virtual machines.
B52
sym1
1
Solution
59
cat /etc/hosts
127.0.0.1
localhost.localdomain
localhost
10.10.2.3
10.10.2.4
10.10.2.5
10.10.2.6
10.10.2.7
mgt.example.com
3par.example.com
winclient.example.com
vom.example.com
cps.example.com
mgt
3par
winclient
vom
cps
10.10.2.11
10.10.2.12
10.10.2.13
10.10.2.14
sym1.example.com
sym2.example.com
sym3.example.com
sym4.example.com
sym1
sym2
sym3
sym4
10.10.2.51
10.10.2.52
west.example.com
east.example.com
west
east
B53
10.10.2.61
10.10.2.71
10.10.2.90
10.10.2.91
10.10.3.91
loopyvip.example.com
nfsvip.example.com
cpsclus.example.com
cpsvipa.example.com
cpsvipb.example.com
loopyvip
nfsvip
cpsclus
cpsvipa
cpsvipb
10.10.2.101
symdb.example.com
symdb
End of Solution
Review the IP addresses assigned to the eth0:, eth1:, eth2:, and eth3:
interfaces using the ip addr show command.
Note: The eth4: and eth5: interfaces will be used in the VCS private network
lab and do not have an IP address configured at this time.
Solution
60
ip addr show
End of Solution
B54
nslookup sym2
Server:
Address:
10.10.2.3
10.10.2.3#53
Name:
sym2.example.com
Address: 10.10.2.12
nslookup symdb
Name:
symdb.example.com
Address: 10.10.2.101
nslookup 10.10.3.91
91.3.10.10.in-addr.arpa name = cpsvipb.example.com.
End of Solution
61
Use the ntpq -p command to verify the Network Time Protocol (NTP)
server for sym1 (a NTP client).
Solution
ntpq -p
remote
refid
st t when poll reach
delay
offset
======================================================================
*mgt.example.com LOCAL(0)
11 u
58
64
77
0.248 -85.517
End of Solution
B55
sym1
1
cd /student/software/sf/sf60
ls -l
total 1172
-rwxr-xr-x 1 root root 657308 Nov 29 00:01 3rdpartyattributions.pdf
drwxrwxr-x 4 root root
4096 Nov 29 02:54 cluster_server
-rw-r--r-- 1 root root
860 Nov 29 02:54 copyright
drwxrwxr-x 4 root root
4096 Nov 29 02:54 dynamic_multipathing
drwxrwxr-x 3 root root
4096 Nov 29 02:54 file_system
-rwxr-xr-x 1 root root 415782 Nov 29 00:01 getting_started.pdf
-rwxr-xr-x 1 root root
5292 Nov 28 22:38 installer
drwxrwxr-x 4 root root
4096 Jun 7 2011 perl
-rw-r--r-- 1 root root 23957 Nov 29 00:01 readme_first.txt
drwxrwxr-x 3 root root
4096 Nov 29 02:54 rpms
drwxrwxr-x 7 root root
4096 Nov 29 02:54 scripts
drwxrwxr-x 5 root root
4096 Nov 29 02:54 storage_foundation
drwxrwxr-x 4 root root
4096 Nov 29 02:54
storage_foundation_cluster_file_system_ha
drwxrwxr-x 5 root root
4096 Nov 29 02:54 storage_foundation_for_oracle_rac
drwxrwxr-x 5 root root
4096 Nov 29 02:54
storage_foundation_high_availability
drwxrwxr-x 4 root root
4096 Nov 29 02:54 virtualstore
drwxrwxr-x 3 root root
4096 Nov 29 02:54 volume_manager
-rwxr-xr-x 1 root root 18014 Nov 28 22:38 webinstaller
drwxrwxr-x 2 root root
4096 Nov 29 02:54 windows
drwxrwxr-x 4 root root
4096 Nov 28 22:38 xprtl
62
End of Solution
B56
Start the installer script and perform a pre-installation verification check for
SFHA 6.0 using the following information and record the directory within the
/opt/VRTS/install/logs directory that contains the installer log files,
summary file and response file.
Solution
./installer
63
System communication
Release compatibility
Installed product
Prerequisite patches and rpms
Platform version
File system free space
Product licensing
Product prechecks
Verify the pre-check was successful and the following messages were
received:
Precheck report completed
System verification checks completed successfully
No issues found in prechecks
B57
Notice that the installer log files, summary file, and response file are
saved at:
/opt/VRTS/install/logs/installer-yyyymmddhhmmxxx
Note: The CPI ends at this point and control is returned to the login shell.
End of Solution
Navigate to the directory containing the log file recorded above, list the
directory contents, and examine the *.log0 log file and any other files you
wish to view.
Solution
cd /opt/VRTS/install/logs/
installer-yyyymmddhhmmxxx
Note: Use the directory you recorded in the previous step in place of
installer-yyyymmddhhmmxxx.
installer-201201111027yIr.log0
installer-201201111027yIr.log1
installer-201201111027yIr.log2
64
ls
installer-201201111027yIr.response
installer-201201111027yIr.summary
installer-201201111027yIr.tunables
more installer-yyyymmddhhmmxxx.log0
End of Solution
B58
sym1
1
cd /student/software/sf/sort
ls -l
total 18664
-rwxrw-rw- 1 root root 19085939 Jan
9 11:31 sort_linux_x64.sh
End of Solution
Solution
65
cp sort_linux_x64.sh /var/tmp/.
cd /var/tmp
ls -l
total 18672
drwx------ 2 root
root
4096 May
drwx------ 2 student student
4096 Dec
-rwxr--r-- 1 root
root
19085939 Jan
6 2011 kdecache-root
7 15:21 kdecache-student
9 11:11 sort_linux_x64.sh
End of Solution
B59
Execute the sort_linux_x64.sh shar file to extract its contents and begin
the SORT.
Solution
./sort_linux_x64.sh
Uncompressing
Uncompressing
Uncompressing
Uncompressing
...
Uncompressing
SORT
SORT
SORT
SORT
data
data
data
data
collector:
collector:
collector:
collector:
0% |*
1% |*
2% |*
|
|
|
End of Solution
Run the data collector and accept the terms and conditions.
Note: Access to the sort.symantec.com web site to check for the latest
version will fail in these labs.
Note: In the future, you can start the data collector by running:
cd sort
./sortdc
Solution
Would you like to run the data collector now? [y,n] (y)
===========================================================================
| Checking available driver (sym1) resources
===========================================================================
Working directory file system type: ext3
Open files limit: 1024
Virtual memory limit: unlimited (KB)
Free swap: 4094 (MB)
66
B60
y
Symantec Operations Readiness Tools
Connecting to Symantec to check for the latest data collector version
... Failed
Skipped getting the latest version of the data collector. To check for the
latest version manually, go to: https://sort.symantec.com
End of Solution
Note: Atypically, passwordless ssh for the root user has been configured on
the lab systems.
Solution
Press [Return] to continue:
Press Enter.
67
Main Menu:
What task do you want to accomplish?
1) Installation/Upgrade report (NetBackup, Storage Foundation and HA
Solutions)
2) Risk Assessment report (Storage Foundation and HA Solutions)
3) License/Deployment report (Storage Foundation and HA Solutions)
4) VxExplorer report
5) NetBackup Support Utility (NBSU) report
6) Other tasks
Choose your option (separate multiple selections with commas): [1-6,q] (1)
1
Main Menu->Installation/Upgrade report:
B61
2
Main Menu->Installation/Upgrade report->SFProductFamily:
On which systems do you want to run and report?
1) This system only(<sym1>)
2) One or more remote systems
b) Back to previous menu
Choose your option: [1-2,b,q] (1)
2
Enter one or more system names separated by space, or the full-qualified
path to a file containing a list of systems names: [b,q,?]
sym1 sym2
Systems Discovery and Authentication
Enter a user name to access the remote system(s): [q,?] (root)
root
Discovering transport (ssh,rsh) on sym1 ................ localhost
Discovering transport (ssh,rsh) on sym2 ......... ssh passwordless
Collected basic system information from sym2 ................ Done
Authenticating system(s)
Number of systems requiring authentication ..................... 0
Summary:
2 of 2 hosts are accessible via ssh, rsh.
68
0 of 2
1 of 2
2 of 2
2 of 2
B62
0 of 2
1 of 2
2 of 2
0 hrs
1 mins 17 secs
End of Solution
69
Continue the SORT using the following information and notice the txt and xml
report files that are created. Then exit the data collector and record the
directory within the /var/tmp/sort/log directory that contains the
SORT log files.
Product to install or upgrade to: Veritas Storage Foundation HA
Product version: 6.0
B63
Note: The utility cannot access the sort.symantec.com web site for xml
report file upload in the this lab.
Directory within the /var/tmp/sort/log directory that contains the log files
The directory will be in the form sortdc-yyyymmddhhmmxxx
Solution
Choose the Symantec enterprise product you want to install or upgrade to. If
you are installing or upgrading multiple products, run the data collector
for each one.
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
b)
4
Choose the product version you want to install or upgrade to on the
system(s) in your environment.
Veritas Storage Foundation HA
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
b)
70
1
Checking that the product and version match...
Symantec Operations Readiness Tools
Logs are being written to /var/tmp/sortdc-201201091116OfJ while sortdc is
inprogress
B64
Analyzing systems: 0%
Estimated time remaining:
Detecting the server tier
71
0 of 5
of 5
Done
of 5
Done
of 5
Done
Done
of 5
Done
Done
of 5
Done
Done
Done
of 5
Done
Done
Done
of 5
Done
Done
Done
Done
of 5
Done
Done
Done
Done
of 5
Done
Done
Done
Done
Done
Generated XML and text files based on the systems and the time you ran the
data collector.
Created /var/tmp/sort/reports/sym1andothers_IAS_20120109_111942.xml
Created /var/tmp/sort/reports/sym1andothers_IAS_20120109_111942.txt
The system cannot access the SORT Web site now, you can manually upload the
XML file to the SORT Web site (https://sort.symantec.com/) to view your
custom server report that contains documentation and links related to your
environment. The text file does not contain this additional information.
If the system can connect to the Internet via a proxy server, set the
https_proxy environment variable.
In sh syntax, set it as follows: export https_proxy=https://
proxy.domain.com:port
B65
y
SORT data collector current session log files are saved at:
/var/tmp/sort/log/sortdc-201201091116OfJ
End of Solution
List the directory contents of the log file location. Then, navigate to the reports
directory and display the contents of the txt file report.
Solution
ls -l /var/tmp/sort/log/sortdc-yyyymmddhhmmxxx
Note: Use the directory you recorded in the previous step in place of
sortdc-yyyymmddhhmmxxx.
total 972
-rw-r--r--rw-r--r--rwx------rwx------rwx------rwx------rwx------rw-r--r--rw-r--r--
72
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
51 Jan
root
215 Jan
root
753 Jan
root 40752 Jan
root 11353 Jan
root
5653 Jan
root 19257 Jan
root 444469 Jan
root 443937 Jan
11:20
11:20
11:20
11:20
11:20
11:20
11:20
11:20
11:20
authentication.log
discovery.log
exitfile-201201091116OfJ
sortdc-201201091116OfJ.log
sortdc-201201091116OfJ.log0
sortdc-201201091116OfJ.log1
sortdc-201201091116OfJ.log2
sym1.log
sym2.log
ls -l
total 18680
drwx------ 2
drwx------ 2
drwxr-xr-x 6
-rwxr--r-- 1
drwxr-xr-x 2
cd sort
ls -l
root
student
root
root
root
root
4096 May
student
4096 Dec
root
4096 Jan
root
19085939 Jan
root
4096 Jan
total 140
drwxr-xr-x 6 root root
drwxr-xr-x 3 root root
B66
9
9
9
9
9
9
9
9
9
4096 Jan
4096 Jan
6
7
9
9
9
2011
15:21
11:16
11:11
11:12
kdecache-root
kdecache-student
sort
sort_linux_x64.sh
vos
9 11:16 advanced
9 11:19 db
-rw-r--r--rw-r--r-drwxr-xr-x
-rwxr-xr-x
-rw-r--r-drwxr-xr-x
-rwxr-xr-x
-rw-r--r--
1
1
3
1
1
2
1
1
root
root
root
root
root
root
root
root
root
599 Dec 19 18:44
root
492 Dec 19 18:44
root 4096 Jan 9 11:20
root 19767 Dec 19 18:44
root 20707 Dec 19 18:44
root 4096 Jan 9 11:19
root 6535 Dec 19 18:44
root 60812 Dec 19 18:44
group_input_sample.txt
host_input_sample.txt
log
offlinedc.sh
README
reports
sortdc
sortdc.conf
cd reports
ls -l
total 32
-rw-r--r-- 1 root root 5490 Jan 9 11:19
sym1andothers_IAS_20120109_111942.txt
-rw-r--r-- 1 root root 23104 Jan 9 11:19
sym1andothers_IAS_20120109_111942.xml
more *.txt
SORT Installation and Upgrade report
2012/01/09-11:19:42 PST
Server name: sym1
Operating system: Linux
Operating system version: 2.6.18-194.el5
Architecture: x86_64
Server model: VMware, Inc. VMware Virtual Platform
Distribution: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Patches that are not installed using standard operating system methods have
undetermined status. The patch list may not be up to date. For the latest
patch list, go to https://sort.symantec.com/patch/finder. Note: as Linux
has no package install history, a "Yes" under "Installed?" column on Linux
reports may indicate that newer versions of RPMs are installed.
73
End of Solution
End of lab
B67
74
B68
75
B69
76
B70
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
This virtual machine should be powered on, but there is no need to log
into it at this time.
vom
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
77
If you have virtual machines running that are not used in this lab, shut down
the operating system and power the machines off.
B71
Note: If you are completing the lab exercises in order, you will need to power on
and log into vom.
78
B72
sym1
1
Solution
79
cd /student/software/sf/sf60
ls -l
total 1172
-rwxr-xr-x 1 root root 657308 Nov 29 00:01 3rdpartyattributions.pdf
drwxrwxr-x 4 root root
4096 Nov 29 02:54 cluster_server
-rw-r--r-- 1 root root
860 Nov 29 02:54 copyright
drwxrwxr-x 4 root root
4096 Nov 29 02:54 dynamic_multipathing
drwxrwxr-x 3 root root
4096 Nov 29 02:54 file_system
-rwxr-xr-x 1 root root 415782 Nov 29 00:01 getting_started.pdf
-rwxr-xr-x 1 root root
5292 Nov 28 22:38 installer
drwxrwxr-x 4 root root
4096 Jun 7 2011 perl
-rw-r--r-- 1 root root 23957 Nov 29 00:01 readme_first.txt
drwxrwxr-x 3 root root
4096 Nov 29 02:54 rpms
drwxrwxr-x 7 root root
4096 Nov 29 02:54 scripts
drwxrwxr-x 5 root root
4096 Nov 29 02:54 storage_foundation
drwxrwxr-x 4 root root
4096 Nov 29 02:54
storage_foundation_cluster_file_system_ha
drwxrwxr-x 5 root root
4096 Nov 29 02:54 storage_foundation_for_oracle_rac
drwxrwxr-x 5 root root
4096 Nov 29 02:54
storage_foundation_high_availability
drwxrwxr-x 4 root root
4096 Nov 29 02:54 virtualstore
drwxrwxr-x 3 root root
4096 Nov 29 02:54 volume_manager
-rwxr-xr-x 1 root root 18014 Nov 28 22:38 webinstaller
drwxrwxr-x 2 root root
4096 Nov 29 02:54 windows
drwxrwxr-x 4 root root
4096 Nov 28 22:38 xprtl
End of Solution
Begin the installation and configuration of SFHA 6.0 on sym1 and sym2
using the following information:
B73
./installer
80
System communication
Release compatibility
Installed product
Prerequisite patches and rpms
Platform version
File system free space
Product licensing
Product prechecks
B74
Note: The rpm installations may take several minutes to complete. The
VRTSsfmh rpm is installed, but not reported out as such by the
installer.
81
B75
Solution
82
To specify the NIC for first private heartbeat link on sym1, type: eth4
To specify the NIC for the first private heartbeat link on sym1, type:
eth5
To use the same NICs for private heartbeat links on all systems, type: y
End of Solution
B76
Note: For each system, the CPI will attempt to connect to the SORT web site
to determine if there are product updates. Since the lab environment
does not provide this connectivity, the connection to SORT will fail.
Solution
83
To accept the default eth0 as the NIC for Virtual IP of the Cluster to use
on sym1, press Enter.
B77
End of Solution
84
The updates to VRTSaslapm package are released via the Symantec SORT web
page:
https://sort.symantec.com/asl. To make sure you have the latest version of
VRTSaslapm (for up to date ASLs and APMs), download and install the latest
package from the SORT web page.
Checking online updates for Veritas Storage Foundation and High
Availability 6.0
Attempted to connect to https://sort.symantec.com to check for
product updates, but connection failed.
Please visit https://sort.symantec.com to check for available
B78
End of Solution
Notice that the installer log files, summary file, and response file are saved
at:
/opt/VRTS/install/logs/installer-yyyymmddhhmmxxx
cd /opt/VRTS/install/logs/
installer-yyyymmddhhmmxxx
Note: Use the directory you recorded in the previous step in place of
installer-yyyymmddhhmmxxx.
85
ls
installer-201111010815Wks.log0
installer-201111010815Wks.log1
installer-201111010815Wks.log2
installer-201111010815Wks.log3
installer-201111010815Wks.log4
...
install.VRTSvcs.sym2
install.VRTSvlic.sym1
install.VRTSvlic.sym2
install.VRTSvxfen.sym1
install.VRTSvxfen.sym2
B79
Examine any other files using the more, cat or grep commands.
End of Solution
86
lltstat -c
: 5.0
B80
: 5.0
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
eth4
eth5
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
OPEN
End of Solution
gabconfig -a
87
End of Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
B81
-- GROUP STATE
-- Group
B
B
ClusterService
ClusterService
System
sym1
sym2
Probed
AutoDisabled
Y
Y
N
N
State
ONLINE
OFFLINE
End of Solution
88
B82
sym1
From sym1:terminal1, navigate to the /opt/VRTS/install directory and
perform a post installation check on the installed and configured SFHA 6.0
cluster on sym1 and sym2 and review the summary file. To facilitate
reviewing the log file if errors occur, record the directory within the
/opt/VRTS/install/logs directory that contains the installer log files.
Note: The post installation check will NOT complete successfully due to
I/O Fencing being unconfigured. Symantec recommends configuring
I/O Fencing before using a cluster for production. I/O Fencing will be
configured in a later lab.
Directory within the /opt/VRTS/install/logs directory that contains the
log files:
The directory will be in the form installer-yyyymmddhhmmxxx
Solution
89
cd /opt/VRTS/install
System communication
Release compatibility
Installed Product
Platform version
Product prechecks
B83
Notice that the post installation check does NOT complete successfully due
to I/O Fencing being unconfigured.
Notice that the installer log files, summary file, and response files are
saved at:
/opt/VRTS/install/logs/installer-yyyymmddhhmmxxx
Note: The CPI ends at this point and control is returned to the login shell.
End of Solution
90
B84
vom
1
Solution
91
From the lower left corner of desktop, click the Web Browser icon.
Click Login.
End of Solution
Note: The faults and risk shown on the Home tab in the Faults and Risks
Overview section, and elsewhere within VOM, for the cps, sym3, and
sym4 servers can be ignored as those virtual machines are powered off.
B85
Add sym1 and sym2 to the Veritas Operations Manager using the following
information.
For sym1:
Host: sym1.example.com
User Name: root
Password: veritas
For sym2:
Host: sym2.example.com
User Name: root
Password: veritas
Solution
92
From the VOM menu bar, select Settings > Host Management.
From the right side of the Host Management pane, from the Actions dropdown menu, select Add Host(s).
From the Add Hosts(s) window, from the Hosts to be added section, in
the Host field, type: sym1.example.com
From the bottom right hand corner of the window, click Next.
From the bottom right hand corner of the Add Hosts window, click OK.
Note: Both sym1.example.com and sym2.example.com should show up
in the Host Management list in a Healthy Host State.
End of Solution
B86
Log out of the Veritas Operations Manager and close the browser window.
Solution
From the top right corner of the Veritas Operations Manager console,
from the User (root) drop-down menu, select Logout.
End of Solution
93
B87
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
There is no need to log into this virtual machine at this time.
sym3
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym4
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
94
If you have virtual machines running that are not used in this lab, shut down
the operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you to
shutdown vom, sym1 and sym2, and power on and log into sym3 and
sym4.
B88
sym3
Note: You may optionally perform steps 1 through 5 on both the sym3 and sym4
cluster nodes, though it is not strictly necessary to do so. These checks are
a limited subset of all the checks that might be performed prior to a cluster
upgrade.
1 sym4
State
OPEN
Link
Status
Address
eth4
eth5
UP
UP
00:0C:29:97:FB:5D
00:0C:29:97:FB:67
eth4
eth5
UP
UP
00:0C:29:C4:1D:0A
00:0C:29:C4:1D:14
OPEN
End of Solution
95
Use the gabconfig command to display the Group Membership and Atomic
Broadcast (GAB) status.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
857802 membership 01
Port b gen
857801 membership 01
Port h gen
857805 membership 01
End of Solution
B89
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym3
sym4
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
B
B
sym3
sym4
sym3
sym4
sym3
sym4
Y
Y
Y
Y
Y
Y
N
N
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ClusterService
ClusterService
dbsg
dbsg
websg
websg
End of Solution
Solution
96
cd /student/software/sf/sf60
./installer -version
To specify the system names for the version check, type: sym3 sym4
Installed product(s) on sym3:
Veritas Storage Foundation and High Availability - 5.1SP1
Product:
Veritas Storage Foundation and High Availability - 5.1SP1
Packages:
Installed Required packages for Veritas Storage Foundation and ...
#PACKAGE
#VERSION
VRTSamf
5.1.100.000
VRTSaslapm
5.1.100.000
VRTSatClient 5.0.32.0
B90
VRTSatServer
VRTSgab
VRTSllt
VRTSperl
VRTSvcs
VRTSvcsag
VRTSvlic
VRTSvxfen
VRTSvxfs
VRTSvxvm
5.0.32.0
5.1.100.000
5.1.100.000
5.10.0.7
5.1.100.000
5.1.100.000
3.02.51.010
5.1.100.000
5.1.100.000
5.1.100.000
End of Solution
Note: The following step may be skipped. It is documented here to show that
separate upgrade precheck(s) maybe run. These prechecks are also
performed as part of the actual upgrade as shown in the next exercise.
97
./installer -precheck
B91
To accept the default sym3 and sym4 as the RHEL5 system names, press
Enter.
System communication
Release compatibility
Installed product
Prerequisite patches and rpms
Platform version
File system free space
Product licensing
Product prechecks
CPI NOTE V-9-40-3073 Use the vxupgrade(1M) command to upgrade mounted file
systems, or the vxfsconvert(1M) command to upgrade unmounted file systems.
Use the fstyp -v command to determine the VxFS file system version. See the
Veritas Storage Foundation Installation Guide for more information on
upgrading VxFS disk layout versions.
98
B92
Notice that the installer log files, summary file, and response files are
saved at:
/opt/VRTS/install/logs/installer-yyyymmddhhmmxxx
Note: The CPI ends at this point and control is returned to the login shell. If a
separate precheck run were desired, then the log files could now be
checked. Log file examination is skipped in this stand alone precheck.
End of Solution
99
cd /student/software/sf/sf60
./installer
B93
To accept the default RHEL5 system names of sym3 and sym4, press
Enter.
System communication
Release compatibility
Installed product
Prerequisite patches and rpms
Platform version
File system free space
Product licensing
Product prechecks
100 B94
Observe the list of rpms that will be uninstalled and press Enter.
Observe the list of rpms that will be installed or upgraded and press Enter.
101
Stopping vxdclid
Stopping vxatd
Stopping fdd
Stopping vxportal
Stopping vxfs
Stopping vxconfigbackupd
Stopping vxsited
Stopping vxattachd
Stopping vxcached
Stopping vxrelocd
Stopping vxnotify
Stopping vxesd
Stopping vxconfigd
Stopping vxspec
Stopping vxio
Stopping vxdmp
B95
Uninstalling VRTSperl
Uninstalling VRTSvlic
Performing SFHA postremove tasks
102 B96
Starting vxrelocd
Starting vxcached
Starting vxconfigbackupd
Starting vxattachd
Starting vxsvc
Starting sfmh-discovery
Starting vxportal
Starting fdd
Starting llt
Starting gab
Starting vxfen
Starting amf
Starting had
Starting CmdServer
Starting vxdbd
Starting vxodm
Performing SFHA poststart tasks
Observe that the CPI attempts to connect to the SORT web site to
determine if there are product updates.
Note: Since the lab environment does not provide this connectivity, the
connection to SORT will fail.
103
Notice that the installer log files, summary file, and response file are saved
at:
/opt/VRTS/install/logs/installer-yyyymmddhhmmxxx
Note: The the CPI ends at this point and control is returned to the login shell.
End of Solution
B97
Navigate to the log file location. Then navigate to the sub directory named
upgrade and perform a recursive listing of the directory.
Note: Elements of the SFHA51.SP1 configuration were saved to assist in any
rollback of the upgrade.
Solution
104 B98
cd /opt/VRTS/install/logs/
installer-yyyymmddhhmmxxx
cd upgrade
ls -lR *
new_conf:
total 180
-rwx------rwx------rwx------rwx------rwx------rwx------rwx------rwx------
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
1087 Jan 12 14:01 Db2udbTypes.cf
root
1073 Nov 14 09:32 iSCSItypes.cf
root
122 Jan 12 14:01 main.cf
root 139763 Jan 12 14:01 main.cmd
root
636 Jan 12 14:01 OracleASMTypes.cf
root
1545 Jan 12 14:01 OracleTypes.cf
root
2329 Jan 12 14:01 SybaseTypes.cf
root 12125 Nov 14 09:32 types.cf
old_conf:
total 172
-rwx------rwx------rwx------rwx------rwx------rwx------rwx------
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
944 Jan 12 13:50 Db2udbTypes.cf
root
122 Jan 12 14:01 main.cf
root 135262 Jan 12 14:01 main.cmd
root
632 Jan 12 13:50 OracleASMTypes.cf
root
1434 Jan 12 13:50 OracleTypes.cf
root
836 Jan 12 13:50 SybaseTypes.cf
root 11310 Oct 1 2010 types.cf
old_config:
total 236
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
-rwx------ 1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
944 Jan 12 13:50 Db2udbTypes.cf
root
944 Jan 12 13:50 Db2udbTypes.cf.12Jan2012.13.50.56
root
944 Oct 20 16:03 Db2udbTypes.cf.previous
root
3026 Jan 12 13:50 main.cf
root
3026 Jan 12 13:50 main.cf.12Jan2012.13.50.56
root
3026 Dec 8 12:24 main.cf.previous
root 139259 Jan 12 14:01 main.cmd
root
632 Jan 12 13:50 OracleASMTypes.cf
root
632 Jan 12 13:50 OracleASMTypes.cf.12Jan2012...
root
632 Oct 20 16:03 OracleASMTypes.cf.previous
root
1434 Jan 12 13:50 OracleTypes.cf
root
1434 Jan 12 13:50 OracleTypes.cf.12Jan2012.13.50.56
root
1434 Oct 20 16:03 OracleTypes.cf.previous
root
836 Jan 12 13:50 SybaseTypes.cf
root
836 Jan 12 13:50 SybaseTypes.cf.12Jan2012.13.50.56
root
836 Oct 20 16:03 SybaseTypes.cf.previous
root 11170 Jan 12 13:50 types.cf
root 11170 Jan 12 13:50 types.cf.12Jan2012.13.50.56
root 11170 Oct 20 16:03 types.cf.previous
result_config:
total 156
-rwx------ 1 root root
4947 Jan 12 14:01 custom.cmd
-rwx------ 1 root root 143796 Jan 12 14:01 main.cmd
End of Solution
cd /opt/VRTS/install
105
Packages:
Installed Required packages for Veritas Storage Foundation and High
Availability 6.0:
#PACKAGE
#VERSION
VRTSamf
6.0.000.000
VRTSaslapm
6.0.000.000
VRTSfsadv
6.0.000.000
VRTSgab
6.0.000.000
VRTSllt
6.0.000.000
VRTSperl
5.12.2.6
VRTSsfcpi60 6.0.000.000
VRTSvcs
6.0.000.000
VRTSvcsag
6.0.000.000
VRTSvlic
3.02.60.007
VRTSvxfen
6.0.000.000
VRTSvxfs
6.0.000.000
VRTSvxvm
6.0.000.000
Installed Optional packages for Veritas Storage Foundation and High
Availability 6.0:
#PACKAGE
#VERSION
VRTScps
6.0.000.000
VRTSdbed
6.0.000.000
VRTSfssdk
6.0.000.000
VRTSlvmconv 6.0.000.000
VRTSob
3.4.526
VRTSodm
6.0.000.000
VRTSsfmh
4.1.119.0
VRTSspt
6.0.000.000
VRTSvbs
6.0.000.000
VRTSvcsdr
6.0.000.000
B99
VRTSvcsea
6.0.000.000
Summary:
Packages:
13 of 13 required Veritas Storage Foundation and High Availability
6.0
packages installed
11 of 11 optional Veritas Storage Foundation and High Availability
6.0
packages installed
Attempted to connect to https://sort.symantec.com to check for product
updates,
but connection failed.
Please visit https://sort.symantec.com to check for available product
updates
and information.
Installed product(s) on sym4:
Veritas Storage Foundation and High Availability - 6.0
Product:
Veritas Storage Foundation and High Availability - 6.0
Packages:
Installed Required packages for Veritas Storage Foundation and High
Availability 6.0:
#PACKAGE
#VERSION
VRTSamf
6.0.000.000
VRTSaslapm
6.0.000.000
VRTSfsadv
6.0.000.000
VRTSgab
6.0.000.000
VRTSllt
6.0.000.000
VRTSperl
5.12.2.6
VRTSsfcpi60 6.0.000.000
VRTSvcs
6.0.000.000
VRTSvcsag
6.0.000.000
VRTSvlic
3.02.60.007
VRTSvxfen
6.0.000.000
VRTSvxfs
6.0.000.000
VRTSvxvm
6.0.000.000
106 B100
packages installed
Attempted to connect to https://sort.symantec.com to check for product
updates,
but connection failed.
Please visit https://sort.symantec.com to check for available product
updates
and information.
End of Solution
Perform a post installation check on the upgraded SFHA 6.0 cluster on sym3
and sym4 using the following information. To facilitate reviewing the log file
if errors occur, record the directory /opt/VRTS/install/logs directory
that contains the installer log files.
Product: Veritas Storage Foundation and High Availability (SFHA)
RHEL system names: sym3 and sym4
Do not view the summary file
Directory within the /opt/VRTS/install/logs directory that contains the
log files:
The directory will be in the form installer-yyyymmddhhmmxxx
Solution
107
System communication
Release compatibility
Installed product
Platform version
Product prechecks
B101
Notice that the installer log files, summary file, and response files are
saved at:
/opt/VRTS/install/logs/installer-yyyymmddhhmmxxx
Note: The CPI ends at this point and control is returned to the login shell.
End of Solution
108 B102
sym3
Note: You may optionally perform the steps in this exercise on both the sym3
and sym4 cluster nodes, though it is not strictly necessary to do so.
1 sym4
State
OPEN
Link
Status
Address
eth4
eth5
UP
UP
00:0C:29:97:FB:5D
00:0C:29:97:FB:67
eth4
eth5
UP
UP
00:0C:29:C4:1D:0A
00:0C:29:C4:1D:14
OPEN
End of Solution
109
Use the gabconfig command to display the Group Membership and Atomic
Broadcast (GAB) status.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
857802 membership 01
Port b gen
857801 membership 01
Port h gen
857805 membership 01
End of Solution
B103
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
sym3
sym4
RUNNING
RUNNING
0
0
--B
B
B
B
B
B
GROUP STATE
Group
ClusterService
ClusterService
dbsg
dbsg
websg
websg
System
sym3
sym4
sym3
sym4
sym3
sym4
Probed
Y
Y
Y
Y
Y
Y
AutoDisabled
N
N
N
N
N
N
State
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
cat /etc/llttab
set-node sym3
set-cluster 777
link eth4 eth-00:0c:29:97:fb:5d - ether - link eth5 eth-00:0c:29:97:fb:67 - ether - -
cat /etc/llthosts
0 sym3
1 sym4
End of Solution
110
Examine the GAB configuration and verify that the number of systems in the
cluster matches the value for the -n flag in the /etc/gabtab file.
Solution
cat /etc/gabtab
/sbin/gabconfig -c -n2
End of Solution
B104
Verify the VCS cluster name and system names by examining the
/etc/VRTSvcs/conf/config/main.cf file.
Solution
more /etc/VRTSvcs/conf/config/main.cf
include
include
include
include
include
"OracleASMTypes.cf"
"types.cf"
"Db2udbTypes.cf"
"OracleTypes.cf"
"SybaseTypes.cf"
cluster east (
UserNames = { admin = hOPhOJoLPkPPnXPjOM, oper = GnnVohMmoI }
ClusterAddress = "10.10.2.52"
Administrators = { admin }
UseFence = SCSI3
)
system sym3 (
)
system sym4 (
)
group ClusterService (
SystemList = { sym3 = 0, sym4 = 1 }
AutoStartList = { sym3, sym4 }
OnlineRetryLimit = 3
--More--(14%)
...
Press the space bar multiple times to display the contents of the file.
End of Solution
Solution
111
more /var/VRTSvcs/log/engine_A.log
#
#
#
#
#
#
Log Name:
System:
SysInfo:
Created:
2011/11/02
2011/11/02
2011/11/02
2011/11/02
2011/11/02
2011/11/02
engine
sym3
Linux:sym3,#1 SMP Tue Mar 16 21:52:39 EDT 2010,2.6.18...
2011/11/02 08:12:16
08:12:16
08:12:16
08:12:16
08:12:16
08:12:16
08:12:16
VCS
VCS
VCS
VCS
VCS
VCS
B105
2011/11/02 08:12:16
2011/11/02 08:12:16
2011/11/02 08:12:16
2011/11/02 08:12:16
--More--(7%)
...
VCS
VCS
VCS
VCS
Press the space bar multiple times to display the contents of the file. Type
q after browsing a few pages as it is not necessary to view the entire log
file.
End of Solution
End of lab
112
B106
Exercise 2: Orientation
Terminal windows on sym3 and sym4 are set up and the Veritas Cluster
Manager - Java Console is opened.
113
B107
114
B108
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
There is no need to log into this virtual machine at this time.
winclient
Log in with credentials:
Account: Administrator
Password: veritas
sym3
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym4
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
115
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you to
power on and log into winclient.
B109
Exercise 2: Orientation
In this exercise, you setup the terminal windows on sym3 and sym4 that are
needed to perform this lab and open the Veritas Cluster Manager Java Console
on winclient.
sym3
1
hagrp -state
#Group
ClusterService
ClusterService
dbsg
dbsg
websg
websg
116
Attribute
State
State
State
State
State
State
System
sym3
sym4
sym3
sym4
sym3
sym4
Value
|OFFLINE|
|ONLINE|
|OFFLINE|
|ONLINE|
|OFFLINE|
|ONLINE|
hagrp -state
#Group
ClusterService
ClusterService
dbsg
dbsg
websg
websg
Attribute
State
State
State
State
State
State
System
sym3
sym4
sym3
sym4
sym3
sym4
Value
|ONLINE|
|OFFLINE|
|ONLINE|
|OFFLINE|
|ONLINE|
|OFFLINE|
End of Solution
B110
cd /var/tmp
ls -l db* web*
-rw-------rw-------rw-------rw-------rw-------rw-------rw-------rw-------rw-------rw-------rw-------rw-------rw-------
1
1
1
1
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
0
0
0
0
0
0
0
0
0
0
0
0
0
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
1
1
1
1
1
1
1
1
1
1
1
1
1
12:33
12:33
12:33
12:33
12:33
12:33
12:33
12:33
12:33
12:33
12:33
12:33
12:33
dbdg
dbip
dblistener
dbmnt
dbnic
dboracle
dbvol
webapache
webdg
webmnt
webnic
webvip
webvol
End of Solution
winclient
117
Open the Veritas Cluster Manager Java Console and add a new cluster for
the east cluster using the following information:
Host name: east (alternately, use east.example.com or 10.10.2.52)
Port: 14141 (the default value)
Failover retries: 12 (the default value)
Solution
From the Cluster Monitor window, from the menu, select File > New
Cluster.
Note: Alternately, click the New Cluster button.
B111
From the New Cluster window, in the Host name field, type: east
Note: Alternately, you may substitute the IP address, 10.10.2.52, or the
fully qualified host name, east.example.com. If you do so,
substitute this name in the lab instructions that reference the east
cluster.
Leave the Port and Failover retires fields at their default values, 14141
and 12 respectively.
Click OK.
End of Solution
118
B112
winclient
1
From the Veritas Cluster Manager Java Console (opened in the previous
exercise), log into the east cluster using the following credentials:
User name: oper
password: oper
Note: After login, the cluster explorer window will be displayed.
Solution
From the Cluster Monitor window, click Click here to log in.
Click OK.
End of Solution
119
From the east Cluster Explorer window, determine the number of cluster
members.
Number of members in this cluster:
Solution
Note: Steps a through c may be redundant as the default starting view of the
Cluster Explorer gives the same results as following these steps.
B113
Notice that the Systems label points to two columns, one for sym3 and one
for sym4.
End of Solution
System sym3
System sym4
ClusterService
Online
Offline
dbsg
Online
Offline
websg
Online
Offline
Solution
From the right pane, notice that for sym3, ClusterService, dbsg and
websg are Online.
Notice that for sym4, ClusterService, dbsg and websg are Offline.
End of Solution
120 B114
Determine which service groups have the service group operator privileges set
for the oper account.
Service Group
ClusterService
No
dbsg
No
websg
Yes
Solution
From the left pane, select the east > ClusterService service group.
From the Attributes View window, scroll down and select the Operators
attribute.
Repeat steps a f for the dbsg service group and the websg service group
to find that only the websg service group grants Operator privileges for
the oper account.
End of Solution
Determine which resources in the websg service group have the Critical
resource attribute enabled.
Resource
webapache
No
webmnt
Yes
webvip
Yes
webvol
No
webnic
Yes
webdb
No
Solution
121
From the left pane, select the east > websg service group.
B115
For each of the resources, mouse over the resource and notice from the tool
tip if Critical is set.
End of Solution
Determine which resource is the top-most parent in the dbsg service group and
on which child resource does the dboracle resource depend.
top-most parent in the dbsg service group:
dblistener
dbmnt
Solution
122 B116
From the left pane select the east > dbsg service group.
Notice that the dboracle resource depends on its child resource, dbmnt.
End of Solution
123
B117
winclient
1
From the east Cluster Explorer window (opened and logged into in a
previous exercises), attempt to take the ClusterService service group offline
on the sym3 system. What happens and why?
You cannot take the ClusterService group offline because, as the oper user, you do
not have privileges for this service group.
Solution
124 B118
From left pane, right-click the east > ClusterService service group.
Notice that there is not an Offline menu item to allow you to take the
ClusterService service group offline.
End of Solution
Attempt to take the websg service group offline on the sym4 system. What
happens and why?
Although, as the oper user, you have privileges to take the websg service group
offline, websg is a failover service group and is currently online on sym3. Therefore,
websg is already offline on sym4 and not provided as an alternative selection in the
menu.
Solution
125
From the left pane, right-click the east > websg service group and select
Offline.
Notice that there is not a sym4 menu item to take the take the websg
service group offline on sym4.
End of Solution
B119
Attempt to take the websg service group offline on sym3. What happens and
why?
The Offline selection is displayed for the websg service group and as the oper user,
you have privileges to take the group offline. Since websg is online on sym3, it can be
taken offline.
Solution
From the left pane, right-click the east > websg service group and select
Offline > sym3.
End of Solution
Attempt to bring the websg service group online on sym4. What happens and
why?
As the oper user, you have privileges to bring the websg service group online. Since
websg is offline on both sym3 and sym4, it can be brought online on sym4.
Solution
126 B120
From the left pane, right-click the east > websg service group and select
Online > sym4.
End of Solution
Attempt to take the websg service group offline everywhere. What happens
and why?
As the oper user, you have privileges to take the websg service group offline. Since
websg is online on sym4, it can be taken offline everywhere.
Veritas Cluster Server 5.1 for UNIX: Install and Configure
Copyright 2012 Symantec Corporation. All rights reserved.
Solution
From the left pane, right-click the east > websg service group and select
Offline > All systems.
From the result window, read the message and click OK.
End of Solution
From the left pane, right-click the east > websg service group and select
Online > sym4.
End of Solution
Attempt to switch the websg service group to the sym3 system. What happens
and why?
As the oper user, you have privileges to switch the websg service group. Since websg
is online on sym4 and offline on sym3, it can be switched to sym3. In a two node
cluster, selecting Any System would also switch websg from sym4 to sym3.
127
Solution
From the left pane, right-click the east > websg service group and select
Switch To > sym3.
End of Solution
B121
winclient
1
Log out of the east Cluster Explorer window (opened and logged into in a
previous exercises) and from the Cluster Monitor window, log into the
10.10.2.52 cluster with the following credentials:
User name: admin
password: password
Solution
From the Cluster Monitor window, click Click here to log in.
Click OK.
End of Solution
128 B122
Attempt to take the dblistener resource in the dbsg service group offline on
the sym3 system. What is the status of dbsg? Why does dbsg not fail over to
the sym4 system?
After taking the dblistener resource offline, the dbsg service group shows a status of
Partial Online on the sym3 system. The dbsg does not fail over even though
dblistener is marked as critical. Taking a resource offline does not cause a failover.
Solution
From the left pane, select the east > dbsg service group.
From the right pane, notice the status of dbsg on sym3 is Partial Online.
End of Solution
From the left pane, select the east > dbsg service group.
End of Solution
129
Attempt to take the dbmnt resource offline on the sym3 system. What
happens and why?
You cannot take the dbmnt resource offline because a dependent resource (dboracle)
is online.
Solution
From the right pane, right-click the dbmnt resource and select Offline >
sym3.
B123
Click OK.
End of Solution
Attempt to bring the dblistener resource online on the sym4 system. What
happens and why?
You cannot bring the dblistener resource online on the sym4 system because dbsg is
a failover service group that is already online on sym3.
Solution
From the right pane, right-click the dblistener resource and select
Online > sym4.
Notice the error window stating Cannot online: resources group is not
offline elsewhere.
End of Solution
sym3
130 B124
From sym3:terminal1, fault the dboracle resource in the dbsg service group
by removing the /var/tmp/dboracle file and executing the command
hares -probe dboracle -sys sym3.
Solution
cd /var/tmp
rm dboracle
End of Solution
winclient
From the east Cluster Explorer window, determine what happened to the
dbsg service group and the dboracle resource?
The dbsg service group has failed over to the sym4 system due to the dboracle
resource being faulted.
Solution
From the right pane, from the bottom bar, notice that the sym3 icon is
surrounded by a red box indicating it has faulted.
Notice that the dboracle resource is marked with a red X indicating it has
faulted.
From the right pane, notice that the status of the dbsg service group is
Faulted on sym3 and Online on sym4.
End of Solution
131
B125
From the Logs window, Scroll through the log entries paying particular
attention to any Critical, Error or Warning entries.
End of Solution
Attempt to switch the dbsg service group back to the sym3 system. What
happens and why?
The Switch To option is not available. You cannot switch a service group to a system
where it is faulted.
Solution
From the left pane, right-click the east > dbsg service group.
End of Solution
10 Clear the fault on the dboracle resource in the dbsg service group.
Solution
132 B126
From the left pane, select the east > dbsg service group.
Right-click the dboracle resource and select Clear Fault > sym3.
End of Solution
From the left pane, right-click the east > dbsg service group and select
Switch To > sym3.
End of Solution
133
B127
winclient
1
From the east Cluster Explorer window (opened and logged into in a
previous exercises), open the cluster for update.
Solution
Set all resources for the dbsg service group to critical. These resources should
be:
dbip
dbnic
dbmnt
dbvol
dbdg
Solution
134 B128
For each of the dbsg resources, mouse over the resource and notice from
the tool tip that Critical is set.
Note: If Critical is not set, then right-click the resource and select
Critical.
End of Solution
Set all resources for the websg service group to critical. These resources
should be:
webapache
webdg
webvol
Solution
135
For each of the websg resources, mouse over the resource and notice from
the tool tip that Critical is set.
Note: If Critical is not set, then right-click the resource and select
Critical.
End of Solution
B129
winclient
1
From the east Cluster Explorer window (opened and logged into in a
previous exercises), add a new failover service group named appsg with a
system list of sym3 and sym4 and configure it to auto start on either system
with preference for sym3.
Note: This is a faux service group similar to the websg and dbsg service
groups. The resources that will added to this group in a later step will
all be of type FileOnOff.
Solution
136 B130
From the Add Service Group window, in the Service Group name field,
type: appsg
Double-click sym4.
From the Systems for Service Group list, from the Startup column, mark
Startup for both systems.
Click OK.
From the east Cluster Explorer window, from the left pane, select
east > appsg.
End of Solution
Solution
137
From the east Cluster Explorer window, from the right pane, select the
Resources tab.
Right-click anywhere in the Resource View pane and click Add Resource.
From the Add Resource window, in the Resource name field, type:
appnic
From the attribute list, from the PathName attribute row, from the Edit
column, click the Edit icon.
From the Edit Attribute window, in the Scalar Value field, type:
/var/tmp/appnic
B131
Click OK.
Mark Enabled.
Click OK.
End of Solution
Bring the appnic resource Online on sym3. Then, make the resource critical
and review its attributes to confirm it has been configured correctly. Finally,
save the configuration.
Note: A real resource of type NIC does not have to be brought online. The
appnic resource is a faux NIC resource of type FileOnOff and so it
does need to be brought online.
Solution
138 B132
From the east Cluster Explorer window, from the right pane, right-click
the appnic resource and select Online > sym3.
Mouse over the appnic resource and notice from the tool tip that it is online
on sym3, not critical and Enabled.
Right-click the appnic resource and select View > Properties View.
From the Attributes window, review the Critical, Enabled and File Name
attributes.
Note: You may review other attributes to confirm that the appnic
resource has been configured correctly.
From the east Cluster Explorer window, from the menu, select
File > Save Configuration.
End of Solution
139
B133
Repeat step 3 to bring the appip, appdg, appvol, appmnt and appproc
resources Online on sym3. Then, make the resources critical and review their
attributes to confirm they have been configured correctly. Finally, save the
configuration.
Note: After the resources have been created and brought online, the resource
pane for the appsg service group should appear similar to the following:
140 B134
Link the resources in the appsg service group using the following information.
Then, save the configuration.
Solution
From the Resource View (right) pane, right-click the appip resource and
select Link.
Click OK.
Click OK.
Click OK.
Click OK.
Click OK.
End of Solution
Note: After the resources have been created and brought online, the resource
pane for the appsg service group should appear similar to the following:
141
B135
winclient
1
From the east Cluster Explorer window (opened and logged into in a
previous exercises), add a new failover service group named testappsg with a
system list of sym3 and sym4 and configure it to auto start on either system
with preference for sym3.
Note: This is a faux service group similar to the websg, dbsg, and appsg
service groups. The resources that will added to this group in a later
step will all be of type FileOnOff.
Solution
142 B136
From the Add Service Group window, in the Service Group name field,
type: testappsg
Double-click sym4.
From the Systems for Service Group list, from the Startup column, mark
Startup for both systems.
Click OK.
From the east Cluster Explorer window, from the left pane, select
east > teatappsg.
End of Solution
Copy the resources from the appsg service group to the currently empty
testappsg service group.
Solution
Right-click the appproc resource and select Copy > Self and Child
Nodes.
From the right pane, right-click in the blank Resource View pane and
select Paste.
From the Name Clashes window, from the Correction drop-down menu,
select Insert at the beginning.
Click Apply.
Click OK.
End of Solution
B137
Solution
From the right pane, right-click the appproc resource and select
View > Properties View.
From the Properties View window, scroll down to the File Name attribute
and click the Edit button.
Note: The PathName attribute is labeled File Name in this window.
From the Edit Attribute window, in the Scalar Value field, type:
/var/tmp/testappproc
144 B138
Click OK.
End of Solution
testappnic
testappip
testappdg
testappvol
testappmnt
testappproc
Solution
From the right pane, right-click the testappnic resource and select
Enabled.
End of Solution
From the left pane right-click east > testappsg and select Online > sym3.
End of Solution
Solution
B139
Log out of the east Cluster Explorer window. Then, close the Cluster
Monitor window.
Solution
From the Cluster Monitor window, from the menu, select File > Exit.
End of Solution
End of lab
146 B140
B141
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
There is no need to log into this virtual machine at this time.
sym3
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym4
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
148 B142
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you
shutdown winclient.
sym3
1
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
VCS cannot be stopped normally if the VCS configuration is open for update.
Solution
haconf -makerw
hastop -all
VCS WARNING V-16-1-10028 Cluster configuration is writable. Must do 'haconf
-dump -makero' or 'hastop -all -force'
End of Solution
B143
Use the haconf command to save and close the cluster configuration. Then,
use the hastop command to attempt to stop VCS on all systems and review
the log entries. What happens and why?
VCS shuts down normally. The VCS engine log indicates that all resources are
brought offline, meaning that all application elements under VCS management are
shutdown as well.
Solution
hastop -all
End of Solution
Port h membership should NOT be present for either system. This indicates that the
VCS engine, the high availability daemon (HAD), is not running.
Solution
150 B144
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
End of Solution
Use the hastart command to start VCS on sym3 and observe the engine
log.
Solution
hastart
End of Solution
Solution
151
End of Solution
B145
sym3
1
haconf -makerw
End of Solution
cd /etc/VRTSvcs/conf/config
ls -l main.cf.autobackup
ls: main.cf.autobackup: No such file or directory
End of Solution
152 B146
Change the BackupInterval cluster attribute to three minutes. Verify the value
of this cluster attribute before and after making the change.
Note: Do NOT save the cluster configuration at this time.
Solution
End of Solution
Wait for three minutes (the backup interval) and then list the
main.df.autobackup files to verify that an autobackup file exists.
Solution
sleep 180
ls -l main.cf.autobackup
-rw------- 1 root root 4802 Jan 24 10:08 main.cf.autobackup
End of Solution
BackupInterval = 3
End of Solution
153
Save and close the VCS cluster configuration. Then, list the main.cf and
main.df.autobackup files. What has happened?
The main.cf.autobackup file has been deleted and a new main.cf file is saved.
Solution
ls -l main.cf main.cf.autobackup
ls: main.cf.autobackup: No such file or directory
-rw------- 2 root root 4802 Jan 24 10:12 main.cf
End of Solution
B147
sym3
1
haconf -makerw
End of Solution
Display the current EngineShutdown cluster attribute. Then, display the valid
vales for the EngineShutdown cluster attribute by assigning an invalid value
of foo. Finally, change and verify the EngineShutdown cluster attribute to
disable all hastop commands.
Solution
154 B148
Disable
End of Solution
Save and close the cluster configuration and then attempt to stop the VCS
engine on all systems. What happens?
An error is given when the hastop -all command is used stating, Cannot stop engine
as EngineShutdown is set to Disable.
Solution
hastop -all
VCS ERROR V-16-1-10607 Cannot stop engine as EngineShutdown is set to
Disable
End of Solution
Attempt to force stop the VCS engine on all systems by overriding the
EngineShutdown setting. What happens?
Solution
155
End of Solution
Confirm that the VCS engine is shutdown on both sym3 and sym4 by
determining if GAB port h is active. Can you display a summary cluster status
using the hastatus command?
The hastatus -sum command will not display summary information when the
VCS engine is shut down.
B149
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
hastatus -sum
VCS ERROR V-16-1-10600 Cannot connect to VCS engine
VCS WARNING V-16-1-11046 Local system not available
End of Solution
Use the hastart command to start VCS on each system in the cluster.
Confirm VCS has started on sym3 before starting it on sym4.
Note: The double entry for port h indicates that the VCS engine is running on
sym4 and that GAB is running on sym3, but port h is closed
Solution
156 B150
hastart
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
e9dc01 membership 01
Port b gen
e9dc03 membership 01
Port h gen
e9dc0d membership 0
Port h gen
e9dc0d
visible ;1
Note: The double entry for port h indicates that the VCS engine is
running on sym3 and that GAB is running on sym4, but port h is
closed.
c
End of Solution
Confirm that the VCS engine is started on both sym3 and sym4 by
determining if GAB port h is active.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
Port h gen
20f710 membership 01
End of Solution
Use the haconf command to open the cluster configuration for update and
change and verify the EngineShutdown attribute to prompt before allowing a
command to stop all systems in the cluster.
Solution
157
haconf -makerw
End of Solution
B151
Save and close the cluster configuration and attempt to stop the VCS engine on
all systems. What happens?
Solution
hastop -all
Are you sure you want to stop VCS (yes/no)?
y
Please type 'yes' or 'no':
yes
End of Solution
10 Confirm that the VCS engine is shutdown on both sym3 and sym4 by
158 B152
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
End of Solution
11 Start VCS on each system in the cluster using the hastart command.
hastart
gabconfig -a
Note: The double entry for port h indicates that the VCS engine is
running on sym3 and that GAB is running on sym4, but port h is
closed.
c
End of Solution
12 Confirm that the VCS engine is started on both sym3 and sym4 by
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
Port h gen
20f710 membership 01
End of Solution
13 Use the hastop command to attempt to stop the VCS engine locally on
VCS is stopped on the local system without any prompt to confirm because
159
Solution
hastop -local
Notice that VCS is stopped on the local system without any prompt.
End of Solution
B153
14 Confirm that the VCS engine is stopped on sym3, but not on sym4 by
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
Note: The double entry for port h indicates that the VCS engine is running
on sym4 and that GAB is running on sym3, but port h is closed
End of Solution
15 Use the hastart command to start VCS on sym3 cluster and confirm that
the VCS engine is started on both sym3 and sym4 by determining if GAB
port h is active.
Solution
160 B154
hastart
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
20f703 membership 01
Port b gen
20f705 membership 01
Port h gen
20f710 membership 01
End of Solution
16 Use the haconf command to open the cluster configuration for update and
change and verify the EngineShutdown attribute to Enable. Then save and
close the cluster configuration.
Solution
haconf -makerw
End of Solution
End of lab
161
B155
162 B156
163
B157
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
There is no need to log into this virtual machine at this time.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
164 B158
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you to
shutdown sym3 and sym4, and power on and log into sym1 and sym2.
sym1
1
165
TYPE
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:none
auto:none
DISK
-
GROUP
STATUS
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
(loopydatadg) online
(sharedatadg) online
online
online
online
online
online
online
online invalid
online invalid
vxdg list
loopydatadg
enabled,cds
1319645563.37.sym1
End of Solution
B159
vxinfo -g loopydatadg -p
vol loopydatavol
fsgen
plex loopydatavol-01 ACTIVE
Started
End of Solution
Use the ls -ld /loopyfs command to confirm the presence of the loopy
file system mount point.
Solution
ls -ld /loopyfs
drwxr-xr-x 2 root root 4096 Oct 26 06:46 /loopyfs
End of Solution
Mount the Veritas file system created on the loopydatavol volume in the
loopydatadg disk group to the /loopyfs mount point and use the /bin/
mount command to confirm that the file system is mounted.
Solution
166 B160
df -h /loopyfs
df -h /loopyfs
Filesystem
Size Used Avail Use% Mounted on
/dev/vx/dsk/loopydatadg/loopydatavol
1.0G
19M 943M
2% /loopyfs
End of Solution
sym1
1
cd /loopyfs
ls -l
total 52
-rwxr-xr-x
-rw-r--r-drwxr-xr-x
-rwxr-xr-x
-rwxr-xr-x
1
1
2
1
1
root
root
root
root
root
root
310 Oct 26 12:10
root 49391 Nov 4 07:29
root
96 Oct 26 09:23
root
262 Oct 26 12:46
root
211 Oct 26 12:58
loopy
loopyout
lost+found
startloopy
stoploopy
End of Solution
Examine the contents of the loopy script. How does it function? How does it
use script arguments? To what file does it write output? Examine the contents
of the output file to confirm your findings.
The loopy script accepts one argument which it includes in date-time stamped
167
Solution
more loopy
#!/bin/ksh
# Loopy script for VCS class.
#############################
#
# $1 is Service Group name
# $0 is name of shell script being executed
#
B161
while true
do
echo `date` ${1} Loopy is alive >> ${0}out
sleep 4
echo `date` ${1} Loopy is still alive >> ${0}out
sleep 4
done
Notice that the comments at the beginning of the script indicate that the
first script argument, $1, should be a Service Group name.
Note: You will create the service group in a later lab.
Notice that since the ${0} argument translates to the name of the script
which is loopy, ${0}out then translates to loopyout and so the message is
appended to the loopyout file.
head loopyout
Wed
Wed
Wed
Wed
Wed
Wed
Wed
Wed
Wed
...
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
26
26
26
26
26
26
26
26
26
11:29:51
11:29:55
11:29:59
11:30:03
11:30:07
11:30:11
11:30:15
11:30:19
11:38:23
PDT
PDT
PDT
PDT
PDT
PDT
PDT
PDT
PDT
2011
2011
2011
2011
2011
2011
2011
2011
2011
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
is
is
is
is
is
is
is
is
is
alive
still
alive
still
alive
still
alive
still
alive
alive
alive
alive
alive
End of Solution
168 B162
sym1
1
From sym1:terminal1, use the ./loopy test & command to start the
loopy script in the background. Then, use the tail -f command to monitor
the loopyout file for a short time.
Solution
tail -f loopyout
Fri
Fri
Fri
Fri
Fri
Nov
Nov
Nov
Nov
Nov
4
4
4
4
4
08:01:54
08:01:58
08:02:02
08:02:06
08:02:10
PDT
PDT
PDT
PDT
PDT
2011
2011
2011
2011
2011
test
test
test
test
test
Loopy
Loopy
Loopy
Loopy
Loopy
is
is
is
is
is
still alive
alive
still alive
alive
still alive
End of Solution
169
B163
Use the ip addr show eth0 command to confirm the new address has
been removed.
Solution
ping -c 3 10.10.2.61
170 B164
--- 10.10.2.61 ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 6001ms
rtt min/avg/max/mdev = 0.023/0.027/0.031/0.003 ms
End of Solution
Using the ps -ef | grep loopy to identify the process id of the loopy
process. Then use the kill <process id> command to stop the loopy
script execution.
Solution
2406
2431
6047
6047
0 14:48 pts/3
0 14:49 pts/3
Press Enter.
[1]+
Terminated
./loopy test
10814
8924
0 11:08 pts/2
End of Solution
Navigate to the root directory, unmount /loopyfs and confirm that it has
been unmounted. Then deport the loopydatadg disk group and confirm the
deportation.
Solution
171
cd /
umount /loopyfs
vxdg -list
End of Solution
B165
End of lab
172 B166
173
B167
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
There is no need to log into this virtual machine at this time.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
174 B168
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, you will not need to
shutdown or power on any virtual machines.
sym1
1
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
Solution
175
cd /etc/VRTSvcs/conf/config
haconf -makerw
B169
Modify the SystemList to allow the appsg service group to run on sym1 and
sym2 preferentially in that order. Then, modify the AutoStartList to allow
appsg to start preferentially on sym1 and then on sym2.
Solution
End of Solution
Confirm the appsg configuration and save the VCS configuration without
closing it. Then, identify the changes recorded to the main.cf file by
comparing it to the main.cf.previous file.
Solution
#Group
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
...
appsg
...
appsg
...
176 B170
Attribute
AdministratorGroups
Administrators
Authority
AutoFailOver
AutoRestart
AutoStart
AutoStartIfPartial
AutoStartList
AutoStartPolicy
ClusterFailOverPolicy
System
global
global
global
global
global
global
global
global
global
global
Value
Parallel
global
SystemList
global
sym1
haconf -dump
0
1
1
1
1
sym1
Order
Manual
sym2
sym2
End of Solution
sym1
Note: Throughout this exercise, the use of VCS CLI commands using the -wait
switch is optional and simply provides a timing or pacing mechanism
between commands.
177
Attribute
Group
Type
AutoStart
Critical
Enabled
System
global
global
global
global
global
Value
appsg
NIC
1
0
0
B171
...
appnic
...
Device
global
eth0
End of Solution
Enable the appnic resource by setting the Enabled attribute to 1. Use hares
commands to confirm that it is enabled by displaying the Enabled attribute
and by displaying the state of the appnic resource. Then, display the state of
the appsg service group and save the VCS configuration without closing it and
identify the changes recorded to the main.cf file by comparing it to the
main.cf.previous file.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
ONLINE
#Group
appsg
appsg
178 B172
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|
|OFFLINE|
Note: The service group state is offline even though the NIC resource
state is online. VCS does not consider persistent resources when
determining the state of a service group.
e
haconf -dump
End of Solution
Use the hares command to add a resource of type IP named appip to the
appsg service group. Then, display the appip resource to confirm that your
input and the key default resource attributes have been defaulted. The
following resource attributes and values are to be configured.
Critical: 0
Device: eth0
Address: 10.10.2.61
NetMask: 255.255.255.0
Solution
Attribute
Group
Type
AutoStart
Critical
Enabled
System
global
global
global
global
global
Value
appsg
IP
1
0
0
Address
global
10.10.2.61
Device
global
eth0
NetMask
global
255.255.255.0
End of Solution
179
Use hares commands to enable the appip resource by setting the Enabled
attribute to 1 and to confirm that it is enabled by displaying the attribute.
Solution
End of Solution
B173
Use the hares command to bring the appip resource online on sym1 and
wait for it to come online. Then, use the hares command to confirm that the
appip resource is online by displaying its state. Finally, from the operating
system, use the ip addr command to confirm that appip is online.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
End of Solution
Display the state of the appsg service group and save the VCS configuration
without closing it and identify the changes recorded to the main.cf file by
comparing it to the main.cf.previous file.
Solution
180 B174
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
Note: Now that there is at least one properly configured non persistent
resource, VCS can determine the state of the service group.
b
haconf -dump
End of Solution
Use the hares command to add a resource of type DiskGroup named appdg
to the appsg service group. Then, display the appdg resource to confirm that
your input and the key default resource attributes have been defaulted. The
following resource attributes and values are to be configured.
Critical: 0
DiskGroup: loopydatadg
Solution
Attribute
Group
Type
AutoStart
Critical
Enabled
System
global
global
global
global
global
Value
appsg
DiskGroup
1
0
0
DiskGroup
global
loopydatadg
StartVolumes
StopVolumes
global
global
1
1
End of Solution
181
Use hares commands to enable the appdg resource by setting the Enabled
attribute to 1 and to confirm that it is enabled by displaying the attribute.
Solution
End of Solution
B175
Use the hares command to bring the appdg resource online on sym1 and
wait for it to come online. Then, use the hares command to confirm that the
appdg resource is online by displaying its state. Also, use the vxdg list
command to confirm the disk group is online. Finally, save the VCS
configuration without closing it and identify the changes recorded to the
main.cf file by comparing it to the main.cf.previous file.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
vxdg list
NAME
loopydatadg
STATE
enabled,cds
ID
1319645563.37.sym1
haconf -dump
End of Solution
10 Use the hares command to add a resource of type Volume named appvol to
the appsg service group. Then, display the appdg resource to confirm that
your input and the key default resource attributes have been defaulted. The
following resource attributes and values are to be configured.
182 B176
Critical: 0
Volume: loopydatavol
DiskGroup: loopydatadg
Solution
Attribute
Group
Type
AutoStart
Critical
Enabled
System
global
global
global
global
global
Value
appsg
Volume
1
0
0
DiskGroup
global
loopydatadg
Volume
global
loopydatavol
End of Solution
11 Use hares commands to enable the appvol resource by setting the Enabled
End of Solution
12 Use the hares command to confirm that the appvol resource is online by
183
displaying its state. Then, from the operating system, use the
vxinfo -g loopydatadg -p command to confirm that the appvol
resource is online. Finally, save the VCS configuration without closing it and
identify the changes recorded to the main.cf file by comparing it to the
main.cf.previous file.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
vxinfo -g loopydatadg -p
vol loopydatavol
fsgen
plex loopydatavol-01 ACTIVE
Started
B177
haconf -dump
End of Solution
13 Use the hares command to add a resource of type Mount named appmnt to
the appsg service group. Then, display the appmnt resource to confirm that
your input and the key default resource attributes have been defaulted. The
following resource attributes and values are to be configured.
Critical: 0
BlockDevice: /dev/vx/dsk/loopydatadg/loopydatavol
FsckOpt (escape the dash using the % character): y
FSType: vxfs
MountPoint: /loopyfs
Solution
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before
agent monitors
184 B178
Attribute
Group
Type
AutoStart
Critical
Enabled
System
global
global
global
global
global
Value
appsg
Mount
1
0
0
BlockDevice
global
/dev/vx/dsk/loopydatadg/
FSType
FsckOpt
global
global
vxfs
-y
MountPoint
global
/loopyfs
End of Solution
14 Use hares commands to enable the appmnt resource by setting the Enabled
End of Solution
15 Use the hares command to bring the appmnt resource online on sym1 and
wait for it to come online. Then, use the hares command to confirm that the
appmnt resource is online by displaying its state.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
End of Solution
that the appmnt resource is online. Then, save the VCS configuration without
closing it and identify the changes recorded to the main.cf file by comparing
it to the main.cf.previous file.
185
Solution
df -h /loopyfs
Filesystem
Size Used Avail Use% Mounted on
/dev/vx/dsk/loopydatadg/loopydatavol
1.0G
19M 943M
2% /loopyfs
haconf -dump
B179
End of Solution
17 Use the hares command to add a resource of type Process named appproc to
the appsg service group, Then, display the appproc resource to confirm that
your input and the key default resource attributes have been defaulted. The
following resource attributes and values are to be configured.
Critical: 0
PathName: /bin/ksh
Arguments (double quotes are required): "/loppyfs/loopy appsg"
Solution
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before
agent monitors
186 B180
Attribute
Group
Type
AutoStart
Critical
Enabled
System
global
global
global
global
global
Value
appsg
Process
1
1
0
Arguments
global
/loopyfs/loopy appsg
PathName
global
/bin/ksh
End of Solution
18 Use hares commands to enable the appproc resource by setting the Enabled
End of Solution
19 Use the hares command to bring the appproc resource online on sym1 and
wait for it to come online. Then, use the hares command to confirm appproc
is online by displaying its state.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
End of Solution
20 From the operating system, use the ps -ef | grep loopy and
root
root
187
1 0 13:42 ?
8987 0 13:42 pts/2
tail -f /loopyfs/loopyout
Fri
Fri
Fri
Fri
Fri
Fri
Fri
Fri
Fri
Fri
Fri
4361
4908
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
4
4
4
4
4
4
4
4
4
4
4
13:42:25
13:42:29
13:42:33
13:42:37
13:42:41
13:42:45
13:42:49
13:42:53
13:42:57
13:43:01
13:43:05
PDT
PDT
PDT
PDT
PDT
PDT
PDT
PDT
PDT
PDT
PDT
2011
2011
2011
2011
2011
2011
2011
2011
2011
2011
2011
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
is
is
is
is
is
is
is
is
is
is
is
alive
still
alive
still
alive
still
alive
still
alive
still
alive
alive
alive
alive
alive
alive
B181
haconf -dump
End of Solution
Solution
End of Solution
22 Use the hares command to verify the resources are linked. Confirm the status
of the appsg service group. Then, save the VCS configuration without closing
it and identify the changes recorded to the main.cf file by comparing it to
the main.cf.previous file.
188 B182
Solution
hares -dep
#Group
ClusterService
appsg
appsg
appsg
appsg
appsg
Parent
webip
appip
appmnt
appproc
appproc
appvol
Child
csgnic
appnic
appvol
appip
appmnt
appdg
haconf -dump
End of Solution
189
B183
sym1
1
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
190 B184
End of Solution
Use the havfd command to run a virtual fire drill on the appsg service group
for the sym2 system in verbose mode. Which resources report a failure?
Veritas Cluster Server 5.1 for UNIX: Install and Configure
Copyright 2012 Symantec Corporation. All rights reserved.
...
===============================================
Resource appmnt
-----------------------------------------------appmnt: mountpoint.vfd: *** Failure ***
appmnt: mountpoint.vfd: *** Output: [Mountpoint /loopyfs does not exist]
***
appmnt: mounted.vfd: Success
appmnt: mounted.vfd: Output: [Mountpoint /loopyfs is not mounted]
appmnt: vxfslic.vfd: Success
appmnt: vxfslic.vfd: Output: [VxFS is licensed]
appmnt: mountentry.vfd: Success
appmnt: mountentry.vfd: Output: [No entry of Mountpoint /loopyfs in /etc/
fstab]
================================================
Resource appproc
-----------------------------------------------appproc: program.vfd: *** Failure ***
appproc: program.vfd: *** Output: [Program (/loopyfs/loopy) does not exist
or is not executable] ***
191
Note: The appproc error is a noisy error since it is looking for a file
that is only available when the file system is mounted. Even if /
loopyfs existed, the file would not be found since the file system
is mounted on sym1 as part of the appsg service group.
End of Solution
Correct the error condition by creating the /loopyfs mount point on the
system where the appsg service group is offline.
Solution
B185
End of Solution
Use the havfd command to re-run the virtual fire drill on the appsg service
group for the sym2 system in verbose mode. Which resources report a failure?
Resources that report a failure during the virtual fire drill:
appproc only
Solution
End of Solution
192 B186
sym1
1
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
193
Use the hagrp command to switch the appsg service group to the system
where it is currently offline. Wait for the switch to complete and then check
whether the switch was made by displaying the state of the appsg service
group.
Solution
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
End of Solution
B187
Use the hagrp command with the -any command option to switch the appsg
service group to the system where it is currently offline. Wait for the switch to
complete and then check whether the switch was made by displaying the state
of the appsg service group.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
194 B188
sym1
1
From sym1:terminal1, list the resources that are part of the appsg service
group.
Note: Continue to monitor sym1:terminal2 which has been set up in a
previous exercise to display the VCS engine log.
Resource in the appsg service group:
appnic, appip, appdg, appvol, appmnt and appproc
Solution
End of Solution
195
Confirm that all of the resources in the appsg service group have their Critical
resource attributes set to 0 (zero).
Solution
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
B189
appproc
appproc
appvol
appvol
sym1
sym2
sym1
sym2
End of Solution
Set the Critical resource attribute to 1 (one) for each of the resources in the
appsg service group.
Solution
End of Solution
Confirm that the resource in the appsg service group now have a Critical
resource attribute that is not set to 0 (zero).
Solution
End of Solution
196 B190
Change the BackupInterval cluster attribute to three minutes. Verify the value
of this cluster attribute before and after making the change.
Solution
End of Solution
Save and close the VCS configuration and identify the changes recorded to the
main.cf file by comparing it to the main.cf.previous file.
Solution
End of Solution
End of Solution
197
B191
sym1
1
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
End of Solution
Display the value of the VxFSMountLock resource attribute for the appmnt
resource. Then, from the operating system, confirm there is no lock on the
/loopyfs mount.
Note: The VxFSMountLock attribute should be set to 0.
Solution
198 B192
End of Solution
Modify the value of the VxFSMountLock resource attribute for the appmnt
resource by setting it to 1 (one) in order to enable vxfs file system locking.
Open, save and close the VCS configuration where necessary and identify the
haconf -makerw
End of Solution
Confirm that there is now a mount lock on the /loopyfs file system mount.
Note: The VCS Mount agent will create the /loopyfs file system mount
lock. This may take a few seconds.
Solution
End of Solution
199
Take the loopy process offline. Then, freeze the appsg service group. Use the
hastatus -sum command to confirm it is frozen.
Solution
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
OFFLINE
B193
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
sym1
sym2
sym1
sym2
Y
Y
Y
Y
N
N
N
N
ONLINE
OFFLINE
PARTIAL
OFFLINE
ClusterService
ClusterService
appsg
appsg
-- GROUPS FROZEN
-- Group
C
appsg
-- RESOURCES DISABLED
-- Group
Type
Resource
H
H
H
H
H
H
appdg
appip
appmnt
appnic
appproc
appvol
appsg
appsg
appsg
appsg
appsg
appsg
DiskGroup
IP
Mount
NIC
Process
Volume
End of Solution
The /loopy file system cannot be unmounted because it has been mount locked.
200 B194
Solution
vxumount /loopyfs
UX:vxfs vxumount: ERROR: V-3-26388: file system /loopyfs has been mount
locked
End of Solution
Can you unmount the /loopyfs file systems using the vxumount command
with the -o mntunlock=vcs command line option?
Solution
End of Solution
Mount the /loopyfs file system without a mount lock and confirm that the
file system is mounted.
Note: The device is
/dev/vx/dsk/loopydatadg/loopydatavol
Solution
201
End of Solution
B195
Unfreeze and online the appsg service group (this will restart the loopy
process). Use the hastatus -sum command to confirm that appsg is no
longer frozen. Is there a mount lock on the /loopyfs file system?
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
sym1
sym2
sym1
sym2
Y
Y
Y
Y
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
ClusterService
ClusterService
appsg
appsg
End of Solution
202 B196
10 Modify the value of the VxFSMountLock resource attribute for the appmnt
haconf -makerw
End of Solution
11 After a few seconds, confirm that there is NOT a mount lock on the
End of Solution
End of lab
B197
204 B198
B199
Copyright 2012 Symantec Corporation. All rights reserved.
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
There is no need to log into this virtual machine at this time.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
206 B200
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, you will not need to
shutdown or power on any virtual machines.
sym1
1
End of Solution
Solution
cd /etc/VRTSvcs/conf/config
cp -p main.cf main.cf.orig
End of Solution
B201
Copyright 2012 Symantec Corporation. All rights reserved.
Create a subdirectory named test and copy the main.cf file and all the
type definition files into this subdirectory.
Solution
mkdir test
cp -p *.cf test
ls -l test
total 32
-rw-------rw-------rw-------rw-------rw-------rw-------
1
1
1
1
1
1
root
root
root
root
root
root
root 1069
root 1680
root
632
root 1529
root 1360
root 11913
Nov
Nov
Nov
Nov
Nov
Nov
1
7
1
1
1
1
08:23
06:17
08:23
08:23
08:23
08:23
Db2udbTypes.cf
main.cf
OracleASMTypes.cf
OracleTypes.cf
SybaseTypes.cf
types.cf
End of Solution
Navigate to the test directory, open the copied main.cf file in the test
directory in an editor such as vi and add the line Frozen = 1 to the appsg
service group definition only.
Note: The Frozen = 1 line will persistently freeze the service group when
VCS is restarted.
After you have made the edits the affected portion of the file (added portions
are bolded) should be:
208 B202
...
group appsg (
SystemList = { sym1 = 0, sym2 = 1 }
Frozen = 1
AutoStartList = { sym1, sym2 }
)
...
Solution
cd test
vi main.cf
Locate the portion of the file shown in the above code snippet and make the
changes shown in bold.
End of Solution
Locate the portion of the file shown in the above code snippet and make the
changes shown in bold.
End of Solution
B203
Copyright 2012 Symantec Corporation. All rights reserved.
After you have made the edits, the affected portion of the files (added portions
are bolded, deleted portions are strike-through) should be:
Note: The resource dependencies may be listed in a different order.
...
appip requires appnic
appproc requires appip
appvol requires appdg
appmnt requires appvol
appproc requires appmnt
appfoo requires appmnt
appproc requires appfoo
...
Solution
Locate the portion of the file shown in the above code snippet and make the
changes shown in bold and strike-through.
End of Solution
210 B204
Use the hacf command to verify the cluster configuration in the test
directory.
Note: If any errors or warnings are reported, edit the main.cf file and
correct the code that is causing the error or warning.
Solution
hacf -verify .
End of Solution
sym1
1
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8e8801 membership 01
End of Solution
Use the ps and tail commands to verify that the loopy application is still
running.
Solution
211
10114
1 0 10:18 ?
16445 10826 0 10:32 pts/2
tail -f /loopyfs/loopyout
Mon
Mon
Mon
Mon
Mon
Mon
Mon
Mon
Mon
Mon
Mon
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
Nov
7
7
7
7
7
7
7
7
7
7
7
10:31:38
10:31:42
10:31:46
10:31:50
10:31:54
10:31:58
10:32:02
10:32:06
10:32:10
10:32:14
10:32:18
PST
PST
PST
PST
PST
PST
PST
PST
PST
PST
PST
2011
2011
2011
2011
2011
2011
2011
2011
2011
2011
2011
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
appsg
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
Loopy
is
is
is
is
is
is
is
is
is
is
is
alive
still
alive
still
alive
still
alive
still
alive
still
alive
alive
alive
alive
alive
alive
B205
Copyright 2012 Symantec Corporation. All rights reserved.
End of Solution
Copy the edited main.cf file into the VCS configuration directory.
Solution
cp -p main.cf ../main.cf
End of Solution
Navigate to the VCS configuration directory and use the diff command to
compare changes in the new main.cf file to the backup main.cf.orig
file.
Solution
cd ..
pwd
/etc/VRTSvcs/conf/config
212 B206
sym1
1
hastart
hastatus
attempting to connect....
VCS ERROR V-16-1-10600 Cannot connect to VCS engine
attempting to connect....not available; will retry
attempting to connect....retrying
attempting to connect....connected
213
group
resource
system
message
--------------- -------------------- -------------------- ----------------sym1
LOCAL BUILD
sym1
RUNNING
appfoo
sym1
OFFLINE
appvol
sym1
ONLINE
...
------------------------------------------------------------------------appsg
sym1
PARTIAL
webip
sym1
ONLINE
ClusterService
sym1
ONLINE
...
B207
Copyright 2012 Symantec Corporation. All rights reserved.
End of Solution
Display the summary status of the cluster. Why have the resources not been
probed on the non-local system? What effect is seen from the Frozen = 1
line in the main.cf file?
The resources have not been probed on sym2 because HAD is not running there.
The Frozen = 1 line freezes the service groups persistently and their resources are
disabled.
Solution
State
Frozen
A
A
RUNNING
UNKNOWN
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
appsg
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
Y
ONLINE
OFFLINE
PARTIAL
OFFLINE
-- GROUPS FROZEN
-- Group
214 B208
appsg
Resource
System
E
E
E
E
E
E
E
E
E
webip
csgnic
appdg
appfoo
appip
appmnt
appnic
appproc
appvol
sym2
sym2
sym2
sym2
sym2
sym2
sym2
sym2
sym2
ClusterService
ClusterService
appsg
appsg
appsg
appsg
appsg
appsg
appsg
IP
NIC
DiskGroup
FileOnOff
IP
Mount
NIC
Process
Volume
-- RESOURCES DISABLED
-- Group
Type
Resource
H
H
H
H
H
H
H
appsg
appsg
appsg
appsg
appsg
appsg
appsg
DiskGroup
FileOnOff
IP
Mount
NIC
Process
Volume
appdg
appfoo
appip
appmnt
appnic
appproc
appvol
End of Solution
Start VCS on sym2. Display a summary status of the cluster. What differences
do you see from the status displayed in step 2?
The resources have now been probed on sym2. The appsg service group is in a partial
online state. The appsg service group remains frozen and its resources are still
disabled.
Solution
215
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
appsg
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
ONLINE
OFFLINE
PARTIAL
OFFLINE
-- GROUPS FROZEN
-- Group
C
appsg
-- RESOURCES DISABLED
-- Group
Type
Resource
H
H
H
appdg
appfoo
appip
appsg
appsg
appsg
DiskGroup
FileOnOff
IP
B209
Copyright 2012 Symantec Corporation. All rights reserved.
H
H
H
H
appsg
appsg
appsg
appsg
Mount
NIC
Process
Volume
appmnt
appnic
appproc
appvol
End of Solution
Use the hagrp command to verify that the appsg service group is persistently
frozen. Then, use the hares command to verify that the appfoo resource is
offline. Why is appsg in a partial state?
The appfoo resource was created, but the actual file, /loopyfs/appfoo, was
never manually created. Even though the appfoo resource can create the
/loopyfs/appfoo file, since the appsg service group is frozen, VCS will not
perform an online on that resource.
Solution
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
OFFLINE
End of Solution
216 B210
Attempt to bring the appsg service group online on sym1. Then, attempt to
bring the appfoo resource in the appsg service group online on sym1. What
happens?
Neither the appsg service group nor any of its non persistent resources can be brought
online while the appsg service group is frozen.
Solution
End of Solution
Use the hares command to confirm that even though the resources in the
appsg service group are disabled, all but the appfoo resource, in fact, monitor
as ONLINE since they remained unaffected by the forced shutdown of VCS.
Solution
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
ONLINE
OFFLINE
OFFLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
End of Solution
217
B211
Copyright 2012 Symantec Corporation. All rights reserved.
The appfoo resource state and appsg service group state are now both online. Even
though the appfoo resource and appsg service group cannot be brought explicitly
online by VCS while the appsg service group is frozen, the appfoo resource can be
probed or monitored to discover the presence of the manually created file. All VCS
resource and service group states are still evaluated.
Solution
touch /loopyfs/appfoo
ls -l /loopyfs/appfoo
-rwxr-xr-x 1 root root 311 Nov 11 11:15 /loopyfs/appfoo
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
Attribute
State
State
End of Solution
218 B212
Open the VCS configuration for update and unfreeze the appsg service group.
Then save and the close the VCS configuration.
Solution
haconf -makerw
End of Solution
Display a summary status of the cluster. What are the differences from the
previous summary status?
The appsg service group is no longer frozen and the resources are no longer disabled.
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
appsg
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
End of lab
219
B213
Copyright 2012 Symantec Corporation. All rights reserved.
220 B214
221
B215
222 B216
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
Log in with credentials:
Account: student
Password: veritas
Two terminal windows should be active on this server.
vom
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
Note: The terminal windows are referred to as hostname:terminal#
throughout the labs. For example: sym1:terminal1, sym1:terminal2,
sym2:terminal1, and sym2:terminal2. It is not necessary to label the
terminal windows and you may decide which is terminal1 and which is
terminal2.
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you to
power on vom and log into mgt and vom.
B217
mgt
1
From mgt:terminal1, prep the mailx reader as the student user by deleting all
messages.
Note: The notifier was pre-configured on the east cluster made up of sym3
and sym4. There may be a few notifier messages for that cluster.
Solution
mailx
224 B218
d 1-$
19/755
19/753
19/789
19/767
19/779
19/735
19/733
19/753
19/712
19/711
"VCS
"VCS
"VCS
"VCS
"VCS
"VCS
"VCS
"VCS
"VCS
"VCS
Information
Information
Information
Information
Information
Information
Information
Information
Information
Information
...
...
...
...
...
...
...
...
...
...
End of Solution
vom
1
Solution
From the lower left corner of desktop, click the Web Browser icon.
Click Login.
End of Solution
Note: The faults and risk shown on the Home tab in the Faults and Risks
Overview section, and elsewhere within VOM, for the cps, sym3 and
sym4 servers can be ignored as those virtual machines are powered off.
B219
End of Solution
Name: notifier
Resource type: NotifierMngr
SmtpRecipient attribute
Key: student
Value: Information
SmtpServer attribute: mgt.example.com
SmtpServerVrfyOff attribute: 1
Enabled
Link it as a parent to the csgnic resource (child)
226 B220
Note: All resource attribute values will apply to all cluster systems, that is,
they are global in scope.
Solution
From the Service Groups section, from the Actions drop-down menu,
select Edit > Resources > Add/Modify Resources.
Click Next.
Click Add.
Click Add.
Click Next.
From the Configure Resources window, from the right pane, from the
notifier row, mark Enabled.
Note: Critical will be set later after testing.
Click Next.
B221
Click Link.
w Click Finish.
x
End of Solution
Bring the notifier resource online on the same system as the webip resource.
Note: Notice that the state of the ClusterService service group is partial. The
notifier resource needs to be brought online.
Solution
From the Service Groups list, from the Name column, select the
ClusterService link.
From the webip row, from the State column, notice system where it is
Online.
228 B222
From the Online Resource window, from the Select the system you want
to online resource notifier on drop-down menu, select sym1.
Click OK.
End of Solution
Select the Resource Dependency tab and confirm the dependency between the
notifier resource (parent) and the csgnic resource (child).
Solution
Notice the dependency between the notifier resource (parent) and the
csgnic resource (child).
End of Solution
mgt
7
From mgt:terminal1, use the mailx reader to review the notifier messages
from the west cluster. Then, delete the messages and exit the mailx reader.
Solution
mailx
21/791
21/755
21/769
21/781
21/751
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
B223
vom
8
From the Veritas Operations Manager, confirm that the notifier resource is
set to critical.
Solution
Click Next.
Click Finish.
Mouse-over the notifier resource and notice the tool tip shows the resource
is set to Critical.
End of Solution
230 B224
Change the alert level for the student email recipient from Information to
Warning.
Note: This will limit the number of messages generated.
Solution
Click Next.
From the Edit Attribute window, in the Key field, type: student
Click Add.
Click Finish.
End of Solution
Note: The resource attributes for the notifier resource are updated and
verified. However, the notifier must be restarted for the configuration
changes to be read into the notifier process.
Solution
231
From the Offline Resource window, confirm the Select the system you
want to offline resource notifier on drop-down menu is set to sym1.
Note: Make no other changes.
Click OK.
B225
From the Online Resource window, confirm the Select the system you
want to offline resource notifier on drop-down menu is set to sym1.
Note: Make no other changes.
Click OK.
Mouse-over the notifier resource and notice the tool tip shows the resource
is Online on sym1.
End of Solution
11 Log out of the Veritas Operations Manager and close the browser window.
Solution
From the top right corner of the Veritas Operations Manager console,
from the User (root) drop-down menu, select Logout.
End of Solution
232 B226
sym1
1
cd /opt/VRTSvcs/bin
ls -ld *trigger*
-r-xr----drwxr-xr-x
drwxr-xr-x
drwxr-xr-x
1
2
3
2
root
root
root
root
17:00
08:20
08:20
17:00
hatrigger
internal_triggers
sample_triggers
triggers
End of Solution
Explore each of the sub directories that were found by performing a long
listing. Optionally, display some of the internal_trigger files.
Note: Files in the internal_triggers directory are reserved for use by
VCS and should not be modified except under the direction of Support.
The exception is the violation trigger which can be modified, for
example, to send email alerts. Files in the sample_triggers
directory can be edited and copied to other trigger locations like the
triggers directory which is normally empty. Triggers in the
internal_triggers and sample_triggers directories are
subject to overwrite during product updates.
B227
Solution
ls -l internal_triggers
total 20
-rwxr-x---rwxr-x---rwxr-x---rwxr-x---
1
1
1
1
root
root
root
root
root
root
root
root
2264
2313
2319
7490
Oct
Oct
Oct
Oct
cpuusage
dump_tunables
globalcounter_not_updated
violation
1 08:20 VRTSvcs
ls -l sample_triggers/VRTSvcs
total 88
-rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr-----rwxr-----rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--
17:00
17:00
17:00
17:00
ls -l sample_triggers
total 4
drwxr-xr-x 2 root root 4096 Nov
13
13
13
13
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
2434
2992
2805
2427
2465
2452
5077
6265
4598
2834
2574
2713
3235
3197
2573
2815
2560
2655
4001
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
13
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
17:00
cpuusage
injeopardy
loadwarning
nofailover
postoffline
postonline
preonline
preonline_ipc
preonline_vvr
resadminwait
resfault
resnotoff
resrestart
resstatechange
sysjoin
sysoffline
sysup
unable_to_restart_agent
unable_to_restart_had
ls -l triggers
total 0
234 B228
more internal_triggers/violation
...
exit;
}
}
# put your code here...
#
#
#
#
#
#
#
#
#
`elm -s violation $recipient < $msgfile`;
# }
# `rm $msgfile`;
#
exit;
End of Solution
Navigate to the VCS log directory and grep for the term hatrigger in the
engine log.
Note: Notice internal triggers are activated by default if conditions result in
their firing. The dump_tunable trigger is an example of this. The
sysjoin and sysup triggers are also activated, but while they do
exists in the sample_triggers/VRTSvcs directory they are not,
by default, copied to the default triggers directory. Trigger activity is
minimally logged which is true of all VCS supplied triggers and is
recommended for custom triggers. A more verbose level of logging can
be enabled. Triggers apply to all cluster systems although, strictly
speaking, trigger configuration does not have to match on all cluster
systems though that is strongly discouraged.
Solution
cd /var/VRTSvcs/log
End of Solution
B229
Navigate to the and copy the VCS sysjoin and sysup triggers from
sample_triggers to the triggers directory. Verify the mode is 744 (rwxr--r--).
Note: These triggers will not be modified, but will log successful execution to
the VCS engine log. Since they are activated by default in VCS they
will fire if conditions warrant.
Solution
cd /opt/VRTSvcs/bin/triggers
cp -p ../sample_triggers/VRTSvcs/sysjoin .
cp -p ../sample_triggers/VRTSvcs/sysup .
ls -l
-rwxr--r-- 1 root root 2573 Nov
-rwxr--r-- 1 root root 2560 Nov
8 09:37 sysjoin
8 09:37 sysup
End of Solution
Solution
236 B230
cp -p /student/labs/vcs/vcs60/triggers/* .
ls -l
total 20
-rwxr--r--rwxr--r--rwxr--r--rwxr--r--rwxr--r--
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
2406
2778
2529
2573
2560
Nov
Nov
Nov
Nov
Nov
8
8
8
8
8
09:42
09:42
09:42
09:37
09:37
nofailover
resadminwait
resfault
sysjoin
sysup
End of Solution
Examine the last 20 lines of the resfault trigger to determine how the script
was modified to email a message.
Note: The good idea comment is a reminder to configuring triggers to log
more verbosely.
Solution
End of Solution
Copy the scripts in the triggers directory from sym1 to sym2 and confirm
the files were copied.
Solution
pwd
/opt/VRTSvcs/bin/triggers
scp * sym2:/opt/VRTSvcs/bin/triggers/
nofailover
resadminwait
resfault
sysjoin
sysup
100%
100%
100%
100%
100%
2406
2778
2529
2573
2560
2.4KB/s
2.7KB/s
2.5KB/s
2.5KB/s
2.5KB/s
00:00
00:00
00:00
00:00
00:00
B231
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
2406
2778
2529
2573
2560
Nov
Nov
Nov
Nov
Nov
8
8
8
8
8
09:51
09:51
09:51
09:51
09:51
nofailover
resadminwait
resfault
sysjoin
sysup
End of Solution
Open the VCS configuration for update and display the TriggersEnabled
service group attribute value for the appsg service group, and the appfoo
resource.
Note: Notice that TriggeresEnabled is not global by default and must
remain that way.
Solution
haconf -makerw
Attribute
TriggersEnabled
TriggersEnabled
System
sym1
sym2
Value
Attribute
TriggersEnabled
TriggersEnabled
System
sym1
sym2
Value
End of Solution
238 B232
Change the value of the TriggersEnabled service group attribute for the appsg
service group to the value of NOFAILOVER RESFAULT for both sym1 and
sym2 and confirm the change was made.
Note: The resource level trigger RESADMINWAIT cannot be enabled at the
service group level.
Solution
Attribute
TriggersEnabled
TriggersEnabled
System
sym1
sym2
Value
NOFAILOVER
NOFAILOVER
RESFAULT
RESFAULT
End of Solution
10 Change the value of the TriggersEnabled resource attribute for the appfoo
resource to the value of RESADMINWAIT for both sym1 and sym2 and
confirm the change was made. Then save and close the VCS configuration.
Note: Most resource triggers, including the resadminwait and resfault
triggers can be enabled at the service group level for all resources in the
service group. One exception is the resadminwait trigger which can
only be enabled for each resource.
Solution
Attribute
TriggersEnabled
TriggersEnabled
System
sym1
sym2
Value
RESADMINWAIT
RESADMINWAIT
End of Solution
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
B233
240 B234
End of Solution
13 From sym1:termina1, restart VCS on sym1 first and then sym2. From
sym1:terminal2, monitor the VCS engine log for the sysup and sysjoin
trigger log entries to confirm that they now fire successfully.
Note: It may be difficult to see the sysup for sym1 and the sysjoin for sym2
trigger log entries. Alternatively use the more, grep or vi commands
to display the engine log.
Solution
End of Solution
Attribute
State
State
System
sym1
sym2
rm -f /loopyfs/appfoo
Value
ONLINE
OFFLINE
B235
Attribute
State
State
System
sym1
sym2
Value
FAULTED
ONLINE
End of Solution
mgt
15 From mgt:terminal1, verify that email for the resfault was delivered to
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 3 messages 3 new
>N 1 Notifier@mgt.example Tue Nov 8 11:04
N 2 root@sym1.example.co Tue Nov 8 11:04
N 3 Notifier@mgt.example Tue Nov 8 11:04
&
21/728
19/865
21/734
Note: Three messages are delivered. Two by the notifier for the resource
fault and subsequent service group fault and the message from the
resfault trigger.
242 B236
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
sym1
16 From sym:terminal1, clear the appfoo resource fault and switch the appsg
service group back to sym1. Confirm that the fault has been cleared and the
service group has been switched.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
End of lab
B237
244B238
B239
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
Log in with credentials:
Account: student
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
246 B240
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you to
shutdown vom.
sym1
1
hastatus
End of Solution
Note: As cluster commands are executed in this lab, log entries will be added
to the VCS engine log and echoed to sym1:terminal2 where you can
easily review them.
Solution
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
B241
From sym1:terminal1, open the VCS configuration for update and verify that
the Critical resource type attribute value is set to 0 for the appfoo and
appproc resources in the appsg service group. If necessary, set the Critical
attribute to 0. Then save, but do not close the VCS configuration.
Solution
haconf -makerw
sym1
sym2
sym1
sym2
sym1
sym2
haconf -dump
End of Solution
248 B242
Attribute
Group
Type
OfflineMonitorInterval
System
global
global
global
Value
appsg
FileOnOff
300
haconf -dump
End of Solution
Verify the appsg service group is online on sym1. If it is not, then bring it
online on sym1 using the appropriate commands.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
B243
Attribute
State
State
System
sym1
sym2
rm /loopyfs/appfoo
ls -l /loopyfs/appfoo
Value
ONLINE
OFFLINE
Attribute
State
State
System
sym1
sym2
Value
FAULTED
OFFLINE
End of Solution
Display the state of the appsg service group and the state of each resource in
the appsg service group. Did the faulting of the appfoo resource cause a
failover of the appsg service group? Why or why not?
The appsg service group does not failover because the resource that faulted on sym1,
appfoo, or a dependent resource that was brought offline due to a faulted resource,
250 B244
Solution
Attribute
State
State
System
sym1
sym2
Value
|PARTIAL|
|OFFLINE|
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
ONLINE
OFFLINE
FAULTED
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
OFFLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
Note: Generally the phrase resource state is of interest on all cluster nodes for
which a service group containing a resource or resources is configured to
run. However, if it is sure that resource state for a particular cluster node is
desired then the following two commands can be substituted as applicable
throughout the lab:
hares -display -attribute State -group appsg -sys
sym1
251
B245
mgt
8
One email from the notifier and one from the resfault trigger were generated and
delivered.
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 2 messages 2 unread
>U 1 Notifier@mgt.example Wed Nov 9 13:03 22/738
U 2 root@sym1.example.co Wed Nov 9 13:03 20/875
&
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
252 B246
sym1
9
From sym1:terminal1, clear the fault on the appfoo resource and display the
state again.
Solution
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
OFFLINE
End of Solution
10 Bring the appfoo and appproc resources online on the system where the
appsg service group is partially online. Wait for them to come online and
confirm that the state of the appsg service group is ONLINE.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
B247
sym1
1
From sym1:terminal1, set the appfoo and appproc resources to critical in the
appsg service group. Then, verify that all resources in the appsg service group
are set to critical.
Note: A Critical resource attribute value can only be set to 0 (zero) or 1
(one). No output when testing for Critical=1 means all resources are
set to Critical=0 or vice versa.
appfoo
appfoo
appproc
appproc
254 B248
sym1
sym2
sym1
sym2
End of Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Attribute
State
State
rm /loopyfs/appfoo
ls -l /loopyfs/appfoo
System
sym1
sym2
Value
ONLINE
OFFLINE
#Resource
appfoo
appfoo
Attribute
State
State
System
sym1
sym2
Value
FAULTED
OFFLINE
End of Solution
B249
Wait for the appsg service group to failover. Then, display the state of the
appsg service group and the state of each resource in the appsg service group.
Did the faulting of the appfoo resource cause a failover of the appsg service
group? Why or why not?
The appsg service group fails over to sym2 because the resource that faulted on
sym1, appfoo, and a dependent resource that was brought offline on sym1 due to a
faulted resource, approc, are critical resources.
Solution
System
sym1
sym2
Value
|OFFLINE|FAULTED|
|ONLINE|
256 B250
Attribute
State
State
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
OFFLINE
ONLINE
FAULTED
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
End of Solution
mgt
5
Two emails from the notifier and one from the resfault trigger were generated and
delivered.
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 3 messages 3 unread
>U 1 Notifier@mgt.example Thu Nov 10 06:47 22/739
U 2 root@sym1.example.co Thu Nov 10 06:47 20/879
U 3 Notifier@mgt.example Thu Nov 10 06:47 22/745
Service"
&
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
sym1
6
B251
Attribute
State
State
System
sym1
sym2
Value
FAULTED
FAULTED
End of Solution
Wait for the appsg service group to be declared faulted on sym2. Then,
display the state of the appsg service group and the state of each resource in
the appsg service group. Did the faulting of the appfoo resource cause a
failover of the appsg service group? Why or why not?
The appsg service group is already faulted on sym1 so there is no other system for it
to try to come online. It becomes faulted on both systems.
Solution
258 B252
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|FAULTED|
|OFFLINE|FAULTED|
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
OFFLINE
OFFLINE
FAULTED
FAULTED
OFFLINE
OFFLINE
OFFLINE
OFFLINE
ONLINE
ONLINE
OFFLINE
OFFLINE
OFFLINE
OFFLINE
End of Solution
mgt
8
Three emails from the notifier, one from the resfault trigger, and one from the
nofailover trigger were generated and delivered.
Solution
mailx
21/729
19/869
21/735
"resfault"
"VCS Error for
22/917
19/863
"nofailover"
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
sym1
9
From sym1:terminal1, clear the appfoo resource fault on all systems and
bring the appsg service group online on sym1.
B253
Solution
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
OFFLINE
System
sym1
sym2
Value
|OFFLINE|
|OFFLINE|
Attribute
State
State
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
10 Change the MonitorInterval resource type attribute value back to the default
value of 60 seconds for the FileOnOff resource type. Undo the override of the
OfflineMonitorInterval resource type attribute so that the appfoo resource
will be determined by the value of the OfflineMonitorInterval value for the
FileOnOff resource type. Save and close the VCS configuration.
Solution
260 B254
End of Solution
11 If you do NOT wish to perform the optional exercises in this lab, terminate the
End of Solution
261
B255
sym1
Note: The cluster configuration should be closed during this exercise.
From sym1:terminal1, verify that all resources in the appsg service group are
set to critical and that the appsg service group is online on sym1.
Note: Continue to monitor sym1:terminal2 which has been set up in a
preceding exercise to display the VCS engine log and sym1:terminal3
which has been set up in a preceding exercise to display the VCS status.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
262 B256
Temporarily freeze the appsg service group. What does a summary status of
the VCS cluster show?
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
appsg
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
OFFLINE
ONLINE
ONLINE
OFFLINE
-- GROUPS FROZEN
-- Group
C
appsg
-- RESOURCES DISABLED
-- Group
Type
Resource
H
H
H
H
H
H
H
appdg
appfoo
appip
appmnt
appnic
appproc
appvol
appsg
appsg
appsg
appsg
appsg
appsg
appsg
DiskGroup
FileOnOff
IP
Mount
NIC
Process
Volume
End of Solution
Attribute
State
State
rm /loopyfs/appfoo
ls -l /loopyfs/appfoo
System
sym1
sym2
Value
ONLINE
OFFLINE
B257
Attribute
State
State
System
sym1
sym2
Value
FAULTED
OFFLINE
End of Solution
Display the state of the appsg service group. Did the faulting of the appfoo
resource cause a failover of the appsg service group? Why or why not?
The appsg service group does not fail over to sym2 because it is frozen. However,
resource and service groups are still monitored and their states are determined.
Solution
Attribute
State
State
System
sym1
sym2
Value
|FAULTED|PARTIAL|
|OFFLINE|
End of Solution
Display the state of each resource in the appsg service group. Were any
resources dependent on the appfoo resource affected?
The dependant, or parent, appproc resource was not taken offline on sym1.
Solution
264 B258
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
Value
ONLINE
OFFLINE
FAULTED
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
appvol
State
sym2
OFFLINE
End of Solution
Verify that the appsg service group is still frozen. Information shown in the
previous two steps is also available or can be inferred from this output.
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B ClusterService
B ClusterService
B appsg
PARTIAL|FAULTED
B appsg
System
Probed
AutoDisabled
State
sym1
sym2
sym1
Y
Y
Y
N
N
N
OFFLINE
ONLINE
sym2
OFFLINE
-- GROUPS FROZEN
-- Group
appsg
-- RESOURCES FAILED
-- Group
Type
Resource
System
appfoo
sym1
appsg
FileOnOff
-- RESOURCES DISABLED
-- Group
Type
Resource
H
H
H
H
H
H
H
appdg
appfoo
appip
appmnt
appnic
appproc
appvol
appsg
appsg
appsg
appsg
appsg
appsg
appsg
DiskGroup
FileOnOff
IP
Mount
NIC
Process
Volume
End of Solution
B259
mgt
7
One email from the notifier and one from the resfault trigger were generated and
delivered.
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 2 messages 2 new
>N 1 Notifier@mgt.example Thu Nov 10 08:32
Resource"
N 2 root@sym1.example.co Thu Nov 10 08:32
&
21/729
19/869
"resfault"
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
266 B260
sym1
8
Solution
touch /loopyfs/appfoo
ls -l /loopyfs/appfoo
-rw-r--r-- 1 root root 0 Nov 10 08:52 /loopyfs/appfoo
End of Solution
Determine the state of the appsg service group and the resources in the appsg
service group.
Note: Recall that the appfoo resource was faulted on sym1 and the appsg
service group was faulted (and partial) on sym1. The external creation
of the file managed by the appfoo resource followed by a probe of the
appfoo resource on sym1 resulted in VCS clearing the fault and
declaring the appfoo resource online. In this case, since the appfoo
resource was the only faulted or offline resource, the appsg service
group is also declared online on sym1.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
B261
10 Verify that the appsg service group is still frozen. Information shown in the
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
sym1
sym2
sym1
sym2
Y
Y
Y
Y
N
N
N
N
OFFLINE
ONLINE
ONLINE
OFFLINE
ClusterService
ClusterService
appsg
appsg
-- GROUPS FROZEN
-- Group
C
appsg
-- RESOURCES DISABLED
-- Group
Type
Resource
H
H
H
H
H
H
H
appdg
appfoo
appip
appmnt
appnic
appproc
appvol
appsg
appsg
appsg
appsg
appsg
appsg
appsg
DiskGroup
FileOnOff
IP
Mount
NIC
Process
Volume
End of Solution
mgt
268 B262
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 1 message 1 new
>N 1 Notifier@mgt.example Thu Nov 10 08:52
&
21/751
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
sym1
12 From sym1:terminal1, unfreeze the appsg service group and verify that it is
unfrozen.
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
sym1
sym2
sym1
sym2
Y
Y
Y
Y
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
ClusterService
ClusterService
appsg
appsg
End of Solution
B263
13 If you do NOT wish to perform the remaining optional exercises in this lab,
End of Solution
270 B264
sym1
1
From sym1:terminal1, open the VCS configuration for update and verify that
all resources in the appsg service group are set to critical and that the appsg
service group is online on sym1.
Note: Continue to monitor sym1:terminal2 which has been set up in a
preceding exercise to display the VCS engine log and sym1:terminal3
which has been set up in a preceding exercise to display the VCS status.
Solution
haconf -makerw
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
271
Set the ManageFaults service group attribute to the value of NONE for the
appsg service group. Save, but do not close the VCS configuration.
Solution
B265
haconf -dump
End of Solution
Attribute
State
State
System
sym1
sym2
rm /loopyfs/appfoo
ls -l /loopyfs/appfoo
Value
ONLINE
OFFLINE
Attribute
State
State
System
sym1
sym2
Value
ONLINE|ADMIN WAIT
OFFLINE
End of Solution
272 B266
Display the state of the appsg service group. Does appsg failover? Why or
why not?
The appsg service group does not fail over to sym2 and it remains in an online state
on sym1.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Display the state of each resource in the appsg service group. What happens to
the resources in the appsg service group?
The dependant, or parent, appproc resource was not taken offline on sym1. The
appfoo resource is in an admin wait state on sym1.
Solution
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
ONLINE
OFFLINE
ONLINE|ADMIN WAIT
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
mgt
One email from the notifier and one from the resadminwait trigger were generated
and delivered.
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 2 messages 2 new
>N 1 Notifier@mgt.example Thu Nov 10 11:24
21/751
B267
19/868
"resadminwait"
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
sym1
7
touch /loopyfs/appfoo
ls -l /loopyfs/appfoo
-rw-r--r-- 1 root root 0 Nov 10 08:52 /loopyfs/appfoo
#Resource
appfoo
appfoo
274 B268
Attribute
State
State
System
sym1
sym2
Value
ONLINE
OFFLINE
End of Solution
Determine the state of the appsg service group and the resources in the appsg
service group.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
Attribute
State
State
rm /loopyfs/appfoo
ls -l /loopyfs/appfoo
System
sym1
sym2
Value
ONLINE
OFFLINE
Attribute
State
State
System
sym1
sym2
Value
ONLINE|ADMIN WAIT
OFFLINE
End of Solution
B269
mgt
10 From mgt:terminal1, check to see if any email was delivered to
One email from the notifier and one from the resadminwait trigger were generated
and delivered.
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 2 messages 2 new
>N 1 Notifier@mgt.example Thu Nov 10 11:36
Resource appfoo, Res"
N 2 root@sym1.example.co Thu Nov 10 11:36
&
21/751
19/868
"resadminwait"
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
276 B270
sym1
11 From sym1:terminal1, use the hares -clearadminwait command to
recover the appfoo resource from the admin wait state. Does the appsg service
group failover to sym2? What happens to the state of the appfoo resource?
The appsg service group is faulted on sym1, fails over, and is online on sym2. The
admin wait state for the appfoo resource is changed to faulted on sym1 and online on
sym2.
Solution
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|FAULTED|
|ONLINE|
System
sym1
sym2
Value
FAULTED
ONLINE
Attribute
State
State
End of Solution
mgt
12 From mgt:terminal1, check to see if any email was delivered to
B271
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 3 messages 3 new
>N 1 Notifier@mgt.example Thu Nov 10 11:50
Resource appfoo, Res"
N 2 root@sym1.example.co Thu Nov 10 11:50
N 3 Notifier@mgt.example Thu Nov 10 11:50
Service Group appsg,"
&
21/729
19/869
21/735
"resfault"
"VCS Error for
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
sym1
13 From sym1:terminal1, clear the appfoo resource fault and bring the appsg
Solution
278 B272
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
ONLINE
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
Attribute
State
State
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
14 Set the ManageFaults service group attribute for the appsg service group
back to the default value of ALL. Save and close the VCS configuration.
Solution
End of Solution
15 If you do NOT wish to perform the remaining optional exercises in this lab,
Solution
End of Solution
B273
sym1
1
From sym1:terminal1, open the VCS configuration for update and verify that
all resources in the appsg service group are set to critical and that the appsg
service group is online on the sym1.
Note: Continue to monitor sym1:terminal2 which has been set up in a
preceding exercise to display the VCS engine log and sym1:terminal3
which has been set up in a preceding exercise to display the VCS status.
Solution
280 B274
haconf -makerw
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Override the RestartLimit resource type attribute value for the appproc
resource to 1. Save, but do not close the VCS configuration.
Solution
Attribute
Group
Type
RestartLimit
System
global
global
global
Value
appsg
Process
0
haconf -dump
End of Solution
Stop the loopy process outside of VCS by sending a kill signal to its process ID
(PID).
281
Solution
18245
1 0 12:05 ?
24256 10510 0 13:09 pts/2
End of Solution
B275
Display the PID of the loopy process. Has it changed? Why or why not?
Note: It may take a while for the loopy process to restart. Note the new PID
for the loopy process.
The loopy process was restarted automatically on the same system and evidenced by
the new PID.
Solution
24286
1 0 13:09 ?
24290 10510 0 13:09 pts/2
End of Solution
Display the state of the appsg service group. Has it failed over? Display the
state of each resource in the appsg service group. What happens to the
resources in the appsg service group?
No failover occurs. The resource states for all resources in the appsg service group
remain as before.
Solution
282 B276
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
Attribute
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
appproc
appproc
appvol
appvol
State
State
State
State
sym1
sym2
sym1
sym2
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
mgt
6
Two emails from the notifier and one from the resfault trigger were generated and
delivered.
Solution
mailx
No mail for root
End of Solution
sym1
From sym1:terminal3, observe the latest output from the cluster status
regarding appproc.
Solution
...
group
resource
system
message
--------------- -------------------- --------------- -------------------appproc
sym1
|RESTARTING|
End of Solution
From sym1:terminal2, observe the entries in the VCS engine log regarding
appproc.
B277
Solution
...
2011/11/10 13:31:36 VCS ERROR V-16-2-13067 (sym1) Agent is calling clean for
resource(appproc) because the resource became OFFLINE unexpectedly, on its
own.
2011/11/10 13:31:36 VCS INFO V-16-2-13068 (sym1) Resource(appproc) - clean
completed successfully.
2011/11/10 13:31:36 VCS ERROR V-16-2-13073 (sym1) Resource(appproc) became
OFFLINE unexpectedly on its own. Agent is restarting (attempt number 1 of 1)
the resource.
2011/11/10 13:31:41 VCS NOTICE V-16-2-13076 (sym1) Agent has successfully
restarted resource(appproc).
...
End of Solution
Stop the loopy process outside of VCS a second time by sending a kill signal to
its process ID (PID).
Solution
24286
1 0 13:09 ?
24290 10510 0 13:09 pts/2
25737 10510
0 13:10 pts/2
End of Solution
10 Display the state of the appsg service group. Has it failed over? Display the
state of each resource in the appsg service group. What happens to the
resources in the appsg service group?
284 B278
The appsg service group is faulted on sym1 and fails over to sym2. The appproc
resource now shows faulted on sym1 and online on sym2.
Solution
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|FAULTED|
|ONLINE|
Attribute
State
State
State
State
State
State
State
State
State
State
State
State
State
State
System
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
Value
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
FAULTED
ONLINE
OFFLINE
ONLINE
End of Solution
11 Perform a summary status for the cluster. Information shown in the previous
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B ClusterService
B ClusterService
B appsg
OFFLINE|FAULTED
B appsg
System
Probed
AutoDisabled
State
sym1
sym2
sym1
Y
Y
Y
N
N
N
OFFLINE
ONLINE
sym2
ONLINE
-- RESOURCES FAILED
-- Group
Type
Resource
System
appproc
sym1
appsg
Process
End of Solution
B279
mgt
12 From mgt:terminal1, check to see if any email was delivered to
Two emails from the notifier and one from the resfault trigger were generated and
delivered.
Solution
mailx
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/student": 3 messages 3 new
>N 1 Notifier@mgt.example Thu Nov 10 13:36
Resource appproc, Re"
N 2 root@sym1.example.co Thu Nov 10 13:36
N 3 Notifier@mgt.example Thu Nov 10 13:36
Service Group appsg,"
&
21/729
19/870
21/735
"resfault"
"VCS Error for
At the & prompt, review each message by typing each message number and
pressing Enter.
d 1-$
End of Solution
286 B280
sym1
13 From sym1:terminal3, observe the latest output from the cluster status
regarding appsg.
Solution
...
appsg
appproc
sym1
sym1
sym1
PARTIAL *FAULTED*
*FAULTED*
STOPPING PARTIAL
appsg
*FAULTED*
------------------------------------------------------------------------appfoo
sym1
WAITING FOR OFFLINE
appip
sym1
WAITING FOR OFFLINE
appfoo
sym1
OFFLINE
appmnt
sym1
WAITING FOR OFFLINE
appip
sym1
OFFLINE
End of Solution
14 From sym1:terminal2, observe the entries in the VCS engine log regarding
appproc.
Solution
...
2011/11/10 13:36:25 VCS ERROR V-16-2-13067 (sym1) Agent is calling clean for
resource(appproc) because the resource became OFFLINE unexpectedly, on its
own.
2011/11/10 13:36:25 VCS INFO V-16-2-13068 (sym1) Resource(appproc) - clean
completed successfully.
2011/11/10 13:36:26 VCS INFO V-16-1-10307 Resource appproc (Owner:
Unspecified, Group: appsg) is offline on sym1 (Not initiated by VCS)
2011/11/10 13:36:26 VCS NOTICE V-16-1-10300 Initiating Offline of Resource
appfoo (Owner: Unspecified, Group: appsg) on System sym1
2011/11/10 13:36:26 VCS NOTICE V-16-1-10300 Initiating Offline of Resource
appip (Owner: Unspecified, Group: appsg) on System sym1
2011/11/10 13:36:26 VCS INFO V-16-1-10305 Resource appfoo (Owner:
Unspecified, Group: appsg) is offline on sym1 (VCS initiated)
2011/11/10 13:36:26 VCS NOTICE V-16-1-10300 Initiating Offline of Resource
appmnt (Owner: Unspecified, Group: appsg) on System sym1
2011/11/10 13:36:26 VCS INFO V-16-6-15002 (sym1) hatrigger:hatrigger
executed /opt/VRTSvcs/bin/triggers/resfault sym1 appproc ONLINE
successfully
...
End of Solution
15 Clear the appproc resource fault and bring the appsg service group online on
sym1.
Solution
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
ONLINE
B281
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
16 Remove the override of the RestartLimit resource type attribute so that the
appproc resource will be affected by the value of the RestartLimit value for
the Process resource type.
Solution
288 B282
End of Solution
17 Save and close the VCS configuration and terminate the status and log file
displays.
Solution
End of Solution
End of lab
B283
290 B284
291
B285
Copyright 2012 Symantec Corporation. All rights reserved.
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
Log in with credentials:
Account: student
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
292 B286
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, you will not need to
shutdown or power on any virtual machines.
sym1
1
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
From sym1:termial1, verify that the appsg service group is online on sym1.
Switch it if necessary.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Display the value of the resource type attribute named IMF for the Process
resource. Display the resource attribute value named MonitorMethod for the
appproc resource (of type Process).
Solution
Value
Mode
MonitorFreq
B287
Copyright 2012 Symantec Corporation. All rights reserved.
Attribute
MonitorMethod
MonitorMethod
System
sym1
sym2
Value
IMF
IMF
End of Solution
Stop the loopy process outside of VCS by sending a kill signal to its process ID
(PID) and confirm that it is stopped. How soon after doing this does the fault
show up in the VCS engine log?
Solution
18245
1 0 12:05 ?
24256 10510 0 13:09 pts/2
7212
9707
0 02:49 pts/2
End of Solution
294 B288
Wait for the appsg service group to fail over and come online on sym2. Then,
clear the fault on the appproc resource and switch the appsg service group to
sym1.
Solution
Attribute
State
State
System
sym1
sym2
Value
FAULTED
ONLINE
Attribute
State
State
System
sym1
sym2
Value
OFFLINE
ONLINE
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
Attribute
State
State
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Use the haimfconfig command to disable IMF for the Process agent.
Confirm that the appproc resource is being monitored using the Traditional
method.
Solution
yes
Disabled IMF for all specified agents.
Value
Mode
MonitorFreq
Attribute
MonitorMethod
MonitorMethod
System
sym1
sym2
Value
Traditional
Traditional
End of Solution
B289
Copyright 2012 Symantec Corporation. All rights reserved.
End of Solution
Stop the loopy process outside of VCS by sending a kill signal to its process ID
(PID) and confirm. Then, wait for the appproc resource to fault on sym1. How
soon after doing this does the fault show up in the VCS engine log?
Solution
root
root
296 B290
7212
9707
0 02:49 pts/2
End of Solution
Clear the fault on the appproc resource and switch the appsg service group to
sym1.
Solution
Attribute
State
State
System
sym1
sym2
Attribute
State
State
Value
FAULTED
ONLINE
System
sym1
sym2
Value
OFFLINE
ONLINE
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
Attribute
State
State
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
10 Confirm that the MonitorMethod attribute value for the appproc resource has
not changed.
Solution
Attribute
MonitorMethod
MonitorMethod
System
sym1
sym2
Value
Traditional
Traditional
End of Solution
B291
Copyright 2012 Symantec Corporation. All rights reserved.
11 Use the haimfconfig command to enable IMF for the Process agent. Probe the
approc resource on both systems and confirm that the appproc resource is now
is being monitored by IMF.
Solution
yes
VCS WARNING V-16-52-112 This may restart the agents if agents are not
already IMF enabled.
Do you want to continue (yes/no)?: [yes]
yes
Restarting 'Process' agent to enable IMF.
IMF is successfully enabled for 'Process' agent.
Attribute
MonitorMethod
MonitorMethod
System
sym1
sym2
Value
IMF
Traditional
298 B292
Attribute
MonitorMethod
MonitorMethod
System
sym1
sym2
Value
IMF
IMF
Value
Mode
MonitorFreq
End of Solution
End of Solution
B293
Copyright 2012 Symantec Corporation. All rights reserved.
sym1
1
Solution
300 B294
cd /etc/sysconfig
cat amf
#
# AMF driver configuration file
#
# This file is sourced from amf initrc script
#
# Set the two environment variables below as follows:
#
#
1 = start or stop amf
#
0 = do not start or stop amf
#
AMF_START=1
AMF_STOP=1
End of Solution
cd /etc
cat amftab
#
# AMF driver configuration file
#
# This file is used by amf initrc script
#
#
# In order to change the default debug buffer size use:
# /opt/VRTSamf/bin/amfconfig -T dbglogsz=<dbg_logsize_in_kb> -c
#
# In order to change the default debug buffer size, process hash size
# and mount hash size use:
# /opt/VRTSamf/bin/amfconfig -T
dbglogsz=<dbg_logsize_in_kb>,processhashsz=<proc
esshashsz>,mnthashsz=<mnthashsz> -c
# To keep all the defaults use:
/opt/VRTSamf/bin/amfconfig c
End of Solution
Use the service command to check the status of AMF on both systems.
Note: Status is important on both cluster nodes in a production environment.
However, for this exercise, you will check the status on only one node.
Solution
301
End of Solution
B295
Copyright 2012 Symantec Corporation. All rights reserved.
haimfconfig -display
#Agent
Application
Db2udb
Mount
Netlsnr
Oracle
Process
Sybase
SybaseBk
STATUS
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
End of Solution
sym1
sym2
sym1
sym2
End of Solution
Solution
302 B296
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Use the amfstat command to show the ONLINE monitors for both the
appproc and appmnt resources on sym1 because the appsg service group is
online on sym1.
Solution
amfstat
AMF Status Report
Registered Reapers (2):
=======================
RID
PID
0
13462
7
11445
MONITOR
1
1
TRIGG
0
0
REAPER
VCSMountAgent
VCSProcessAgent
GROUP
appproc
End of Solution
Confirm loopy is running on sym1 and notice that the loopys PID matches
what amfstat shows for the PID for the appproc resource in the previous
step.
Solution
10042
27592
1 0 02:53 ?
9707 0 03:23 pts/2
End of Solution
B297
Copyright 2012 Symantec Corporation. All rights reserved.
Confirm /loopyfs is mounted on sym1 and notice that the device and
mount point match what amfstat shows for the DEVICE and MOUNT
POINT for the appmnt resource in a previous step.
Solution
End of Solution
10 Use the amfstat command to show the OFFLINE monitors for both the
appproc and appmnt resources on sym2 because the appsg service group is
offline on sym2.
Solution
MONITOR
1
1
TRIGG
0
0
REAPER
VCSMountAgent
VCSProcessAgent
ARGS
UID
EUID
/loopyfs/loopy appsg 0
GID
<any>
End of Solution
End of lab
304 B298
B299
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
Log in with credentials:
Account: student
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
306 B300
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, you will not need to
shutdown or power on any virtual machines.
sym1
1
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
sym1
sym2
sym1
sym2
Y
Y
Y
Y
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
ClusterService
ClusterService
appsg
appsg
End of Solution
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca06 membership 01
Port h gen
cfca09 membership 01
End of Solution
B301
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
eth4
eth5
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
OPEN
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
eth4
eth5
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
OPEN
End of Solution
Navigate to the /etc directory and display the contents of the llthosts and
llttab files.
Solution
308 B302
cd /etc
cat llthosts
0 sym1
1 sym2
cat llttab
set-node sym1
set-cluster 42845
link eth4 eth-00:0c:29:5a:b1:16 - ether - link eth5 eth-00:0c:29:5a:b1:20 - ether - -
End of Solution
sym2
The set-node directive in the llttab file is different on each system. On Linux
systems, the default device listed in each link directive includes the MAC address of
the device. This will be unique for each device on each system.
Solution
cd /etc
cat llthosts
0 sym1
1 sym2
cat llttab
set-node sym2
set-cluster 42845
link eth4 eth-00:0c:29:2d:77:9a - ether - link eth5 eth-00:0c:29:2d:77:a4 - ether - -
End of Solution
sym1
From sym1:terminal1, create a backup copy of the llttab file. Modify the
llttab file by making the following changes:
Change the value of set-cluster directive to 5.
Add a low priority LLT link after the link eth5 line by adding the line
link-lowpri eth0 eth0 - ether - After you have made the edits, the affected portion of the files (added and
changed portions are bolded) should be:
B303
set-node sym1
set-cluster 5
link eth4 eth-00:0c:29:5a:b1:16 - ether - link eth5 eth-00:0c:29:5a:b1:20 - ether - link-lowpri eth0 eth0 - ether - After you have made the changes, save and close the llttab file.
Solution
cp -p llttab llttab.ORIG
vi llttab
Locate the portion of the file shown in the above code snippet and make the
two changes shown in bold.
cat llttab
set-node sym1
set-cluster 5
link eth4 eth-00:0c:29:5a:b1:16 - ether - link eth5 eth-00:0c:29:5a:b1:20 - ether - link-lowpri eth0 eth0 - ether - -
End of Solution
sym2
310 B304
From sym2:terminal1, create a backup copy of the llttab file. Modify the
llttab file by making the following changes:
Change the value of set-cluster directive to 5.
Add a low priority LLT link after the link eth5 line by adding the line
link-lowpri eth0 eth0 - ether - After you have made the edits, the affected portion of the files (added and
changed portions are bolded) should be:
set-node sym2
set-cluster 5
link eth4 eth-00:0c:29:2d:77:9a - ether - link eth5 eth-00:0c:29:2d:77:a4 - ether - link-lowpri eth0 eth0 - ether - After you have made the changes, save and close the llttab file.
Solution
cp -p llttab llttab.ORIG
vi llttab
Locate the portion of the file shown in the above code snippet and make the
two changes shown in bold.
cat llttab
set-node sym2
set-cluster 42845
link eth4 eth-00:0c:29:2d:77:9a - ether - link eth5 eth-00:0c:29:2d:77:a4 - ether - link-lowpri eth0 eth0 - ether - -
End of Solution
sym1
From sym1:terminal1, confirm that the VCS configuration is closed and force
stop VCS on all cluster nodes. Then, confirm that VCS is shutdown by waiting
for GAB port h to close on both systems and confirm that the loopy process is
still running.
Solution
311
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
4c9c01 membership 01
B305
11328
18099
1 0 Jan21 ?
9341 0 02:21 pts/3
End of Solution
gabconfig -U
gabconfig -a
GAB Port Memberships
===============================================================
End of Solution
sym2
GAB.
Solution
312 B306
gabconfig -U
gabconfig -a
GAB Port Memberships
===============================================================
End of Solution
sym1
lltconfig -U
lltconfig: this will attempt to stop and reset LLT. Confirm (y/n)?
y
LLT lltstat ERROR V-14-2-15000 open /dev/llt failed: No such file or
directory
State
IDLE
IDLE
Link
Status
Address
End of Solution
sym2
Solution
313
lltconfig -U
lltconfig: this will attempt to stop and reset LLT. Confirm (y/n)?
State
IDLE
IDLE
Link
Status
Address
End of Solution
B307
sym1
lltconfig -c
1 sym2
State
OPEN
Link
Status
eth4
eth5
eth0
UP
UP
UP
eth4
eth5
eth0
DOWN
DOWN
DOWN
Address
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
IDLE
Note: The DOWN status is expected since LLT has not yet been started
on sym2 and GAB has not yet been started. Therefore, no I/O
activity across the LLT links has occurred.
End of Solution
sym2
314 B308
lltconfig -c
State
Link
Status
Address
0 sym1
IDLE
* 1 sym2
eth4
eth5
eth0
DOWN
DOWN
DOWN
eth4
eth5
eth0
UP
UP
UP
OPEN
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
End of Solution
sh /etc/gabtab
gablogd: Keeping 20 log files of 8388608 bytes each in |/var/log/gab_ffdc|
directory. Daemon log size limit 8388608 bytes
Started gablogd
gabconfig -a
GAB Port Memberships
===============================================================
Note: GAB will not seed until it is started on the sym1. LLT will also not
yet show any status due to lack of GAB I/O.
c
315
* 1 sym2
State
Link
CONNWAIT
eth4
eth5
eth0
OPEN
eth4
eth5
eth0
Status
Address
DOWN
DOWN
DOWN
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
Note: The state of sym1 shows CONNWAIT instead of IDLE and sym1s
MAC addresses are shown since LLT is now talking on the two nodes.
End of Solution
B309
sym1
GAB and use the gabconfig -a command to confirm GAB has started.
Use the lltstat -nvv configured command to confirm LLT has
started.
Solution
sh /etc/gabtab
gablogd: Keeping 20 log files of 8388608 bytes each in |/var/log/gab_ffdc|
directory. Daemon log size limit 8388608 bytes
Started gablogd
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Note: It may take a few seconds for GAB to show port a membership.
c
1 sym2
316 B310
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
sym2
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
* 1 sym2
317
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
hastart
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
81fb01 membership 01
Port h gen
81fb03 membership ;1
Port h gen
81fb03
visible 0
End of Solution
B311
sym1
18 From sym1:terminal1, start VCS and confirm GAB and summary cluster
hastart
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port h gen
8da504 membership 01
318 B312
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
sym1
sym2
sym1
sym2
Y
Y
Y
Y
N
N
N
N
OFFLINE
ONLINE
ONLINE
OFFLINE
ClusterService
ClusterService
appsg
appsg
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
sym1
1
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
From sym1:terminal1, confirm that all service groups are online on sym1 and
display GAB status to confirm membership on port a and port h.
Solution
hagrp -state
#Group
ClusterService
ClusterService
appsg
appsg
319
Attribute
State
State
State
State
System
sym1
sym2
sym1
sym2
Value
|ONLINE|
|OFFLINE|
|ONLINE|
|OFFLINE|
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port h gen
8da504 membership 01
End of Solution
B313
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
sym2
* 1 sym2
320 B314
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
sym1
cd /student/labs/vcs/vcs60/lltlink
ls -l
total 12
-rwxr-xr-x 1 root root 4355 Nov 15 13:35 lltlink.pl
drwxr-xr-x 3 root root 4096 Mar 29 2011 setup
End of Solution
Run the lltlink.pl script. Enter ssh as the access method. Select option 4
to disable the eth4 link on sym1.
Solution
./lltlink.pl
Checking your Operating System and setting some variables . . .
Your Operating System is . . . Linux, x86_64 . . . Done!
321
ssh
Enable or Disable LLT links Script
This script can be used to enable and disable LLT links on the local
system or on all nodes in the cluster.
Choose the desired option from the list below.
1. Disable all private links (eth4 eth5 eth0) on all nodes in the
cluster
2.
3.
4.
5.
6.
7.
B315
4
Disable eth4 on sym1 only
Disabling link eth4 on sym1 . . . done.
Notice the LLT messages in sym1:terminal2 for the eth4 LLT link timing
out. This may take a few seconds.
End of Solution
Display GAB status and the configured and active status of LLT. What has
changed?
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port h gen
8da504 membership 01
322 B316
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
DOWN
UP
UP
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
Link
Status
OPEN
State
OPEN
eth4
eth5
eth0
1 sym2
UP
UP
UP
Address
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
OPEN
eth4
eth5
eth0
DOWN
UP
UP
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
End of Solution
sym2
From sym2:terminal1, display the configured and active status of llt. Is there
any difference from the sym1?
On sym2, the eth4 link for sym1 is show as DOWN. On sym1, the eth4 link for
sym2 was shown as DOWN.
Solution
* 1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
DOWN
UP
UP
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
* 1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
DOWN
UP
UP
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
B317
sym1
./lltlink.pl
Enable or Disable LLT links Script
This script can be used to enable and disable LLT links on the local
system or on all nodes in the cluster.
Choose the desired option from the list below.
1. Disable all private links (eth4 eth5 eth0) on all nodes in the
cluster
2.
3.
4.
5.
6.
7.
8.
9.
6
Disable eth5 on sym1 only
Disabling link eth5 on sym1 . . . done.
324 B318
Notice the LLT messages in sym1:terminal2 for the eth5 LLT link timing
out. This may take a few seconds.
End of Solution
10 Display GAB status and the configured and active status of LLT. What has
changed?
Note: It may take a few seconds for the status to change.
The cluster is in jeopardy. The eth4 and eth5 links for sym2 shows as DOWN.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port a gen
8da501
jeopardy ;1
Port h gen
8da504 membership 01
Port h gen
8da504
jeopardy ;1
1 sym2
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
DOWN
DOWN
UP
00:0C:29:2D:77:72
Link
Status
OPEN
State
OPEN
1 sym2
State
OPEN
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
DOWN
DOWN
UP
00:0C:29:2D:77:72
OPEN
End of Solution
B319
sym2
11 From sym2:terminal1, display GAB status and the configured and active
On sym2, the eth4 and eth5 links for sym1 is show as DOWN.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port a gen
8da501
jeopardy ;1
Port h gen
8da504 membership 01
Port h gen
8da504
jeopardy ;1
* 1 sym2
326 B320
State
OPEN
Link
Status
Address
eth4
eth5
eth0
DOWN
DOWN
UP
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
* 1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
DOWN
DOWN
UP
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
sym1
12 From sym1:terminal2, review the end of the VCS engine log and notice the
End of Solution
Solution
./lltlink.pl
Enable or Disable LLT links Script
This script can be used to enable and disable LLT links on the local
system or on all nodes in the cluster.
Choose the desired option from the list below.
1. Disable all private links (eth4 eth5 eth0) on all nodes in the
cluster
2.
3.
4.
5.
B321
6.
7.
8.
9.
5
Enable eth4 on sym1 only
Enabling link eth4 on sym1 . . . done.
End of Solution
14 Display GAB status and the configured and active status of LLT. What has
changed?
Note: It may take a few seconds for the status to change.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port h gen
8da504 membership 01
328 B322
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
DOWN
UP
00:0C:29:2D:77:9A
Link
Status
OPEN
00:0C:29:2D:77:72
State
OPEN
eth4
eth5
UP
UP
Address
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
1 sym2
eth0
UP
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
DOWN
UP
00:0C:29:2D:77:9A
OPEN
00:0C:29:2D:77:72
End of Solution
15 From sym1:terminal2, examine the end to the VCS engine log and take note
End of Solution
./lltlink.pl
Enable or Disable LLT links Script
This script can be used to enable and disable LLT links on the local
system or on all nodes in the cluster.
Choose the desired option from the list below.
1. Disable all private links (eth4 eth5 eth0) on all nodes in the
cluster
2.
3.
4.
5.
6.
7.
8.
9.
7
Enable eth5 on sym1 only
Enabling link eth5 on sym1 . . . done.
End of Solution
B323
17 Display GAB status and the configured and active status of LLT. What has
changed?
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port h gen
8da504 membership 01
1 sym2
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
1 sym2
Link
OPEN
330 B324
State
OPEN
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
Press Ctrl-C.
End of Solution
sym2
19 From sym2:terminal1, display GAB status and the configured and active
There is no difference.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
8da501 membership 01
Port h gen
8da504 membership 01
* 1 sym2
331
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
* 1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
End of lab
B325
332 B326
B327
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
Log in with credentials:
Account: student
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
334 B328
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, you will not need to
shutdown or power on any virtual machines.
sym1
1
cd /etc/sysconfig
ls -l vxfen
-rw-r--r-- 1 root root 3396 Nov 14 09:57 vxfen
more vxfen
...
#
# This file is sourced from /etc/init.d/vxfen.
#
End of Solution
B329
Navigate to the /etc directory and recursively list I/O fencing configuration
files whose name starts with vxfen. List the contents of any subdirectories
found.
Solution
cd /etc
ls -lR vxfen.d
vxfen.d:
total 32
-r-xr--r-drwxr-xr-x
-rwxr--r--r-xr--r--r-xr--r--r-xr--r--r-xr--r--
1
2
1
1
1
1
1
root
root
root
root
root
root
root
vxfen.d/script:
total 44
-r-xr--r-- 1 root root 42067 Oct 13 17:06 vxfen_scriptlib.sh
End of Solution
Solution
gabconfig -a
336 B330
End of Solution
NONE
Solution
End of Solution
Use the vxfenadm command to display I/O fencing status. Use the
vxfenconfig command to determine if there are any coordination points in
use.
Solution
vxfenadm -d
VXFEN vxfenadm ERROR V-11-2-1101 Open failed for device: /dev/vxfen
vxfenconfig -l
VXFEN vxfenconfig ERROR V-11-2-1002 Open failed for device: /dev/vxfen with
error 2
Note: These errors are expected when I/O fencing has not been
configured.
End of Solution
B331
sym1
1
DEVICE
emc0_dd1
emc0_dd2
emc0_dd3
emc0_dd4
emc0_dd5
emc0_dd6
emc0_dd7
emc0_dd8
emc0_dd9
emc0_d10
emc0_d11
emc0_d12
sda
sdb
338 B332
TYPE
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:none
auto:none
DISK
GROUP
STATUS
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
loopydatadg01 loopydatadg online
(sharedatadg) online
online
online
online
online invalid
online invalid
online invalid
online invalid
online invalid
vxdisksetup -i emc0_d10
vxdisksetup -i emc0_d11
vxdisksetup -i emc0_d12
TYPE
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
DISK
-
GROUP
STATUS
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
emc0_dd5
emc0_dd6
emc0_dd7
emc0_dd8
emc0_dd9
emc0_d10
emc0_d11
emc0_d12
sda
sdb
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:none
auto:none
End of Solution
Create a disk group named testwestdg made up of the three initialed disks:
emc0_d10
emc0_d11
emc0_d12
Solution
vxdg list
NAME
loopydatadg
testwestdg
STATE
enabled,cds
enabled,cds
ID
1319645563.37.sym1
1321293346.59.sym1
End of Solution
Use the vxfentsthdw command to test the disks as dmp nodes and for
coordinator disk suitability. The cluster nodes are:
sym1
sym2
Solution
vxfentsthdw -c testwestdg -d
Veritas vxfentsthdw version 6.0.000.000-GA Linux
B333
sym1
Enter the second node of the cluster:
sym2
********************************************
Testing sym1 /dev/vx/rdmp/emc0_d10s3 sym2 /dev/vx/rdmp/emc0_d10s3
Evaluate the disk before testing ........................ No Pre-existing
keys
RegisterIgnoreKeys on disk /dev/vx/rdmp/emc0_d10s3 from node sym1 ......
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_d10s3 on node sym1 .....
Passed
RegisterIgnoreKeys on disk /dev/vx/rdmp/emc0_d10s3 from node sym2 ......
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_d10s3 on node sym1 .....
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_d10s3 on node sym2 .....
Passed
Preempt and abort key KeyA using key KeyB on node sym2 .................
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_d10s3 on node sym1 .....
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_d10s3 on node sym2 .....
Passed
Remove key KeyB on node sym2 ...........................................
Passed
Check to verify there are no keys from node sym1 .......................
Passed
ALL tests on the disk /dev/vx/rdmp/emc0_d10s3 have PASSED.
The disk is now ready to be configured for I/O Fencing on node sym1
as a COORDINATOR DISK.
...
Removing test keys and temporary files, if any...
End of Solution
340 B334
Destroy the disk group named testwestdg made up of the three initialed disks.
Solution
vxdg list
NAME
loopydatadg
STATE
enabled,cds
ID
1319645563.37.sym1
End of Solution
Initialize a spare data disk for I/O fencing data disk suitability testing using the
disk emc0_dd9, but only if it does not already show a status of online.
Otherwise, skip to the next step.
Solution
DISK
GROUP
STATUS
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
(symdbdatadg) online
loopydatadg01 loopydatadg online
(sharedatadg) online
online
online
online invalid
online
online
online
online invalid
online invalid
vxdisksetup -i emc0_dd9
TYPE
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:none
auto:none
TYPE
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
auto:none
auto:none
DISK
GROUP
STATUS
(symdbdatadg) online clone_disk
(symdbdatadg) online clone_disk
(symdbdatadg) online clone_disk
(symdbdatadg) online clone_disk
loopydatadg01 loopydatadg online clone_disk
(sharedatadg) online clone_disk
online
online
online
online
online
online
online invalid
online invalid
End of Solution
Use the vxfentsthdw command to test the initialized disk for data disk
suitability. Use the following information:
Test in dmp mode and to be manually prompted for the node names and
device name for each node.
Respond y to continue when warned about disk data destruction.
Node names: sym1 and sym2
B335
Note: The logfile name displays early and quickly. It is easily missed.
Solution
vxfentsthdw -d -m
Veritas vxfentsthdw version 6.0.000.000-GA Linux
The utility vxfentsthdw works on the two nodes of the cluster.
The utility verifies that the shared storage one intends to use is
configured to support I/O fencing. It issues a series of vxfenadm
commands to setup SCSI-3 registrations on the disk, verifies the
registrations on the disk, and removes the registrations from the disk.
y
The logfile generated for vxfentsthdw is /var/VRTSvcs/log/vxfen/
vxfentsthdw.log.24711
Enter the first node of the cluster:
sym1
342 B336
sym2
Enter the disk name to be checked for SCSI-3 PGR on node sym1 in the format:
for dmp: /dev/vx/rdmp/sdx
for raw: /dev/sdx
Make sure it is the same disk as seen by nodes sym1 and sym2
/dev/vx/rdmp/emc0_dd9
Enter the disk name to be checked for SCSI-3 PGR on node sym2 in the format:
for dmp: /dev/vx/rdmp/sdx
for raw: /dev/sdx
Make sure it is the same disk as seen by nodes sym1 and sym2
/dev/vx/rdmp/emc0_dd9
Evaluate the disk before testing ........................ No Pre-existing
keys
RegisterIgnoreKeys on disk /dev/vx/rdmp/emc0_dd9 from node sym1 ........
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_dd9 on node sym1 .......
Passed
RegisterIgnoreKeys on disk /dev/vx/rdmp/emc0_dd9 from node sym2 ........
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_dd9 on node sym2 .......
Passed
...
Check to verify there are no keys from node sym1 .......................
Passed
Check to verify there are no keys from node sym2 .......................
Passed
Check to verify there are no reservations on disk /dev/vx/rdmp/emc0_dd9 from
node sym1 Passed
Check to verify there are no reservations on disk /dev/vx/rdmp/emc0_dd9 from
node sym2 Passed
RegisterIgnoreKeys on disk /dev/vx/rdmp/emc0_dd9 from node sym1 ........
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_dd9 on node sym1 .......
Passed
RegisterIgnoreKeys on disk /dev/vx/rdmp/emc0_dd9 from node sym1 ........
Passed
Verify registrations for disk /dev/vx/rdmp/emc0_dd9 on node sym1 .......
Passed
Clear PGR on node sym1 .................................................
Passed
Check to verify there are no keys from node sym1 .......................
Passed
ALL tests on the disk /dev/vx/rdmp/emc0_dd9 have PASSED.
The disk is now ready to be configured for I/O Fencing on node sym1.
ALL tests on the disk /dev/vx/rdmp/emc0_dd9 have PASSED.
The disk is now ready to be configured for I/O Fencing on node sym2.
Removing test keys and temporary files, if any...
ls -l /var/VRTSvcs/log/vxfen/vxfentsthdw.log.xxxxx
End of Solution
B337
sym1
1
cd /opt/VRTS/install
ls -l
total 60
drwxr-x--- 3 root root 4096 Nov 1 08:21 bin
-rwxr-x--- 1 root root 1222 Nov 1 08:21 installdmp
-rwxr-x--- 1 root root 1221 Nov 1 08:21 installfs
-rwxr-x--- 1 root root 1221 Nov 1 08:21 installsf
-rwxr-x--- 1 root root 1223 Nov 1 08:21 installsfha
-rwxr-x--- 1 root root 1222 Nov 1 08:21 installvcs
-rwxr-x--- 1 root root 1221 Nov 1 08:21 installvm
drwxr-xr-x 10 root root 4096 Nov 14 11:36 logs
-rwxr-x--- 1 root root 1384 Nov 1 08:21 showversion
-rwxr-x--- 1 root root 1222 Nov 1 08:21 uninstalldmp
-rwxr-x--- 1 root root 1221 Nov 1 08:21 uninstallfs
-rwxr-x--- 1 root root 1221 Nov 1 08:21 uninstallsf
-rwxr-x--- 1 root root 1223 Nov 1 08:21 uninstallsfha
-rwxr-x--- 1 root root 1222 Nov 1 08:21 uninstallvcs
-rwxr-x--- 1 root root 1221 Nov 1 08:21 uninstallvm
End of Solution
344B338
Use the installsfha script with the fencing option to begin configuring
VCS for I/O fencing. Use the following information.
Configure disk based fencing
Acknowledge that VCS will be restarted
Confirm that you have SCSI3 PR enabled disks
Solution
./installsfha -fencing
Checking
Checking
Checking
Checking
Checking
Checking
End of Solution
B339
Continue configuring VCS for I/O fencing using the following information.
Create a new disk group using the disks:
emc0_d10
emc0_d11
emc0_d12
Disk group name: westfendg
Disk policy for the disks: dmp
Stop VCS and apply fencing configuration on all nodes at this time
Solution
1)
2)
3)
4)
5)
6)
346 B340
emc0_dd7
emc0_dd8
emc0_dd9
emc0_d10
emc0_d11
emc0_d12
To Select odd number of disks and at least three disks to form a disk
group, type: 4 5 6
To stop VCS and apply fencing configuration on all nodes at this time,
type: y
Done
Done
Done
Done
Done
Done
Done
End of Solution
Complete the configuring of VCS for I/O fencing by reviewing the summary
file. Optionally, examine the log file.
Solution
End of Solution
B341
sym1
1
I/O fencing will be started on system boot and stopped on system shutdown.
Solution
cd /etc/sysconfig
ls -l vxfen
348 B342
more vxfen
...
#
# This file is sourced from /etc/init.d/vxfen.
#
End of Solution
Navigate to the /etc directory and list I/O fencing configuration files whose
name starts with vxfen. Display the file contents. Ignore the vxfen.d sub
directory as that was examined earlier. Which file contains the name of the
coordinator disk group used during I/O Fencing configuration? What is in the
vxfentab file?
The vxfendg file contains the name of the coordinator disk group. The vxfentab
file lists the coordinator disks for this configuration.
Solution
cd /etc
ls -ld vxfen*
drwxr-xr-x
-rw-r--r--r-xr--r--rw-r-----
3
1
1
1
root
root
root
root
vxfen.d
vxfendg
vxfenmode
vxfentab
more vxfendg
westfendg
more vxfenmode
#
# vxfen_mode determines in what mode VCS I/O Fencing should work.
#
# available options:
# scsi3
- use scsi3 persistent reservation disks
# customized - use script based customized fencing
# disabled
- run the driver but don't do any actual fencing
#
vxfen_mode=scsi3
#
# scsi3_disk_policy determines the way in which I/O Fencing communicates
with
# the coordination disks.
#
# available options:
# dmp - use dynamic multipathing
# raw - connect to disks using the native interface
#
scsi3_disk_policy=dmp
more vxfentab
#
# /etc/vxfentab:
# DO NOT MODIFY this file as it is generated by the
# VXFEN rc script from the file /etc/vxfendg.
B343
#
/dev/vx/rdmp/emc0_d10s3
/dev/vx/rdmp/emc0_d11s3
/dev/vx/rdmp/emc0_d12s3
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca02 membership 01
Port b gen
cfca01 membership 01
Port h gen
cfca05 membership 01
End of Solution
End of Solution
Use the vxfenadm command to display I/O fencing status and use the
vxfenconfig command to determine if there are any devices in use as
coordination disks or coordination points.
Solution
350 B344
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
8 (running)
8 (running)
vxfenconfig -l
I/O Fencing Configuration Information:
======================================
Single Disk Flag
: 0
Count
: 3
Disk List
Disk Name
Major
/dev/vx/rdmp/emc0_d11s3
201
/dev/vx/rdmp/emc0_d10s3
201
/dev/vx/rdmp/emc0_d12s3
201
Minor
131
83
35
Serial Number
512345600000000A
5123456000000009
512345600000000B
Policy
dmp
dmp
dmp
Note: The order of the command output may be different than what is
displayed in this sample output.
End of Solution
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
(westfendg)
(westfendg)
(westfendg)
online
online
online
End of Solution
sym2
351
Solution
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
(westfendg)
(westfendg)
(westfendg)
online
online
online
End of Solution
B345
sym1
8
End of Solution
There are 2 I/O paths per disk. Since there are 2 systems in the cluster, there are
2 X 2 = 4 registrations on each coordinator disk. There are no reservations put on
coordinator disks.
Solution
352 B346
emc0_d10
emc0_d10
*
[Node Format]: Cluster ID: 5
Node ID: 0
key[2]:
[Numeric Format]: 86,70,48,48,48,53,48,49
[Character Format]: VF000501
*
[Node Format]: Cluster ID: 5
Node ID: 1
key[3]:
[Numeric Format]: 86,70,48,48,48,53,48,49
[Character Format]: VF000501
*
[Node Format]: Cluster ID: 5
Node ID: 1
Device Name: /dev/vx/rdmp/emc0_d11s3
Total Number Of Keys: 4
key[0]:
[Numeric Format]: 86,70,48,48,48,53,48,48
[Character Format]: VF000500
*
[Node Format]: Cluster ID: 5
Node ID: 0
key[1]:
[Numeric Format]: 86,70,48,48,48,53,48,48
[Character Format]: VF000500
*
[Node Format]: Cluster ID: 5
Node ID: 0
key[2]:
[Numeric Format]: 86,70,48,48,48,53,48,49
[Character Format]: VF000501
*
[Node Format]: Cluster ID: 5
Node ID: 1
key[3]:
[Numeric Format]: 86,70,48,48,48,53,48,49
[Character Format]: VF000501
*
[Node Format]: Cluster ID: 5
Node ID: 1
End of Solution
B347
sym1
1
From sym1:terminal1, determine the system where the appsg service group is
online. Confirm that the loopydatadg disk group is imported.
Note: The appsg service group should be online on sym1. If not, switch the
appsg service group to sym1.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
auto:cdsdisk
loopydatadg01
loopydatadg
online
End of Solution
354 B348
Use the vxfenadm command to display the I/O fencing reservations and
registration on the loopy data disk. Why are there the number of reservations
and registrations as compared to the coordinator disks shown in the previous
exercise?
The data disks are part of regular volume manager disk groups and so are only
imported on one system at a time and not shared cluster volume manager disk groups
which can be imported on multiple cluster systems at one time. Therefore, only one
registration per dmp path on the node upon which the disk group is imported is created
by I/O fencing. In this lab environment, there are two registrations for the dual paths
on the one node that the disk group is imported. Only a single reservation is needed
regardless of the number of dmp paths and that reservation is managed by I/O fencing
on the node upon which the disk group is imported. The coordinator disk group is not
used as a writable disk group and so I/O fencing does not create reservations on
coordinator disks, but does manages multiple node registrations as noted earlier.
Solution
vxfenadm -s /dev/vx/rdmp/emc0_dd5
vxfenadm -r /dev/vx/rdmp/emc0_dd5
Reading SCSI Reservation Information...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 1
Key[0]:
Reservation Type: SCSI3_RESV_WRITEEXCLUSIVEREGISTRANTSONLY
Key Value [Numeric Format]: 65,86,67,83,0,0,0,0
Key Value [Character Format]: AVCS
End of Solution
B349
sym2
3
Solution
vxfenadm -s /dev/vx/rdmp/emc0_dd5
Reading SCSI Registration Keys...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 2
key[0]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
key[1]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
vxfenadm -r /dev/vx/rdmp/emc0_dd5
356 B350
End of Solution
Switch the appsg service group to sym2 and use the vxfenadm command to
display the I/O fencing reservations and registration on the loopy data disk
now that the disk group containing the data disk is imported. Are there any
differences in the output from the previous step?
The registrations and reservation change to reflect that the disk group is imported on
sym2.
Veritas Cluster Server 5.1 for UNIX: Install and Configure
Copyright 2012 Symantec Corporation. All rights reserved.
Solution
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
Attribute
State
State
auto:cdsdisk
loopydatadg01
loopydatadg
online
vxfenadm -s /dev/vx/rdmp/emc0_dd5
Reading SCSI Registration Keys...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 2
key[0]:
[Numeric Format]: 66,86,67,83,0,0,0,0
[Character Format]: BVCS
[Node Format]: Cluster ID: unknown Node ID: 1
key[1]:
[Numeric Format]: 66,86,67,83,0,0,0,0
[Character Format]: BVCS
[Node Format]: Cluster ID: unknown Node ID: 1
vxfenadm -r /dev/vx/rdmp/emc0_dd5
End of Solution
B351
sym2
1
tail -f /var/log/messages
End of Solution
sym1
2
tail -f /var/log/messages
End of Solution
358 B352
auto:cdsdisk
(loopydatadg) online
End of Solution
The data disk import should fail because the node where the disk group is not
imported does not have rights to write to the disk and therefore cannot import the disk
group and update the private region header information. The error message indicates
that data corruption from a possible concurrency violation has been prevented. The
vxdg -C import command would have been successful if I/O fencing was not
configured.
Solution
B353
End of Solution
Attribute
State
State
System
sym1
sym2
Value
|OFFLINE|
|ONLINE|
Attribute
State
State
System
sym1
sym2
Value
|ONLINE|
|OFFLINE|
End of Solution
Display a summary status of the cluster taking notice of the systems where the
service groups are online.
Solution
hastatus -sum
360 B354
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
appsg
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca06 membership 01
Port b gen
cfca05 membership 01
Port h gen
cfca09 membership 01
End of Solution
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
vxfenadm -d
361
8 (running)
8 (running)
End of Solution
B355
Display the I/O fencing registrations for the coordinator disks and the
registrations and reservation on the /dev/vx/rdmp/emc0_dd5 disk
(which is part of the loopydatadg disk group).
Solution
362 B356
vxfenadm -s /dev/vx/rdmp/emc0_dd5
Reading SCSI Registration Keys...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 2
key[0]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
key[1]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
vxfenadm -r /dev/vx/rdmp/emc0_dd5
Reading SCSI Reservation Information...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 1
Key[0]:
Reservation Type: SCSI3_RESV_WRITEEXCLUSIVEREGISTRANTSONLY
Key Value [Numeric Format]: 65,86,67,83,0,0,0,0
Key Value [Character Format]: AVCS
End of Solution
Cause a system failure on sym1 by powering off the sym1 virtual machine.
Solution
sym2
8
B357
What is the node name associated with the node ID that was declared in
trouble?
The node name associated with the node ID that was declared in trouble is sym1.
Solution
364 B358
...
Nov 22 06:25:54 sym2 kernel:
trouble
Nov 22 06:25:55 sym2 kernel:
trouble
Nov 22 06:25:57 sym2 kernel:
trouble
Nov 22 06:26:00 sym2 kernel:
inactive 8 sec (140088)
Nov 22 06:26:01 sym2 kernel:
inactive 8 sec (139418)
Nov 22 06:26:01 sym2 kernel:
inactive 8 sec (65327)
Nov 22 06:26:01 sym2 kernel:
inactive 9 sec (140088)
Nov 22 06:26:02 sym2 kernel:
inactive 9 sec (139418)
Nov 22 06:26:02 sym2 kernel:
inactive 9 sec (65327)
Nov 22 06:26:02 sym2 kernel:
inactive 10 sec (140088)
Nov 22 06:26:03 sym2 kernel:
inactive 10 sec (139418)
Nov 22 06:26:03 sym2 kernel:
inactive 10 sec (65327)
Nov 22 06:26:03 sym2 kernel:
inactive 11 sec (140088)
Nov 22 06:26:04 sym2 kernel:
inactive 11 sec (139418)
Nov 22 06:26:04 sym2 kernel:
inactive 11 sec (65327)
Nov 22 06:26:04 sym2 kernel:
inactive 12 sec (140088)
Nov 22 06:26:05 sym2 kernel:
inactive 12 sec (139418)
Nov 22 06:26:05 sym2 kernel:
inactive 12 sec (65327)
Nov 22 06:26:05 sym2 kernel:
inactive 13 sec (140088)
Nov 22 06:26:06 sym2 kernel:
inactive 13 sec (139418)
Nov 22 06:26:06 sym2 kernel:
inactive 13 sec (65327)
Nov 22 06:26:06 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
1 (eth5) node 0. 4 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10032 link 1 (eth5) node 0
inactive 14 sec (140088)
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
0 (eth4) node 0. 4 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
1 (eth5) node 0. 3 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
2 (eth0) node 0. 4 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10032 link 0 (eth4) node 0
inactive 14 sec (139418)
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10032 link 2 (eth0) node 0
inactive 14 sec (65327)
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
0 (eth4) node 0. 3 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
1 (eth5) node 0. 2 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
2 (eth0) node 0. 3 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
0 (eth4) node 0. 2 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
1 (eth5) node 0. 1 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
2 (eth0) node 0. 2 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
0 (eth4) node 0. 1 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
1 (eth5) node 0. 0 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
2 (eth0) node 0. 1 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
0 (eth4) node 0. 0 more to go.
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10509 link 1 (eth5) node 0
expired
Nov 22 06:26:07 sym2 kernel: LLT INFO V-14-1-10510 sent hbreq (NULL) on link
2 (eth0) node 0. 0 more to go.
Nov 22 06:26:08 sym2 kernel: LLT INFO V-14-1-10032 link 0 (eth4) node 0
inactive 15 sec (139418)
Nov 22 06:26:08 sym2 kernel: LLT INFO V-14-1-10032 link 2 (eth0) node 0
inactive 15 sec (65327)
Nov 22 06:26:08 sym2 kernel: LLT INFO V-14-1-10509 link 0 (eth4) node 0
expired
Nov 22 06:26:08 sym2 kernel: LLT INFO V-14-1-10509 link 2 (eth0) node 0
expired
Nov 22 06:26:08 sym2 kernel: GAB INFO V-15-1-20239 Initiating FFDC data
collection
Nov 22 06:26:12 sym2 Had[10909]: VCS INFO V-16-1-10077 Received new cluster
membership
Nov 22 06:26:12 sym2 kernel: GAB INFO V-15-1-20036 Port a[GAB_Control
(refcount 1)] gen
8da502 membership ;1
Nov 22 06:26:12 sym2 kernel: GAB INFO V-15-1-20036 Port h[GAB_USER_CLIENT
(refcount 0)] gen
8da505 membership ;1
Nov 22 06:26:12 sym2 Had[10909]: VCS ERROR V-16-1-10079 System sym1 (Node
'0') is in Down State - Membership: 0x2
Nov 22 06:26:12 sym2 Had[10909]: VCS ERROR V-16-1-10322 System sym1 (Node
'0') changed state from RUNNING to FAULTED
Nov 22 06:26:16 sym2 avahi-daemon[8196]: Registering new address record for
10.10.2.61 on eth0.
Nov 22 06:26:24 sym2 avahi-daemon[8196]: Registering new address record for
10.10.2.51 on eth0.
...
End of Solution
B359
The appsg and ClusterService service groups were brought online on sym2.
The eth0, eth4 and eth5 LLT network interfaces were declared down.
Which file system had a log replay performed on it and which VCS resource
manages that file system?
The /loopyfs file system which is managed by the appmnt resource had a log
replay performed on it.
Solution
more /var/VRTSvcs/log/engine_A.log
366 B360
...
2011/11/22 06:26:12 VCS INFO V-16-1-10077 Received new cluster membership
2011/11/22 06:26:12 VCS NOTICE V-16-1-10112 System (sym2) - Membership:
0x2, DDNA: 0x0
2011/11/22 06:26:12 VCS ERROR V-16-1-10079 System sym1 (Node '0') is in Down
State - Membership: 0x2
2011/11/22 06:26:12 VCS ERROR V-16-1-10322 System sym1 (Node '0') changed
state from RUNNING to FAULTED
2011/11/22 06:26:12 VCS NOTICE V-16-1-10446 Group ClusterService is offline
on system sym1
2011/11/22 06:26:12 VCS NOTICE V-16-1-10446 Group appsg is offline on system
sym1
2011/11/22 06:26:12 VCS INFO V-16-1-10493 Evaluating sym1 as potential
target node for group ClusterService
2011/11/22 06:26:12 VCS INFO V-16-1-10494 System sym1 not in RUNNING state
2011/11/22 06:26:12 VCS INFO V-16-1-10493 Evaluating sym2 as potential
target node for group ClusterService
2011/11/22 06:26:12 VCS INFO V-16-1-10493 Evaluating sym1 as potential
target node for group appsg
2011/11/22 06:26:12 VCS INFO V-16-1-10494 System sym1 not in RUNNING state
2011/11/22 06:26:12 VCS INFO V-16-1-10493 Evaluating sym2 as potential
target node for group appsg
2011/11/22 06:26:12 VCS NOTICE V-16-1-10301 Initiating Online of Resource
webip (Owner: Unspecified, Group: ClusterService) on System sym2
2011/11/22 06:26:12 VCS NOTICE V-16-1-10301 Initiating Online of Resource
notifier (Owner: Unspecified, Group: ClusterService) on System sym2
2011/11/22 06:26:12 VCS NOTICE V-16-1-10301 Initiating Online of Resource
appdg (Owner: Unspecified, Group: appsg) on System sym2
2011/11/22 06:26:12 VCS NOTICE V-16-1-10301 Initiating Online of Resource
appip (Owner: Unspecified, Group: appsg) on System sym2
End of Solution
10 Display a summary status of the cluster taking notice of the system state and
B361
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
FAULTED
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
System
ClusterService
appsg
Probed
sym2
sym2
Y
Y
AutoDisabled
State
N
N
ONLINE
ONLINE
Note: sym1 shows as faulted and only state information related to sym2
is displayed.
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca05 membership ;1
Port b gen
cfca04 membership ;1
Port h gen
cfca08 membership ;1
End of Solution
368 B362
State
Link
CONNWAIT
eth4
eth5
eth0
Status
Address
DOWN
DOWN
DOWN
* 1 sym2
OPEN
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
State
OPEN
Link
eth4
eth5
eth0
Status
UP
UP
UP
Address
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
Note: LLT communications from sym1 are no longer active though they
are still configured.
End of Solution
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
8 (running)
Note: I/O fencing is only running on one node and membership displayed
is consistent with GAB.
End of Solution
14 Display the I/O fencing registrations for the coordinator disks and the
B363
Solution
Note: Only registrations for the dual paths for sym2 are active.
b
vxfenadm -s /dev/vx/rdmp/emc0_dd5
370 B364
Note: Only registrations for the dual paths for sym2 are active.
vxfenadm -r /dev/vx/rdmp/emc0_dd5
Reading SCSI Reservation Information...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 1
Key[0]:
Reservation Type: SCSI3_RESV_WRITEEXCLUSIVEREGISTRANTSONLY
Key Value [Numeric Format]: 66,86,67,83,0,0,0,0
Key Value [Character Format]: BVCS
sym1
15 Power on sym1 and log in as:
Account: root
Password: veritas
sym2
16 From sym2:terminal1, use the hastatus command to observe the cluster
activity. Exit the status when sym1 is running. At the same time, from
sym2:terminal2, observe the messages in the /var/log/messages file.
371
B365
Solution
hastatus
...
------------------------------------------------------------------------sym1
INITING
sym1
REMOTE BUILD
sym1
RUNNING
webip
sym1
OFFLINE
appip
sym1
OFFLINE
...
End of Solution
17 Display a summary status of the cluster taking notice of the systems where the
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
B
System
ClusterService
ClusterService
appsg
appsg
sym1
sym2
sym1
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
OFFLINE
ONLINE
OFFLINE
ONLINE
Note: State information is now shown for both nodes of the cluster.
372 B366
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
Port b gen
Port h gen
cfca06 membership 01
cfca05 membership 01
cfca09 membership 01
* 1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
* 1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
vxfenadm -d
I/O Fencing Cluster Information:
================================
B367
Fencing
Fencing
Fencing
Cluster
8 (running)
8 (running)
21 Display the I/O fencing registrations for the coordinator disks and the
374 B368
*
key[3]:
Note: Registrations for dual paths for both nodes are active on the
coordinator disks.
vxfenadm -s /dev/vx/rdmp/emc0_dd5
Reading SCSI Registration Keys...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 2
key[0]:
[Numeric Format]: 66,86,67,83,0,0,0,0
[Character Format]: BVCS
[Node Format]: Cluster ID: unknown Node ID: 1
key[1]:
[Numeric Format]: 66,86,67,83,0,0,0,0
[Character Format]: BVCS
[Node Format]: Cluster ID: unknown Node ID: 1
vxfenadm -r /dev/vx/rdmp/emc0_dd5
Reading SCSI Reservation Information...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 1
Key[0]:
Reservation Type: SCSI3_RESV_WRITEEXCLUSIVEREGISTRANTSONLY
Key Value [Numeric Format]: 66,86,67,83,0,0,0,0
Key Value [Character Format]: BVCS
B369
sym1
22 From sym1:terminal1, switch the ClusterService and appsg service groups
to sym1.
Solution
hagrp -state
#Group
ClusterService
ClusterService
appsg
appsg
Attribute
State
State
State
State
System
sym1
sym2
sym1
sym2
Value
|ONLINE|
|OFFLINE|
|ONLINE|
|OFFLINE|
End of Solution
376 B370
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
ClusterService
ClusterService
System
sym1
sym2
Probed
Y
Y
AutoDisabled
N
N
State
ONLINE
OFFLINE
B
B
appsg
appsg
sym1
sym2
Y
Y
N
N
ONLINE
OFFLINE
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca06 membership 01
Port b gen
cfca05 membership 01
Port h gen
cfca09 membership 01
End of Solution
1 sym2
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
B371
8 (running)
8 (running)
End of Solution
tail -f /var/log/messages
End of Solution
Solution
378 B372
cd /student/labs/vcs/vcs60/lltlink
./lltlink.pl
Checking your Operating System and setting some variables . . .
Your Operating System is . . . Linux, x86_64 . . . Done!
What is the remote communication method? rsh or ssh [ssh]:
ssh
Enable or Disable LLT links Script
This script can be used to enable and disable LLT links on the local
system or on all nodes in the cluster.
Choose the desired option from the list below.
1. Disable all private links (eth4 eth5 eth0) on all nodes in the
cluster
2.
3.
4.
5.
6.
7.
8.
9.
1
Disabling
Disabling
Disabling
Disabling
Disabling
Disabling
link
link
link
link
link
link
eth4
eth5
eth0
eth4
eth5
eth0
on
on
on
on
on
on
sym1
sym1
sym1
sym2
sym2
sym2
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
done.
done.
done.
done.
done.
done.
End of Solution
Note: One of the cluster systems will panic and stop. In the remainder of this
scenario, the examples shown are for sym2 stopping and sym1 remaining
up. Your results may be reversed.
From sym1:terminal2, observe the log messages. Notice LLT link expiration,
cluster membership changes and I/O fencing coordination point race events.
Solution
B373
380 B374
collection
Nov 22 09:36:29 sym1 Had[15629]: VCS INFO V-16-1-10077 Received new cluster
membership
Nov 22 09:36:29 sym1 kernel: GAB INFO V-15-1-20036 Port b[VxFen (refcount
2)] gen
c4cd08 membership 0
Nov 22 09:36:29 sym1 kernel: GAB INFO V-15-1-20036 Port a[GAB_Control
(refcount 1)] gen
c4cd02 membership 0
Nov 22 09:36:29 sym1 kernel: GAB INFO V-15-1-20036 Port h[GAB_USER_CLIENT
(refcount 0)] gen
c4cd0b membership 0
Nov 22 09:36:29 sym1 kernel: VXFEN INFO V-11-1-80 RACER Node is: 0
Nov 22 09:36:29 sym1 kernel: VXFEN INFO V-11-1-87 Initiating Race for
Coordination Point
Nov 22 09:36:29 sym1 kernel: VXFEN INFO V-11-1-88 RACER Node won the race
for the coordination points
Nov 22 09:36:29 sym1 kernel: VXFEN INFO V-11-1-90 Sending WON_RACE
Nov 22 09:36:29 sym1 kernel: VXFEN INFO V-11-1-67 call to VM ioctl
VOL_CLEAR_PR returned non-zero
Nov 22 09:36:29 sym1 kernel: VXFEN INFO V-11-1-84 Completed Fencing
Operation.
Nov 22 09:36:30 sym1 Had[15629]: VCS ERROR V-16-1-10079 System sym1 (Node
'1') is in Down State - Membership: 0x2
Nov 22 09:36:30 sym1 Had[15629]: VCS ERROR V-16-1-10322 System sym1 (Node
'1') changed state from RUNNING to FAULTED
Nov 22 09:36:31 sym1 vxvm:vxconfigd: V-5-1-11401 : dg import with I/O fence
enabled
Nov 22 09:36:31 sym1 vxvm:vxconfigd: V-5-1-11401 loopydatadg: dg import
with I/O fence enabled
Nov 22 09:36:31 sym1 kernel: sd 3:0:0:4: reservation conflict
Nov 22 09:36:31 sym1 kernel: sd 4:0:0:4: reservation conflict
Nov 22 09:36:31 sym1 kernel: sd 3:0:0:4: reservation conflict
Nov 22 09:36:33 sym1 avahi-daemon[8226]: Registering new address record for
10.10.2.51 on eth0.
Nov 22 09:36:41 sym1 avahi-daemon[8226]: Registering new address record for
10.10.2.61 on eth0.
...
End of Solution
more /var/VRTSvcs/log/engine_A.log
381
...
2011/11/22 09:36:25 VCS WARNING V-16-1-11141 LLT heartbeat link status
changed. Previous status = eth4 UP eth5 UP eth0 UP; Current status = eth4
DOWN eth5 DOWN eth0 DOWN.
2011/11/22 09:36:29 VCS INFO V-16-1-10077 Received new cluster membership
2011/11/22 09:36:29 VCS NOTICE V-16-1-10112 System (sym1) - Membership:
0x1, DDNA: 0x0
2011/11/22 09:36:29 VCS NOTICE V-16-1-10034 RECONFIG received. VCS waiting
for I/O fencing to be completed
2011/11/22 09:36:30 VCS NOTICE V-16-1-10036 I/O fencing completed
2011/11/22 09:36:30 VCS ERROR V-16-1-10079 System sym2 (Node '1') is in Down
State - Membership: 0x1
2011/11/22 09:36:30 VCS ERROR V-16-1-10322 System sym2 (Node '1') changed
state from RUNNING to FAULTED
2011/11/22 09:36:30 VCS INFO V-16-6-15015 (sym1) hatrigger:/opt/VRTSvcs/
bin/triggers/sysoffline is not a trigger scripts directory or can not be
B375
executed
...
End of Solution
Display a summary status of the cluster taking notice of the systems where the
service groups are online.
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
FAULTED
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
System
Probed
ClusterService sym1
appsg
sym1
Y
Y
AutoDisabled
State
N
N
ONLINE
ONLINE
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca07 membership 0
Port b gen
cfca06 membership 0
Port h gen
cfca0a membership 0
End of Solution
382 B376
eth0
1 sym2
State
OPEN
UP
CONNWAIT
Link
Status
Address
eth4
UP
00:0C:29:5A:B1:16
eth5
UP
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
DOWN
DOWN
DOWN
State
OPEN
Link
eth4
eth5
eth0
Status
Address
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
End of Solution
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
8 (running)
End of Solution
13 Display the I/O fencing registrations for the coordinator disks and the
B377
key[1]:
vxfenadm -s /dev/vx/rdmp/emc0_dd5
Reading SCSI Registration Keys...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 2
key[0]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
key[1]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
vxfenadm -r /dev/vx/rdmp/emc0_dd5
Reading SCSI Reservation Information...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 1
Key[0]:
Reservation Type: SCSI3_RESV_WRITEEXCLUSIVEREGISTRANTSONLY
Key Value [Numeric Format]: 65,86,67,83,0,0,0,0
Key Value [Character Format]: AVCS
End of Solution
384 B378
run the lltlink.pl script. Select option 3 to enable all private links on
sym1 only.
Note: This is the node that won the coordinator disk race and survived so
your system may be different.
Solution
cd /student/labs/vcs/vcs60/lltlink
./lltlink.pl
Enable or Disable LLT links Script
This script can be used to enable and disable LLT links on the local
system or on all nodes in the cluster.
Choose the desired option from the list below.
1. Disable all private links (eth4 eth5 eth0) on all nodes in the
cluster
2.
3.
4.
5.
6.
7.
8.
9.
3
Enable all private links (eth4 eth5 eth0) on sym1 only
Enabling link eth4 on sym1 . . . done.
Enabling link eth5 on sym1 . . . done.
Enabling link eth0 on sym1 . . . done.
End of Solution
sym2
15 Power off and power on sym2. Then log in as:
Account: root
Password: veritas
Note: This is the node that lost the coordinator disk race so your system may
be different.
Solution
Use the procedures outlined in Lab 2 to power off and power on sym2.
End of Solution
B379
16 Use the hastatus command to observe the cluster activity. Exit the status
when sym2 is running. At the same time, from sym1:terminal2, observe the
messages in the /var/log/messages file.
Note: This is the node that lost the race for the coordinator disks and has
stopped so your system may be different.
Solution
hastatus
sym2
sym2
sym2
sym2
sym2
webip
appvol
INITING
REMOTE BUILD
RUNNING
OFFLINE
OFFLINE
End of Solution
17 Display a summary status of the cluster taking notice of the systems where the
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
386 B380
B
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
appsg
sym2
Probed
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
End of Solution
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca08 membership 01
Port b gen
cfca07 membership 01
Port h gen
cfca0b membership 01
End of Solution
1 sym2
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
1 sym2
State
OPEN
State
OPEN
Link
Status
Address
eth4
eth5
eth0
UP
UP
UP
00:0C:29:5A:B1:16
00:0C:29:5A:B1:20
00:0C:29:5A:B1:EE
eth4
eth5
eth0
UP
UP
UP
00:0C:29:2D:77:9A
00:0C:29:2D:77:A4
00:0C:29:2D:77:72
OPEN
End of Solution
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing Protocol Version: 201
Fencing Mode: SCSI3
B381
8 (running)
8 (running)
End of Solution
21 Display the I/O fencing registrations for the coordinator disks and the
388 B382
Node ID: 1
vxfenadm -s /dev/vx/rdmp/emc0_dd5
Reading SCSI Registration Keys...
Device Name: /dev/vx/rdmp/emc0_dd5
Total Number Of Keys: 2
key[0]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
key[1]:
[Numeric Format]: 65,86,67,83,0,0,0,0
[Character Format]: AVCS
[Node Format]: Cluster ID: unknown Node ID: 0
vxfenadm -r /dev/vx/rdmp/emc0_dd5
Reading SCSI Reservation Information...
End of Solution
Note: For reference purposes, below are the sym1:/var/log/messages file and
sym1:/var/VRTSvcs/log/engine_A.log files segments during the period of
time when sym2 rejoined the cluster.
sym1:/var/log/messages
...
Nov 22 10:11:45 sym1 kernel: LLT INFO V-14-1-10024 link 1 (eth5) node 1
active
Nov 22 10:11:47 sym1 kernel: LLT INFO V-14-1-10024 link 0 (eth4) node 1
B383
active
Nov 22 10:11:49 sym1 kernel: LLT INFO V-14-1-10024 link 2 (eth0) node 1
active
Nov 22 10:11:52 sym1 kernel: AMF NOTICE V-292-1-67 Signal received while
waiting for event on reaper 'VCSProcessAgent'. Returning.
Nov 22 10:11:52 sym1 AgentFramework[15771]: VCS ERROR V-16-2-13734
Thread(4158811024) IMF thread interrupted
Nov 22 10:11:52 sym1 kernel: GAB INFO V-15-1-20036 Port a[GAB_Control
(refcount 1)] gen
c4cd03 membership 01
Nov 22 10:11:52 sym1 Had[15629]: VCS INFO V-16-1-10077 Received new cluster
membership
Nov 22 10:11:52 sym1 kernel: GAB INFO V-15-1-20036 Port h[GAB_USER_CLIENT
(refcount 0)] gen
c4cd0c membership 01
Nov 22 10:11:52 sym1 kernel: GAB INFO V-15-1-20036 Port b[VxFen (refcount
2)] gen
c4cd09 membership 01
Nov 22 10:11:52 sym1 Had[15629]: VCS NOTICE V-16-1-10086 System sym1 (Node
'0') is in Regular Membership - Membership: 0x3
..
sym1:engine_A.log
390 B384
...
2011/11/22 10:11:48 VCS WARNING V-16-1-11141 LLT heartbeat link status
changed. Previous status = eth4 DOWN eth5 DOWN eth0 DOWN; Current status =
eth4 UP eth5 UP eth0 DOWN.
2011/11/22 10:11:52 VCS INFO V-16-1-10077 Received new cluster membership
2011/11/22 10:11:52 VCS NOTICE V-16-1-10112 System (sym1) - Membership:
0x3, DDNA: 0x0
2011/11/22 10:11:52 VCS NOTICE V-16-1-10322 System (Node '1') changed state
from UNKNOWN to INITING
2011/11/22 10:11:52 VCS NOTICE V-16-1-10086 System sym1 (Node '1') is in
Regular Membership - Membership: 0x3
2011/11/22 10:11:52 VCS NOTICE V-16-1-10449 Group appsg autodisabled on
node sym2 until it is probed
2011/11/22 10:11:52 VCS NOTICE V-16-1-10449 Group VCShmg autodisabled on
node sym2 until it is probed
2011/11/22 10:11:52 VCS NOTICE V-16-1-10453 Node: 1 changed name from:
'sym2' to: 'sym2'
2011/11/22 10:11:52 VCS NOTICE V-16-1-10322 System sym2 (Node '1') changed
state from FAULTED to INITING
2011/11/22 10:11:52 VCS NOTICE V-16-1-10322 System sym2 (Node '1') changed
state from INITING to CURRENT_DISCOVER_WAIT
2011/11/22 10:11:52 VCS NOTICE V-16-1-10322 System sym2 (Node '1') changed
state from CURRENT_DISCOVER_WAIT to REMOTE_BUILD
2011/11/22 10:11:52 VCS INFO V-16-1-10455 Sending snapshot to node
membership: 0x2
2011/11/22 10:11:53 VCS NOTICE V-16-1-10322 System sym2 (Node '1') changed
state from REMOTE_BUILD to RUNNING
2011/11/22 10:11:53 VCS INFO V-16-6-15002 (sym2) hatrigger:hatrigger
executed /opt/VRTSvcs/bin/triggers/sysjoin sym1 RUNNING
successfully
2011/11/22 10:11:54 VCS INFO V-16-6-15023 (sym2) dump_tunables:
########## VCS Environment Variables ##########
VCS_CONF=/etc/VRTSvcs
VCS_DIAG=/var/VRTSvcs
VCS_HOME=/opt/VRTSvcs
VCS_LOG_AGENT_NAME=
VCS_LOG_CATEGORY=6
VCS_LOG_SCRIPT_NAME=hatrigger
VCS_LOG=/var/VRTSvcs
########## Other Environment Variables ##########
CONSOLE=/dev/pts/0
HOME=/
INIT_VERSION=sysvinit-2.86
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/opt/VRTSvcs/lib:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/sbin:/
usr/sbin:/bin:/usr/bin:/opt/VRTSvcs/bin
previous=N
PREVLEVEL=N
PWD=/var/VRTSvcs/diag/had
runlevel=5
RUNLEVEL=5
SELINUX_INIT=YES
SHLVL=5
TERM=linux
_=/usr/bin/env
2011/11/22 10:11:54 VCS INFO V-16-6-15002 (sym2) hatrigger:hatrigger
executed /opt/VRTSvcs/bin/internal_triggers/dump_tunables sym2 1
successfully
2011/11/22 10:11:54 VCS INFO V-16-1-10304 Resource appip (Owner:
Unspecified, Group: appsg) is offline on sym2 (First probe)
2011/11/22 10:11:54 VCS INFO V-16-1-10304 Resource webip (Owner:
Unspecified, Group: ClusterService) is offline on sym2 (First probe)
2011/11/22 10:11:54 VCS INFO V-16-1-10304 Resource notifier (Owner:
Unspecified, Group: ClusterService) is offline on sym2 (First probe)
2011/11/22 10:11:54 VCS INFO V-16-1-10304 Resource appvol (Owner:
Unspecified, Group: appsg) is offline on sym2 (First probe)
2011/11/22 10:11:54 VCS INFO V-16-1-10304 Resource appfoo (Owner:
Unspecified, Group: appsg) is offline on sym2 (First probe)
2011/11/22 10:11:55 VCS NOTICE V-16-1-10438 Group ClusterService has been
probed on system sym2
2011/11/22 10:11:55 VCS INFO V-16-1-10304 Resource appproc (Owner:
Unspecified, Group: appsg) is offline on sym2 (First probe)
2011/11/22 10:11:55 VCS INFO V-16-1-10304 Resource appmnt (Owner:
Unspecified, Group: appsg) is offline on sym2 (First probe)
2011/11/22 10:11:56 VCS INFO V-16-1-10304 Resource appdg (Owner:
Unspecified, Group: appsg) is offline on sym2 (First probe)
2011/11/22 10:11:56 VCS NOTICE V-16-1-10438 Group appsg has been probed on
system sym2
2011/11/22 10:11:58 VCS NOTICE V-16-1-10438 Group VCShmg has been probed on
system sym2
2011/11/22 10:11:58 VCS NOTICE V-16-1-10435 Group VCShmg will not start
automatically on System sym2 as the system is not a part of AutoStartList
attribute of the group.
2011/11/22 10:11:59 VCS WARNING V-16-1-11141 LLT heartbeat link status
changed. Previous status = eth4 UP eth5 UP eth0 DOWN; Current status = eth4
UP eth5 UP eth0 UP.
...
22 Display the states of the service groups. If any are online on sym2, switch
Copyright 2012 Symantec Corporation. All rights reserved.
them to sym1.
391
Solution
hagrp -state
#Group
ClusterService
ClusterService
appsg
appsg
Attribute
State
State
State
State
System
sym1
sym2
sym1
sym2
Value
|ONLINE|
|OFFLINE|
|ONLINE|
|OFFLINE|
End of Solution
B385
End of Solution
\
End of lab
392 B386
B387
394 B388
Verify that the following virtual machines shown are powered on, that you are
logged using the indicated account and that the indicated terminal windows are
opened.
mgt
Log in with credentials:
Account: student
Password: veritas
Two terminal windows should be active on this server.
cps
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym1
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
sym2
Log in with credentials:
Account: root
Password: veritas
Two terminal windows should be active on this server.
Note: The terminal windows are referred to as hostname:terminal#
throughout the labs. For example: sym1:terminal1, sym1:terminal2,
sym2:terminal1, and sym2:terminal2. It is not necessary to label the
terminal windows and you may decide which is terminal1 and which is
terminal2.
If you have machines running that are not used in this lab, shut down the
operating system and power the machines off.
Note: If you are completing the lab exercises in order, this will require you to
power on and log into cps.
B389
cps
1
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
RUNNING
cps
-- GROUP STATE
-- Group
B
System
ClusterService
cps
Probed
AutoDisabled
State
ONLINE
End of Solution
Display the ports that are open in GAB. Which ports are open?
Solution
396 B390
gabconfig -a
GAB gabconfig ERROR V-15-2-25022 unknown error
End of Solution
Display the configured status of the LLT links. How many links are
configured?
No links are configured because LLT is not configured for this one node cluster.
Veritas Cluster Server 5.1 for UNIX: Install and Configure
Copyright 2012 Symantec Corporation. All rights reserved.
Solution
End of Solution
cat /etc/gabtab
cat: /etc/gabtab: No such file or directory
cat /etc/llttab
cat: /etc/llttab: No such file or directory
cat /etc/llthosts
cat: /etc/llthosts: No such file or directory
End of Solution
How are GAB and LLT set to behave at system startup and shutdown?
Neither GAB or LLT are set to start on system boot or set to stop on system shutdown.
Solution
more /etc/sysconfig/gab
# This file is sourced from /etc/init.d/gab.
#
# Set the two environment variables below as follows:
#
#
1 = start or stop gab
#
0 = do not start or stop gab
#
GAB_START=0
GAB_STOP=0
B391
more /etc/sysconfig/llt
#
# LLT Configuration file
#
# This file is sourced from /etc/init.d/llt.
#
# LLT module load time tunables
#LLT_MAXNIDS=
#LLT_MAXPORTS=
#LLT_NQTHREAD=
#LLT_BASETIMER=
# Set the two environment variables below as follows:
#
#
1 = start or stop llt
#
0 = do not start or stop llt
#
LLT_START=0
LLT_STOP=0
End of Solution
hastop -local
hastatus -sum
VCS ERROR V-16-1-10600 Cannot connect to VCS engine
VCS WARNING V-16-1-11046 Local system not available
End of Solution
398 B392
Use the hastart command to start the cluster. Does the cluster startup? Look in
the engine log to determine or why not.
The cluster will not start with a simple hastart command as it requires GAB to be
configured.
Solution
hastart
hastatus -sum
VCS ERROR V-16-1-10600 Cannot connect to VCS engine
VCS WARNING V-16-1-11046 Local system not available
tail /var/VRTSvcs/log/engine_A.log
...
2011/11/17 08:21:39 VCS
2011/11/17 08:21:39 VCS
restart
2011/11/17 08:21:39 VCS
2011/11/17 08:21:39 VCS
version=6.0.00.0
2011/11/17 08:21:39 VCS
6.0-2011-10-13-16.30.00
2011/11/17 08:21:39 VCS
2011/11/17 08:21:39 VCS
2011/11/17 08:21:39 VCS
2011/11/17 08:21:39 VCS
2011/11/17 08:21:39 VCS
End of Solution
Attempt to start the cluster using the -onenode switch. Does the cluster
startup?
Solution
hastart -onenode
hastatus -sum
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
RUNNING
cps
-- GROUP STATE
-- Group
B
ClusterService
System
cps
ClusterService
NIC
Probed
AutoDisabled
Resource
csgnic
State
OFFLINE
System
cps
B393
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
RUNNING
cps
-- GROUP STATE
-- Group
B
ClusterService
System
cps
Probed
AutoDisabled
State
ONLINE
End of Solution
cd /opt/VRTScps/bin
pwd
opt/VRTScps/bin
400 B394
ls -l
total 13536
-r-xr----- 1
-r-xr----- 1
-r-xr----- 1
-rwxr-xr-x 1
-rwxr-xr-x 1
-r-xr--r-- 1
-rwxr-xr-x 1
-r-xr-xr-x 1
-r-xr-xr-x 1
-rwxr-xr-x 1
-rwxr-xr-x 1
drwxr-xr-x 2
-rwxr-xr-x 1
-rwxr-xr-x 1
-rwxr-xr-x 1
-rwx------ 1
-r-xr----- 1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
End of Solution
Solution
./configure_cps.pl
VERITAS COORDINATION POINT SERVER CONFIGURATION UTILITY
=======================================================
Select one of the following:
[1] Configure Coordination Point Server on single node VCS system
[2] Configure Coordination Point Server on SFHA cluster
[3] Unconfigure Coordination Point Server
Enter the option :
1
Proceeding with a single node VCS configuration for CP Server..
(a) Enter the name of the CP Server :
cpsclus
2
Enter a valid IP address for Virtual IP - 1 which the CP Server process
should
depend on :
10.10.2.91
Enter a valid IP address for Virtual IP - 2 which the CP Server process
should
depend on :
B395
10.10.3.91
(c) Enter a port number for virtual IP 10.10.2.91 in range [49152, 65535],
or
press enter for default port (14250) :
14250
Using default port: 14250
(c) Enter a port number for virtual IP 10.10.3.91 in range [49152, 65535],
or
press enter for default port (14250) :
14250
Using default port: 14250
(d) Veritas recommends secure communication between the CP server and
application clusters. Enabling security requires Symantec Product
Authentication Service to be installed and configured on the cluster.
Do you want to enable Security for the communications? (y/n) (Default:y)
:
n
(e) CP Server uses an internal database to store the client information.
Note: As the CP Server is being configured on a single node VCS,
the database can reside on local file system.
Enter absolute path of the database (Default:/etc/VRTScps/db):
/etc/VRTScps/db
Following is the CP Server configuration information:
------------------------------------------------(a)CP Server Name: cpsclus
(b)CP Server Virtual IP(s): 10.10.2.91, 10.10.3.91
(c)CP Server Port(s): 14250, 14250
402 B396
Press Enter.
Successfully generated the /etc/vxcps.conf configuration file.
Successfully created directory /etc/VRTScps/db.
Configuring CP Server Service Group (CPSSG) for this cluster
---------------------------------------------Configure NIC resource
NOTE: The supplied network interface should be a public NIC
Enter how many NIC resources you want to configure (1 to 2) :
2
Enter a valid network interface on cps for NIC resource - 1 :
m eth0
Enter a valid network interface on cps for NIC resource - 2 :
eth1
Enter the NIC resource you want to associate with the virtual IP 10.10.2.91
(1 to 2) :
1
Enter the NIC resource you want to associate with the virtual IP 10.10.3.91
(1 to 2) :
2
Symantec recommends configuring NetworkHosts attribute to ensure NIC
resource to be online always.
Do you want to add NetworkHosts attribute for the NIC device eth0 on system
cps ?[y/n] :
n
Do you want to add NetworkHosts attribute for the NIC device eth1 on system
cps ?[y/n] :
n
Enter the netmask for virtual IP 10.10.2.91 :
255.255.255.0
Enter the netmask for virtual IP 10.10.3.91 :
255.255.255.0
Successfully added the CPSSG service group to VCS configuration.
Trying to bring CPSSG service group ONLINE and will wait for 80 seconds.
The Veritas Coordination Point Server has been configured on your system.
Note: It may take several moments before the CPSSG service group is
brought ONLINE and the Veritas Coordination Point Server is
configured.
End of Solution
B397
sym1
1
cd /etc
cat vxcps.conf
## The vxcps.conf file determines the configuration for Veritas CP Server.
cps_name=cpsclus
vip=[10.10.2.91]
vip=[10.10.3.91]
port=14250
security=0
db=/etc/VRTScps/db
End of Solution
Perform a recursive long listing on the (default) path selected for the database
in the recent configuration dialog.
Solution
404B398
ls -lR /etc/VRTScps/db
/etc/VRTScps/db:
total 4
drwx------ 2 root root 4096 Nov 17 14:21 current
/etc/VRTScps/db/current:
total 16
-rw------- 1 root root 11264 Nov 17 11:09 cps_db
-rw------- 1 root root
38 Nov 17 08:50 cps_uuid
End of Solution
ls -alR /var/VRTScps
/var/VRTScps:
total 24
drwx------ 5
drwxr-xr-x 30
drwx------ 2
drwx------ 3
drwx------ 2
root
root
root
root
root
root
root
root
root
root
4096
4096
4096
4096
4096
Nov
Nov
Nov
Nov
Nov
17
17
17
17
17
08:50
08:50
08:50
08:50
08:50
.
..
diag
ldf
log
/var/VRTScps/diag:
total 8
drwx------ 2 root root 4096 Nov 17 08:50 .
drwx------ 5 root root 4096 Nov 17 08:50 ..
/var/VRTScps/ldf:
total 12
drwx------ 3 root root 4096 Nov 17 08:50 .
drwx------ 5 root root 4096 Nov 17 08:50 ..
drwx------ 2 root root 4096 Nov 17 23:51 ldf
/var/VRTScps/ldf/ldf:
total 6344
drwx------ 2 root root
4096 Nov
drwx------ 3 root root
4096 Nov
-rw------- 1 root root 2281003 Nov
-rw------- 1 root root 4194329 Nov
17
17
18
17
23:51
08:50
06:49
23:51
.
..
cpserver_A.ldf
cpserver_B.ldf
/var/VRTScps/log:
total 7696
drwx------ 2 root root
4096 Nov 17 08:50 .
drwx------ 5 root root
4096 Nov 17 08:50 ..
-rw------- 1 root root 7859049 Nov 18 06:49 cpserver_A.log
End of Solution
more /var/VRTScps/log/cpserver_A.log
#
# Log Name:
# System:
# SysInfo:
194.el5,x86_64
# Created:
#
cpserver
cps
Linux:cps,#1 SMP Tue Mar 16 21:52:39 EDT 2010,2.6.182011/11/17 08:50:22
B399
406 B400
more /var/VRTSvcs/log/engine_A.log
...
2011/11/17 08:48:48 VCS INFO V-16-1-50135
makerw from localhost
2011/11/17 08:48:48 VCS INFO V-16-1-50135
add CPSSG from localhost
2011/11/17 08:48:48 VCS INFO V-16-1-50135
modify ... -add CPSSG SystemList cps 0
2011/11/17 08:48:48 VCS INFO V-16-1-50135
modify CPSSG Parallel 0 from localhost
2011/11/17 08:48:48 VCS INFO V-16-1-50135
User root fired command: haconf User root fired command: hagrp User root fired command: hagrp from localhost
User root fired command: hagrp User root fired command: hagrp -
2011/11/17 08:48:49 VCS INFO V-16-1-50135 User root fired command: haconf dump -makero from localhost
End of Solution
Display a summary status of the cluster taking notice of the CPSSG service
group.
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
RUNNING
cps
-- GROUP STATE
-- Group
B
B
System
CPSSG
cps
ClusterService cps
Probed
Y
Y
AutoDisabled
N
N
State
ONLINE
ONLINE
End of Solution
Display the service group attributes for the CPSSG service group. Where will
the CPSSG fail over if it is declared faulted?
There is no other cluster system where the CPSSG service group can be restarted.
Solution
Attribute
AdministratorGroups
Administrators
Authority
AutoFailOver
AutoRestart
AutoStart
AutoStartIfPartial
AutoStartList
AutoStartPolicy
System
global
global
global
global
global
global
global
global
global
Value
0
1
1
1
1
cps
Order
B401
408 B402
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
CPSSG
ClusterFailOverPolicy
ClusterList
DisableFaultMessages
Evacuate
ExtMonApp
ExtMonArgs
FailOverPolicy
FaultPropagation
Frozen
GroupOwner
GroupRecipients
Guests
IntentOnline
Load
ManageFaults
ManualOps
NumRetries
OnlineClearParent
OnlineRetryInterval
OnlineRetryLimit
OperatorGroups
Operators
Parallel
PreSwitch
PreSwitching
PreonlineTimeout
Prerequisites
PrintTree
Priority
ProPCV
Restart
SourceFile
SysDownPolicy
SystemList
SystemZones
TFrozen
Tag
TriggerEvent
TriggerPath
TriggerResFault
TriggerResRestart
TriggerResStateChange
TypeDependencies
UserIntGlobal
UserStrGlobal
AutoDisabled
ContainerInfo
Enabled
PCVAllowOnline
PreOnline
PreOnlining
Probed
ProbesPending
State
TriggersEnabled
UserIntLocal
UserStrLocal
VCSi3Info
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
cps
cps
cps
cps
cps
cps
cps
cps
cps
cps
cps
cps
cps
Manual
0
1
Priority
1
0
1
0
ALL
1
0
0
0
0
0
0
0
300
1
0
0
0
./main.cf
cps
0
1
1
0
0
0
0
1
1
0
0
1
0
|ONLINE|
0
End of Solution
List the resources and dependencies that make up the CPSSG service group.
Solution
cpsvip1
cpsvip2
vxcpserv
cpsnic1
cpsnic2
quorum
End of Solution
Display the resource attributes of the quorum resource. Which resource type is
it?
Solution
System
global
global
global
global
global
global
global
global
global
cps
cps
cps
cps
cps
cps
cps
cps
cps
global
global
global
global
Value
CPSSG
Quorum
1
1
1
cps
0
0
QuorumResources2cpsvip1cpsvip2
100
not waiting
Traditional
1
1
ONLINE
0
1
cpsvip1cpsvip2
StateValidMsgTS
B403
quorum
quorum
quorum
quorum
quorum
quorum
quorum
ResourceRecipients
TriggerPath
TriggerResRestart
TriggerResStateChange
ContainerInfo
MonitorTimeStats
TriggersEnabled
global
global
global
global
cps
cps
cps
0
0
TypeNameEnabled
Avg0TS
End of Solution
Display the resource attributes of the cpsvip1 and cpsvip2 resources. Verify
that the virtual IPs are configured at the operating system level.
Solution
410 B404
Attribute
Group
Type
AutoStart
Critical
Enabled
LastOnline
System
global
global
global
global
global
global
Value
CPSSG
IP
1
0
1
cps
cpsvip2
MonitorOnly
global
0
cpsvip2
ResourceOwner
global
cpsvip2
TriggerEvent
global
0
cpsvip2
ArgListValues
cps
Device1eth1Address110.10.3.91
NetMask1255.255.255.0PrefixLen11000Options1""IPOptions1""IPRouteOptions1""
cpsvip2
ConfidenceLevel
cps
100
cpsvip2
ConfidenceMsg
cps
cpsvip2
Flags
cps
cpsvip2
IState
cps
not waiting
cpsvip2
MonitorMethod
cps
Traditional
cpsvip2
Probed
cps
1
cpsvip2
Start
cps
1
cpsvip2
State
cps
ONLINE
cpsvip2
Address
global
10.10.3.91
cpsvip2
ComputeStats
global
0
cpsvip2
IPOptions
global
cpsvip2
IPRouteOptions
global
cpsvip2
NetMask
global
255.255.255.0
cpsvip2
Options
global
cpsvip2
PrefixLen
global
1000
cpsvip2
ResourceInfo
global
StateValidMsgTS
cpsvip2
ResourceRecipients
global
cpsvip2
TriggerPath
global
cpsvip2
TriggerResRestart
global
0
cpsvip2
TriggerResStateChange global
0
cpsvip2
ContainerInfo
cps
TypeNameEnabled
cpsvip2
Device
cps
eth1
cpsvip2
MonitorTimeStats
cps
Avg0TS
cpsvip2
TriggersEnabled
cps
411
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
1000
link/ether 00:0c:29:16:a5:78 brd ff:ff:ff:ff:ff:ff
inet 10.10.2.7/24 brd 10.10.2.255 scope global eth0
inet 10.10.2.90/24 brd 10.10.2.255 scope global secondary eth0:0
inet 10.10.2.91/24 brd 10.10.2.255 scope global secondary eth0:1
inet6 fe80::20c:29ff:fe16:a578/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
1000
link/ether 00:0c:29:16:a5:82 brd ff:ff:ff:ff:ff:ff
inet 10.10.3.7/24 brd 10.10.3.255 scope global eth1
inet 10.10.3.91/24 brd 10.10.3.255 scope global secondary eth1:0
inet6 fe80::20c:29ff:fe16:a582/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
1000
link/ether 00:0c:29:16:a5:8c brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe16:a58c/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
1000
link/ether 00:0c:29:16:a5:96 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe16:a596/64 scope link
valid_lft forever preferred_lft forever
6: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
qlen
qlen
qlen
qlen
End of Solution
B405
10 Display the resource attributes for the vxcpserv resource. Which resource type
412 B406
End of Solution
11 From cps:terminal2, use the tail -f command to monitor the VCS engine
log.
Solution
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
resource attributes.
Solution
End of Solution
quorum resource faults, what will happen to the vxcpserv resource? What will
the status of the CPSG service group then be?
The vxcpserv resource will be taken offline. The CPSSG service group will be
declared faulted.
Solution
cpsvip1
cpsvip2
vxcpserv
cpsnic1
cpsnic2
quorum
End of Solution
14 Take the cpsvip1 resource offline, probe the quorum resource, and determine
if anything related to the quorum resource is logged in the VCS engine log.
Solution
B407
End of Solution
15 Take the cpsvip2 resource offline, probe the quorum resource, and determine
if anything related to the quorum resource is logged in the VCS engine log.
Solution
End of Solution
16 Verify the status of the cluster. What is the effect of the cluster status on CP
server clients? Had the CP server been a multi-node cluster and the CPSG
service group appropriately configured for failover, what would have happened
to the CPSSG service group and the CP server service?
414 B408
As a single node cluster, the CP server is not available to its clients. Had this been a
multi-node cluster with the CPSSG service group appropriately configured for
failover, then the CPSSG service group would likely come online on another cluster
node and the CP server would continue to be available to its clients.
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
RUNNING
cps
-- GROUP STATE
-- Group
B CPSSG
OFFLINE|FAULTED
B ClusterService
System
Probed
cps
cps
AutoDisabled
State
ONLINE
-- RESOURCES FAILED
-- Group
Type
Resource
System
quorum
cps
CPSSG
Quorum
End of Solution
17 Clear the fault and bring the CPSG service group back online on the cluster
node.
Solution
Attribute
State
Attribute
State
System
cps
Value
|OFFLINE|FAULTED|
System
cps
Value
|OFFLINE|
Attribute
State
System
cps
Value
|ONLINE|
End of Solution
B409
End of Solution
416 B410
sym1
1
From sym1:terminal1, display the hosts file and determine the cpsvipa and
cpsvipb virtual hostname and virtual IP information related to cpserver.
Solution
cat /etc/hosts
mgt.example.com
3par.example.com
emc.example.com
vom.example.com
cps.example.com
mgt
3par
emc
vom
cps
10.10.2.11
10.10.2.12
10.10.2.13
10.10.2.14
sym1.example.com
sym2.example.com
sym3.example.com
sym4.example.com
sym1
sym2
sym3
sym4
10.10.2.51
10.10.2.52
10.10.2.61
10.10.2.71
10.10.2.90
10.10.2.91
10.10.3.91
west.example.com
east.example.com
loopyvip.example.com
nfsvip.example.com
cpsclus.example.com
cpsvipa.example.com
cpsvipb.example.com
west
east
loopyvip
nfsvip
cpsclus
cpsvipa
cpsvipb
10.10.2.101
symdb.example.com
symdb
End of Solution
cpsadm -help
CPS ERROR V-97-1400-620 Please specify an action via -a option
B411
CPS INFO V-97-1400-584 Usage: cpsadm -s <cp server> -a <action> [-p <port
num>] [-c <cluster name>] [-u <uuid>][-e <username@domain>] [-f <user
role>] [-g <domain type>] [-h <hostname>] [-n <nodeid>][-o <victim's
hostname 1[,hostname 2,...]>][-v <victim's nodeid 1[,nodeid 2,...]>] [-i
<ip address> [-r <port number>]]
where:
-a is used to specify action
(one of add_clus, rm_clus, add_node, rm_node, add_user, rm_user
add_clus_to_user, rm_clus_from_user, reg_node, unreg_node,
preempt_node, list_membership, list_nodes, list_users, halt_cps,
db_snapshot, ping_cps, client_preupgrade, server_preupgrade,
list_protocols, list_version, list_ports,
add_port, rm_port)
-c is used to specify cluster name
-e is used to specify user (username@domain)
-f is used to specify user role (cps_admin or cps_operator)
-g is used to specify a domain type (nis, nisplus, ldap, or unixpwd)
-h is used to specify fully qualified hostname
-n is used to specify a host's nodeid
-o is used to specify one or more victim nodes' hostname
-p
-s
-u
-v
-i
-r
is
is
is
is
is
is
used
used
used
used
used
used
to
to
to
to
to
to
specify
specify
specify
specify
specify
specify
End of Solution
Use the cpsadm command to ping the CP server using various combinations
of both virtual hostnames, fully qualified virtual hostnames, and virtual IPs. Do
any of the pings fail?
All virtual hostname and virtual IP combinations of cpsvipa work in the cpsadm
command.
Solution
418 B412
End of Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca0a membership 01
Port b gen
cfca32 membership 01
Port h gen
cfca35 membership 01
End of Solution
End of Solution
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
B413
8 (running)
8 (running)
End of Solution
Use the vxfenconfig command to list the coordination points that are in
use.
Solution
vxfenconfig -l
I/O Fencing Configuration Information:
======================================
Single Disk Flag
: 0
Count
: 3
Disk List
Disk Name
Major
/dev/vx/rdmp/emc0_d10s3
201
/dev/vx/rdmp/emc0_d11s3
201
/dev/vx/rdmp/emc0_d12s3
201
Minor
163
35
147
Serial Number
5123456000000008
512345600000000A
512345600000000B
Policy
dmp
dmp
dmp
End of Solution
Display the contents of the three I/O fencing configuration files located in the
/etc directory.
Solution
cat /etc/vxfendg
westfendg
420 B414
cat /etc/vxfentab
#
# /etc/vxfentab:
# DO NOT MODIFY this file as it is generated by the
# VXFEN rc script from the file /etc/vxfendg.
#
/dev/vx/rdmp/emc0_d10s3
/dev/vx/rdmp/emc0_d11s3
/dev/vx/rdmp/emc0_d12s3
cat /etc/vxfenmode
#
# vxfen_mode determines in what mode VCS I/O Fencing should work.
#
# available options:
# scsi3
- use scsi3 persistent reservation disks
# customized - use script based customized fencing
# disabled
- run the driver but don't do any actual fencing
#
vxfen_mode=scsi3
#
# scsi3_disk_policy determines the way in which I/O Fencing communicates
with
# the coordination disks.
#
# available options:
# dmp - use dynamic multipathing
# raw - connect to disks using the native interface
#
scsi3_disk_policy=dmp
End of Solution
Determine the I/O fencing disk group members and whether the disk group is
imported or deported.
Solution
auto:cdsdisk
auto:cdsdisk
auto:cdsdisk
(westfendg)
(westfendg)
(westfendg)
online
online
online
End of Solution
B415
End of Solution
422 B416
Solution
cd /opt/VRTS/install
./installsfha -fencing
...
Logs are being written to /var/tmp/installsfha-201111171107Hij while
installsfha
is in progress.
Checking communication on sym1 ....................................
Done
Checking release compatibility on sym1 ............................ Done
Checking VCS installation on sym1 .................. Version 6.0.000.000
Cluster information verification:
Cluster Name: west
Cluster ID Number: 5
Systems: sym1 sym2
Would you like to configure I/O fencing on the cluster? [y,n,q]
y
Fencing configuration
1 ) Configure Coordination Point client based fencing
2 ) Configure disk based fencing
3 ) Configure fencing in disabled mode
4 ) Online fencing migration
Select the fencing mechanism to be configured in this Application Cluster:
[1-4,q]
B417
4
...
Online fencing migration allows you to online replace coordination points.
Installer will ask questions to get the information of the coordination
points
to be removed or added. Then it will call vxfenswap utility to commit the
coordination points change.
Warning: It may cause the whole cluster to panic if a node leaves
membership
before the coordination points change is complete. (B [0m
Select the coordination points you would like to remove from currently
configured coordination points:
1 ) emc0_d10
2 ) emc0_d11
3 ) emc0_d12
4 ) All
5 ) None
b ) Back to previous menu
Enter the options, separated by spaces: [1-5,b,q,?] (5)
1
You will be asked to give details about Coordination Point Servers/Disks to
be
used as new coordination points. Note that the installer assumes these
values to
be the identical as viewed from all the client cluster nodes.
Enter the total number of new coordination points including both
Coordination Point servers and disks: [b] (1)
1
Enter the total number of disks among these: [b] (0)
Enter the total number of Virtual IP addresses or fully qualified host name
for
the Coordination Point Server #1: [b,q,?] (1)
424B418
2
Enter the Virtual IP address or fully qualified host name #1 for the
Coordination Point Server #1: [b]
cpsvipa.example.com
Enter the port in the range [49152, 65535] which the Coordination Point
Server
cpsvipa.example.com would be listening on or simply accept the default port
suggested: [b] (14250)
14250
Veritas Cluster Server 5.1 for UNIX: Install and Configure
Copyright 2012 Symantec Corporation. All rights reserved.
Enter the Virtual IP address or fully qualified host name #2 for the
Coordination Point Server #1: [b]
cpsvipb.example.com
Enter the port in the range [49152, 65535] which the Coordination Point
Server
cpsvipb.example.com would be listening on or simply accept the default port
suggested: [b] (14250)
m 14250
Coordination points verification
Current coordination points:
1. emc0_d10
2. emc0_d11
3. emc0_d12
Coordination points to be removed:
1. emc0_d10
Coordination points to be added:
1. [cpsvipa.example.com]:14250,[cpsvipb.example.com]:14250
New set of Coordination points:
1. [cpsvipa.example.com]:14250,[cpsvipb.example.com]:14250
2. emc0_d11
3. emc0_d12
Is this information correct? [y,n,q] (y)
y
Removing disks from disk group westfendg
Importing disk group westfendg on sym1 ............................ Done
Removing disk emc0_d10 from disk group westfendg ................. Done
Deporting the disk group westfendg on sym1 ........................ Done
Press Enter.
Updating client cluster information on Coordination Point Server
cpsvipa.example.com
Adding the client cluster to the Coordination Point Server
cpsvipa.example.com Done
Registering client node sym1 with Coordination Point Server
cpsvipa.example.com Done
Adding CPClient user for communicating to Coordination Point Server
cpsvipa.example.com Done
Adding cluster west to the CPClient user on Coordination Point Server
cpsvipa.example.com Done
Registering client node sym2 with Coordination Point Server
cpsvipa.example.com Done
B419
y
Enter a non-existing name for the service group for Coordination Point
Agent: [b] (vxfen)
westfensg
Adding Coordination Point Agent via sym1 .......................... Done
The updates to VRTSaslapm package are released via the Symantec SORT web
page:
https://sort.symantec.com/asl. To make sure you have the latest version of
VRTSaslapm (for up to date ASLs and APMs), download and install the latest
package from the SORT web page.
installsfha log files, summary file, and response file are saved at:
/opt/VRTS/install/logs/installsfha-201111171107Hij
Would you like to view the summary file? [y,n,q] (n)
426 B420
y
installsfha Summary
Old set of coordination points:
1. emc0_d10
2. emc0_d11
3. emc0_d12
New set of Coordination points:
1. [cpsvipa.example.com]:14250,[cpsvipb.example.com]:14250
2. emc0_d11
3. emc0_d12
Successfully completed the vxfenswap operation
ls -l /opt/VRTS/install/logs/installsfhayyyymmddhhmmxxx.
total 128
-rwx------ 1 root root 90674
-rwx------ 1 root root 11049
201111171107Hij.response
-rwx------ 1 root root
286
201111171107Hij.summary
-rwx------ 1 root root 15464
201111171107Hij.tunables
installsfha-
Nov 17 11:09
installsfha-
End of Solution
ls -alrt /var/VRTSvcs/log/vxfen/vxfenswap.log*
-rw-r----- 1 root root 3489 Nov 16 07:17 /var/VRTSvcs/log/vxfen/
vxfenswap.log.23371
-rw-r----- 1 root root 5271 Nov 17 11:09 /var/VRTSvcs/log/vxfen/
vxfenswap.log.24233
End of Solution
13 Use the cpsadm command to list the membership, nodes and users now
registered with the CP server related to the west cluster. Mix up the use of both
virtual hostnames, fully qualified virtual host names, and virtual IPs related to
the CP server.
Note: The list_membership option requires an additional c or u switch.
Use the c switch and provide the proper parameter.
Solution
where:
-a
-c
-s
-u
is
is
is
is
used
used
used
used
to
to
to
to
specify
specify
specify
specify
action
cluster name
the CP server virtual hostname or virtual ip
UUID
UUID
Hostname(Node ID)
===================================
================ ======
{445657e8-1dd2-11b2-9150-8c9a0e6defb3} sym1(0)
1
{445657e8-1dd2-11b2-9150-8c9a0e6defb3} sym2(1)
1
B421
Username/Domain Type
====================
=======
cpsclient@sym1/vx
Operator
cpsclient@sym2/vx
Operator
Cluster Name/UUID
==================
Role
west/{445657e8-1dd2-11b2-9150-8c9a0e6defb3}
west/{445657e8-1dd2-11b2-9150-8c9a0e6defb3}
End of Solution
14 Display the GAB port status and confirm that port b is active.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
cfca0a membership 01
Port b gen
cfca32 membership 01
Port h gen
cfca35 membership 01
428 B422
End of Solution
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing Protocol Version: 201
8 (running)
8 (running)
Note: The fencing mode is now customized the fencing mechanism is cps.
End of Solution
17 Use the vxfenconfig command to list the Coordination points that are in
use.
Solution
vxfenconfig -l
I/O Fencing Configuration Information:
======================================
security=0
single_cp=0
[cpsvipa.example.com]:14250 {3d565ca8-1dd2-11b2-a103-56875d7a7411}
[cpsvipb.example.com]:14250 {3d565ca8-1dd2-11b2-a103-56875d7a7411}
/dev/vx/rdmp/emc0_d11s3
201
131
522345600000000A
/dev/vx/rdmp/emc0_d12s3
201
147
522345600000000B
dmp
dmp
Note: Two disks and two CP server VIPs are now shown.
End of Solution
18 Display the contents of the three I/O fencing configuration files located in the
/etc/directory.
Solution
cat /etc/vxfendg
westfendg
cat /etc/vxfentab
B423
#
# /etc/vxfentab:
# DO NOT MODIFY this file as it is generated by the
# VXFEN rc script from the file /etc/vxfenmode.
#
security=0
single_cp=0
[cpsvipa.example.com]:14250
[cpsvipb.example.com]:14250
/dev/vx/rdmp/emc0_d11s3
201
131
522345600000000A
/dev/vx/rdmp/emc0_d12s3
201
147
522345600000000B
dmp
dmp
Note: Two disks and two CP server VIPs are now shown.
c
cat /etc/vxfenmode
vxfen_mode=customized
vxfen_mechanism=cps
security=0
cps1=[cpsvipa.example.com],[cpsvipb.example.com]
port=14250
vxfendg=westfendg
scsi3_disk_policy=dmp
Note: This configuration file now sets the fencing mode to customize, the
fencing mechanism to cps, and now lists the CP server VIPs.
End of Solution
19 Determine the I/O fencing disk group members and whether the disk group is
imported or deported.
\
Solution
430 B424
emc0_d11
emc0_d12
auto:cdsdisk
auto:cdsdisk
(westfendg)
(westfendg)
online clone_disk
online clone_disk
Note: The /etc/vxfentab file is of a different format now and since more
than just disks are listed, output errors will be introduced if this file is
used as an argument to the vxfenadm command to list fencing keys.
These errors are not harmful and can be ignored.
Optionally, copy the /etc/vxfentab file to /tmp/vxfentab and using
an editor remove all lines other than the disk lines. This file can then be used as
as the argument to the vxfenadm command to list fencing keys.
CAUTION Do not delete the non disk entries from the /etc/vxfentab
file. Never directly edit the /etc/vxfentab file.
Solution
B425
Note: I/O fencing reservation keys are shown for the remaining two
coordinator disks.
End of Solution
21 Display a summary status of the cluster and note the presence of the westfensg
service group. Display the service group attributes for the westfensg service
group. List the resources that are part of the westfensg service group and
display those resource attributes. Is the westfensg service group a failover or
parallel service group? What is the purpose of the resource of type Phantom?
The westfensg service group is a parallel service group. The coordpoint resource is of
type CoordPoint which is a persistent resource. Therefore, a resource of type
Phantom is needed so that VCS can properly report out service group state.
432 B426
Solution
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
B
B
B
System
ClusterService sym1
ClusterService sym2
appsg
sym1
Probed
Y
Y
Y
AutoDisabled
State
N
N
N
ONLINE
OFFLINE
ONLINE
B
B
B
appsg
westfensg
westfensg
sym2
sym1
sym2
Y
Y
Y
N
N
N
System
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
global
sym1
sym2
sym1
sym2
sym1
sym2
sym1
Value
OFFLINE
ONLINE
ONLINE
Attribute
AdministratorGroups
Administrators
Authority
AutoFailOver
AutoRestart
AutoStart
AutoStartIfPartial
AutoStartList
AutoStartPolicy
ClusterFailOverPolicy
ClusterList
DisableFaultMessages
Evacuate
ExtMonApp
ExtMonArgs
FailOverPolicy
FaultPropagation
Frozen
GroupOwner
GroupRecipients
Guests
Load
ManageFaults
ManualOps
OnlineClearParent
OnlineRetryInterval
OnlineRetryLimit
OperatorGroups
Operators
Parallel
PreSwitch
PreSwitching
PreonlineTimeout
Prerequisites
PrintTree
Priority
ProPCV
SourceFile
SysDownPolicy
SystemList
SystemZones
TFrozen
Tag
TriggerEvent
TriggerPath
TriggerResFault
TriggerResRestart
TriggerResStateChange
TypeDependencies
UserIntGlobal
UserStrGlobal
AutoDisabled
AutoDisabled
ContainerInfo
ContainerInfo
Enabled
Enabled
IntentOnline
0
0
1
1
1
Order
Manual
0
1
Priority
1
0
0
ALL
1
0
0
0
1
0
0
300
1
0
0
./main.cf
sym1
sym2
0
1
1
0
0
0
0
0
1
1
1
B427
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
westfensg
IntentOnline
NumRetries
NumRetries
PCVAllowOnline
PCVAllowOnline
PreOnline
PreOnline
PreOnlining
PreOnlining
Probed
Probed
ProbesPending
ProbesPending
Restart
Restart
State
State
TriggersEnabled
TriggersEnabled
UserIntLocal
UserIntLocal
UserStrLocal
UserStrLocal
VCSi3Info
VCSi3Info
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
1
0
0
1
1
0
0
0
0
1
1
0
0
0
0
|ONLINE|
|ONLINE|
0
0
434B428
Attribute
Group
Type
AutoStart
Critical
Enabled
LastOnline
MonitorOnly
ResourceOwner
TriggerEvent
ArgListValues
ArgListValues
ConfidenceLevel
ConfidenceLevel
ConfidenceMsg
ConfidenceMsg
Flags
Flags
IState
IState
MonitorMethod
MonitorMethod
Probed
Probed
Start
Start
State
State
ComputeStats
FaultTolerance
ResourceRecipients
System
global
global
global
global
global
global
global
global
global
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
sym1
sym2
global
global
global
Value
westfensg
CoordPoint
1
1
1
sym1
0
0
FaultTolerance
FaultTolerance
100
100
1
1
0
0
not waiting
not waiting
Traditional
Traditional
1
1
0
0
ONLINE
ONLINE
0
0
coordpoint
coordpoint
coordpoint
coordpoint
Enabled
coordpoint
Enabled
coordpoint
coordpoint
coordpoint
TS
Fri
coordpoint
TS
Fri
coordpoint
coordpoint
TriggerPath
global
TriggerResRestart
global
TriggerResStateChange global
ContainerInfo
sym1
0
0
Type
Name
ContainerInfo
Type
Name
sym2
MonitorTimeStats
sym1
MonitorTimeStats
sym2
ResourceInfo
sym1
Nov 18 09:53:30 2011
ResourceInfo
sym2
Nov 18 09:53:38 2011
TriggersEnabled
sym1
TriggersEnabled
sym2
Avg
Avg
State
0
0
Valid
TS
TS
Msg
State
Valid
Msg
Attribute
System
Group
global
Type
global
AutoStart
global
Critical
global
Enabled
global
LastOnline
global
MonitorOnly
global
ResourceOwner
global
TriggerEvent
global
ArgListValues
sym1
ArgListValues
sym2
ConfidenceLevel
sym1
ConfidenceLevel
sym2
ConfidenceMsg
sym1
ConfidenceMsg
sym2
Flags
sym1
Flags
sym2
IState
sym1
IState
sym2
MonitorMethod
sym1
MonitorMethod
sym2
Probed
sym1
Probed
sym2
Start
sym1
Start
sym2
State
sym1
State
sym2
ComputeStats
global
ResourceRecipients
global
TriggerPath
global
TriggerResRestart
global
TriggerResStateChange global
ContainerInfo
sym1
0
0
Type
Name
ContainerInfo
sym2
Type
Name
MonitorTimeStats
MonitorTimeStats
ResourceInfo
sym1
sym2
sym1
Avg
Avg
State
0
0
Valid
Msg
ResourceInfo
sym2
State
Valid
Msg
TriggersEnabled
TriggersEnabled
Value
westfensg
Phantom
1
1
1
sym2
0
0
""
""
100
100
not waiting
not waiting
Traditional
Traditional
1
1
1
1
ONLINE
ONLINE
0
TS
TS
sym1
sym2
End of Solution
B429
22 Examine the VCS engine log and navigate to the output generated by the
more /var/VRTSvcs/log/engine_A.log
436 B430
...
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym2)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp [cpsvipa.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym2)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: [cpsvipa.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym2)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp [cpsvipb.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym2)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: [cpsvipb.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym2)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp /dev/vx/rdmp/emc0_d11s3
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym2)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: /dev/vx/rdmp/emc0_d11s3
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym2)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp /dev/vx/rdmp/emc0_d12s3
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym2)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: /dev/vx/rdmp/emc0_d12s3
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym1)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp [cpsvipa.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: [cpsvipa.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym1)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp [cpsvipb.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: [cpsvipb.example.com]:14250
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym1)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp /dev/vx/rdmp/emc0_d11s3
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: /dev/vx/rdmp/emc0_d11s3
2011/11/17 11:09:51 VCS INFO V-16-10061-628 (sym1)
CoordPoint:coordpoint:monitor:Successfully monitored registration with
cp /dev/vx/rdmp/emc0_d12s3
2011/11/17 11:09:51 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until
next state change in the cp: /dev/vx/rdmp/emc0_d12s3
2011/11/17 11:14:53 VCS INFO V-16-2-13716 (sym2) Resource(coordpoint):
Output of the completed operation (info)
==============================================
Fencing Mode: Customized
Coordination Point 1: [cpsvipa.example.com]:14250
Coordination Point 2: [cpsvipb.example.com]:14250
Coordination Point 3: /dev/vx/rdmp/emc0_d11s3
the
the
the
the
the
the
the
the
the
the
the
the
the
the
the
the
End of Solution
the contents, then a file command on the cp_uid_db file. Finally, display its
contents.
Solution
cd /etc/vxfen.d/data
pwd
/etc/vxfen.d/data
ls -l
total 4
-rw-r----- 1 root root 160 Nov 17 11:09 cp_uid_db
file cp_uid_db
cp_uid_db: ASCII text
cat cp_uid_db
[cpsvipa.example.com]:14250 server
56875d7a7411}
[cpsvipb.example.com]:14250 server
56875d7a7411}
{3d565ca8-1dd2-11b2-a103{3d565ca8-1dd2-11b2-a103-
End of Solution
B431
sym1
1
tail -f /var/VRTSvcs/log/engine_A.log
End of Solution
End of Solution
438 B432
End of Solution
sh -x /student/labs/vcs/vcs60/cps/block.cpsvipa
+ ssh cps '/opt/VRTSvcs/bin/hares -offline cpsvip1 -sys cps'
+ ssh cps '/opt/VRTSvcs/bin/hares -wait cpsvip1 State OFFLINE -sys cps'
End of Solution
Probe the coordpoint resource on both systems and check the state of the
coordpoint resource.
Solution
Attribute
State
State
System
sym1
sym2
Value
FAULTED
FAULTED
End of Solution
From sym1:terminal2, observe the VCS engine log and determine what
happens to the coordpoint resource.
Solution
...
2011/11/18 13:33:17 VCS ERROR V-16-10061-624 (sym1)
CoordPoint:coordpoint:monitor:Unable to reach cp (or) local node not
registered on cp [cpsvipa.example.com]:14250
2011/11/18 13:33:17 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until the
next state change in the cp: [cpsvipa.example.com]:14250
2011/11/18 13:33:18 VCS ERROR V-16-1-54031 Resource coordpoint (Owner:
Unspecified, Group: westfensg) is FAULTED on sys sym1
B433
End of Solution
440B434
You cannot clear the coordpoint resource. You can probe it manually and the fault
will, in this case, auto clear. If a monitor had run before you attempted the clear then
the resource is already online.
Solution
sh -x /student/labs/vcs/vcs60/cps/unblock.all
Attribute
State
State
System
sym1
sym2
Value
ONLINE
ONLINE
End of Solution
haconf -makerw
End of Solution
B435
sh -x /student/labs/vcs/vcs60/cps/block.cpsvipa
+ ssh cps '/opt/VRTSvcs/bin/hares -offline cpsvip1 -sys cps'
+ ssh cps '/opt/VRTSvcs/bin/hares -wait cpsvip1 State OFFLINE -sys cps'
End of Solution
10 Probe the coordpoint resource on both systems and check the state of the
coordpoint resource.
Solution
Attribute
State
State
System
sym1
sym2
Value
ONLINE
ONLINE
End of Solution
442B436
11 From sym1:terminal2, observe the VCS engine log and determine what
happens to the coordpoint resource. Is there a difference from the last time the
coordpoint resource was probed?
The difference from the last time the coordpoint resource was probed is that the
resource has not faulted.
Solution
...
2011/11/18 13:57:11 VCS ERROR V-16-10061-624 (sym2)
CoordPoint:coordpoint:monitor:Unable to reach cp (or) local node not
registered on cp [cpsvipa.example.com]:14250
2011/11/18 13:57:11 VCS INFO V-16-10061-629 (sym2)
CoordPoint:coordpoint:monitor:The agent will not log the message until the
next state change in the cp: [cpsvipa.example.com]:14250
2011/11/18 13:57:14 VCS INFO V-16-1-50135 User root fired command:
MSG_RES_PROBE coordpoint sym2 from localhost
2011/11/18 13:57:14 VCS ERROR V-16-10061-624 (sym1)
CoordPoint:coordpoint:monitor:Unable to reach cp (or) local node not
registered on cp [cpsvipa.example.com]:14250
2011/11/18 13:57:14 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until the
next state change in the cp: [cpsvipa.example.com]:14250
2011/11/18 13:57:17 VCS INFO V-16-1-55031 Resource coordpoint in online
state received recurring online message on system sym1
2011/11/18 13:57:18 VCS INFO V-16-1-55031 Resource coordpoint in online
state received recurring online message on system sym2
...
End of Solution
sh -x /student/labs/vcs/vcs60/cps/block.cpsvipb
+ ssh cps '/opt/VRTSvcs/bin/hares -offline cpsvip2 -sys cps'
+ ssh cps '/opt/VRTSvcs/bin/hares -wait cpsvip2 State OFFLINE -sys cps'
End of Solution
13 Probe the coordpoint resource on both systems and check the state of the
coordpoint resource.
Solution
B437
Attribute
State
State
System
sym1
sym2
Value
FAULTED
FAULTED
End of Solution
14 From sym1:terminal2, observe the VCS engine log and determine what
The coordpoint resource has faulted and the westfensg service group has faulted on
both systems.
Solution
444B438
...
2011/11/18 14:01:13 VCS INFO V-16-1-10305 Resource RES_phantom_westfensg
(Owner: Unspecified, Group: westfensg) is offline on sym2 (VCS initiated)
2011/11/18 14:01:13 VCS NOTICE V-16-1-10235 Restart is set for group
westfensg. Group will be brought online if fault on persistent resource
clears. If group is brought online anywhere else from AutoStartList or
manually, then Restart will be reset
2011/11/18 14:01:13 VCS ERROR V-16-1-10205 Group westfensg is faulted on
system sym2
2011/11/18 14:01:13 VCS NOTICE V-16-1-10446 Group westfensg is offline on
system sym2
2011/11/18 14:01:14 VCS ERROR V-16-10061-624 (sym1)
CoordPoint:coordpoint:monitor:Unable to reach cp (or) local node not
registered on cp [cpsvipb.example.com]:14250
2011/11/18 14:01:14 VCS INFO V-16-10061-629 (sym1)
CoordPoint:coordpoint:monitor:The agent will not log the message until the
next state change in the cp: [cpsvipb.example.com]:14250
2011/11/18 14:01:15 VCS ERROR V-16-1-54031 Resource coordpoint (Owner:
Unspecified, Group: westfensg) is FAULTED on sys sym1
2011/11/18 14:01:15 VCS NOTICE V-16-1-10300 Initiating Offline of Resource
RES_phantom_westfensg (Owner: Unspecified, Group: westfensg) on System sym1
2011/11/18 14:01:15 VCS INFO V-16-6-15002 (sym1) hatrigger:hatrigger
executed /opt/VRTSvcs/bin/triggers/resfault sym1 coordpoint ONLINE
successfully
2011/11/18 14:01:16 VCS INFO V-16-1-50135 User root fired command:
MSG_RES_PROBE coordpoint sym2 from localhost
2011/11/18 14:01:16 VCS INFO V-16-1-10305 Resource RES_phantom_westfensg
(Owner: Unspecified, Group: westfensg) is offline on sym1 (VCS initiated)
2011/11/18 14:01:16 VCS NOTICE V-16-1-10235 Restart is set for group
westfensg. Group will be brought online if fault on persistent resource
clears. If group is brought online anywhere else from AutoStartList or
manually, then Restart will be reset
2011/11/18 14:01:16 VCS ERROR V-16-1-10205 Group westfensg is faulted on
system sym1
2011/11/18 14:01:16 VCS NOTICE V-16-1-10446 Group westfensg is offline on
system sym1
...
End of Solution
sh -x /student/labs/vcs/vcs60/unblock.all
#Resource
coordpoint
coordpoint
Attribute
State
State
System
sym1
sym2
Value
ONLINE
ONLINE
End of Solution
B439
sym1
1
vxfenconfig -l
I/O Fencing Configuration Information:
======================================
security=0
single_cp=0
[cpsvipa.example.com]:14250 {3d565ca8-1dd2-11b2-a103-56875d7a7411}
[cpsvipb.example.com]:14250 {3d565ca8-1dd2-11b2-a103-56875d7a7411}
/dev/vx/rdmp/emc0_d11s3
201
131
522345600000000A
/dev/vx/rdmp/emc0_d12s3
201
147
522345600000000B
dmp
dmp
cat /etc/vxfen.d/data/cp_uid_db
[cpsvipa.example.com]:14250 server
56875d7a7411}
[cpsvipb.example.com]:14250 server
56875d7a7411}
{3d565ca8-1dd2-11b2-a103{3d565ca8-1dd2-11b2-a103-
End of Solution
446B440
hastop -all
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
Port b gen
b4b805 membership 01
End of Solution
End of Solution
Use the service vxfen stop command to stop I/O fencing on sym1.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
vxfenadm -d
VXFEN vxfenadm ERROR V-11-2-1101 Open failed for device: /dev/vxfen
End of Solution
Use the service vxfen start command to start I/O fencing. Why does
I/O fencing startup even though the CP server is shutdown?
B441
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
Port b gen
b4b807 membership 01
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
8 (running)
8 (running)
End of Solution
448B442
Solution
rm /etc/vxfen.d/data/cp_uid_db
rm: remove regular file `/etc/vxfen.d/data/cp_uid_db'? y
ls -l /etc/vxfen.d/data/cp_uid_db
ls: /etc/vxfen.d/data/cp_uid_db: No such file or directory
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
vxfenadm -d
VXFEN vxfenadm ERROR V-11-2-1101 Open failed for device: /dev/vxfen
End of Solution
In the first stop-start sequence, the cache file was present and so, even with the CP
server shutdown, I/O fencing could start. In the last stop-start sequence, the cache
information was missing. Since the CP server was shutdown, I/O Fencing could not
start.
Solution
B443
...
450 B444
End of Solution
State
Frozen
RUNNING
cps
-- GROUP STATE
-- Group
B
B
System
CPSSG
cps
ClusterService cps
Probed
Y
Y
AutoDisabled
State
N
N
ONLINE
ONLINE
End of Solution
Use the service vxfen start command to start I/O fencing. Confirm
that the /etc/vxfen.d/data/cp_uid_db cache file has been
re-created. Use the vxfenconfig command to confirm that the coordination
points in use.
Solution
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
B445
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
Port b gen
b4b809 membership 01
vxfenadm -d
I/O Fencing Cluster Information:
================================
Fencing
Fencing
Fencing
Cluster
8 (running)
8 (running)
ls -l /etc/vxfen.d/data/cp_uid_db
-rw-r----- 1 root root 160 Nov 19 03:23 /etc/vxfen.d/data/cp_uid_db
cat /etc/vxfen.d/data/cp_uid_db
[cpsvipa.example.com]:14250 server
56875d7a7411}
[cpsvipb.example.com]:14250 server
56875d7a7411}
{3d565ca8-1dd2-11b2-a103{3d565ca8-1dd2-11b2-a103-
vxfenconfig -l
452 B446
security=0
single_cp=0
[cpsvipa.example.com]:14250 {3d565ca8-1dd2-11b2-a103-56875d7a7411}
[cpsvipb.example.com]:14250 {3d565ca8-1dd2-11b2-a103-56875d7a7411}
/dev/vx/rdmp/emc0_d11s3
201
131
522345600000000A
/dev/vx/rdmp/emc0_d12s3
201
147
522345600000000B
dmp
dmp
End of Solution
hastart
gabconfig -a
GAB Port Memberships
===============================================================
Port a gen
b4b801 membership 01
Port b gen
b4b809 membership 01
Port h gen
b4b80c membership 01
hastatus -sum
-- SYSTEM STATE
-- System
State
Frozen
A
A
RUNNING
RUNNING
0
0
sym1
sym2
-- GROUP STATE
-- Group
System
B
B
B
B
B
B
sym1
sym2
sym1
sym2
sym1
sym2
ClusterService
ClusterService
appsg
appsg
westfensg
westfensg
Probed
Y
Y
Y
Y
Y
Y
AutoDisabled
State
N
N
N
N
N
N
ONLINE
OFFLINE
ONLINE
OFFLINE
ONLINE
ONLINE
End of Solution
B447
sym1
1
Select and confirm that you want to reconfigure I/O fencing on the cluster.
Select option 4 for online fencing migration
Select to remove the CPS coordination point.
The total number of NEW coordination points is 1 (one)
The total number of NEW disk coordination points is 1 (one).
The new disk is emc0_d10
The fencing mode is scsi3
Solution
cd /opt/VRTS/install
./installsfha -fencing
454B448
y
Checking
Done
Checking
Checking
Checking
Done
Checking
Checking
y
Fencing configuration
1 ) Configure Coordination Point client based fencing
2 ) Configure disk based fencing
3 ) Configure fencing in disabled mode
4 ) Online fencing migration
Select the fencing mechanism to be configured in this Application Cluster:
[1-4,q]
4
Online fencing migration allows you to online replace coordination points.
Installer will ask questions to get the information of the coordination
points
to be removed or added. Then it will call vxfenswap utility to commit the
coordination points change.
Warning: It may cause the whole cluster to panic if a node leaves
membership
before the coordination points change is complete.
Select the coordination points you would like to remove from currently
configured coordination points:
1) emc0_d11
2) emc0_d12
3) [cpsvipa.example.com]:14250,[cpsvipb.example.com]:14250
4) All
5) None
b) Back to previous menu
Enter the options, separated by spaces: [1-5,b,q,?] (5)
3
You will be asked to give details about Coordination Point Servers/Disks to
be
used as new coordination points. Note that the installer assumes these
values to
be the identical as viewed from all the client cluster nodes.
Enter the total number of new coordination points including both
Coordination
Point servers and disks: [b] (1)
1
Enter the total number of disks among these: [b] (0)
B449
1
List of available disks:
1) emc0_dd9
2) emc0_d10
b) Back to previous menu
Select 1 disk(s) as coordination points. Enter the disk options, separated
by
spaces: [1-2,b,q]
2
Coordination points verification
Current coordination points:
1. [cpsvipa.example.com]:14250,[cpsvipb.example.com]:14250
2. emc0_d11
3. emc0_d12
Coordination points to be removed:
1. [cpsvipa.example.com]:14250,[cpsvipb.example.com]:14250
Coordination points to be added:
1. emc0_d10
New set of Coordination points:
1. emc0_d11
2. emc0_d12
3. emc0_d10
Is this information correct? [y,n,q] (y)
456 B450
y
All the coordination points are disks. You can configure vxfen in either
scsi3
mode or customized mode, choose 'SCSI3' mode for disk based fencing or
'customized' mode for cps based fencing. Symantec recommends to configure
vxfen
in scsi3 mode.
1) SCSI3
2) Customized
b) Back to previous menu
Select the vxfen mode: [1-2,b,q,?] (1)
1
Importing disk group westfendg on sym1 ............................ Done
Adding disk emc0_d10 to disk group westfendg ..................... Done
Deporting the disk group westfendg on sym1 ........................ Done
Press [Enter] to continue:
Press Enter.
Preparing /etc/vxfenmode.test on system sym1 ...................... Done
Preparing /etc/vxfenmode.test on system sym2 ...................... Done
Running vxfenswap. Refer to vxfenswap.log under /var/VRTSvcs/log/vxfen on
sym1
for details
Successfully completed the vxfenswap operation
Cleaning up client cluster information on removed Coordination Point
servers
Cleaning up on Coordination Point server cpsvipa.example.com ...... Done
The updates to VRTSaslapm package are released via the Symantec SORT web
page:
https://sort.symantec.com/asl. To make sure you have the latest version of
VRTSaslapm (for up to date ASLs and APMs), download and install the latest
package from the SORT web page.
installsfha log files, summary file, and response file are saved at:
/opt/VRTS/install/logs/installsfha-201111190639zCT
Would you like to view the summary file? [y,n,q] (n)
m n
End of Solution
Using the vxfenadm and vxfenconfig commands verify the I/O fencing
configuration. Optionally, examine the fencing configuration files located in
the /etc/directory.
Solution
vxfenadm -d
8 (running)
8 (running)
vxfenconfig -l
I/O Fencing Configuration Information:
======================================
Single Disk Flag
: 0
B451
Count
: 3
Disk List
Disk Name
Major
/dev/vx/rdmp/emc0_d11s3
201
/dev/vx/rdmp/emc0_d12s3
201
/dev/vx/rdmp/emc0_d10s3
201
Minor
115
179
83
Serial Number
522345600000000A
522345600000000B
5223456000000009
Policy
dmp
dmp
dmp
End of Solution
End of lab
458 B452
Appendix C
Supplemental Content
459
460 C2
C3
462 C4
Configuring IP addresses
C5
464C6
C7
466 C8
C9
468 C10
C11
470 C12
C13
472 C14
C15
474C16
C17
The slide shows an example of an llttab file on Solaris where two private
network interfaces are configured on different network interfaces on each of two
nodes.
476 C18
Troubleshooting VCS
Monitoring VCS
VCS provides numerous resources you can use to gather information about the
status and operation of the cluster. These include:
VCS log files
VCS engine log file, /var/VRTSvcs/log/engine_A.log
Agent log files in /var/VRTSvcs/log
hashadow log file, /var/VRTSvcs/log/hashadow-err_A.log
System log files
The hastatus utility
Notification by way of SNMP traps and e-mail messages
Event triggers
Veritas Operations Manager
Cluster Manager Java GUI
The information sources that have not been covered elsewhere in the course are
discussed in more detail in the next sections.
C19
VCS logs
In addition to the engine_A.log primary VCS log file, VCS logs information
for had, hashadow, and all agent programs in these locations:
had: /var/VRTSvcs/log/engine_A.log
hashadow: /var/VRTSvcs/log/hashadow-err_A.log
Agent logs: /var/VRTSvcs/log/AgentName_A.log
Messages in VCS logs have a unique message identifier (UMI) built from product,
category, and message ID numbers. The Symantec Operations Readiness Tools
Web site, sort.symantec.com, provides additioinal information about
common UMI log entries.
478 C20
Each entry includes a text code indicating severity, from CRITICAL entries
indicating that immediate attention is required, to INFO entries with status
information.
The log entries are categorized as follows:
CRITICAL: VCS internal message requiring immediate attention. Contact
Support.
ERROR: Messages indicating errors and exceptions
WARNING: Messages indicating warnings
NOTICE: Messages indicating normal operations
INFO: Informational messages from agents
Entries with CRITICAL and ERROR severity levels indicate problems that require
troubleshooting.
Veritas Cluster Server 6.0 for UNIX: Install and Configure
Copyright 2012 Symantec Corporation. All rights reserved.
When the engine_A.log file reaches the maximum size, the file is renamed
engine_B.log and a new engine_A.log file is created. The next time the
engine_A.log file reaches the maximum size, the engine_B.log file is
renamed to engine_C.log. Upon subsequent rollovers, the contents of the
engine_C.log file are overwritten and are no longer available.
C21
The Symantec Connect Web site provides a portal for accessing technical
resources, such as product documentation, software, technical articles, and
discussion groups. You can access Symantec Connect from http://
www.symantec.com/connect.
480 C22
Troubleshooting guide
A VCS problem is typically one of three types:
Cluster communication
VCS engine startup
Service groups, resources, or agents
Procedure overview
To start troubleshooting, determine which type of problem is occurring based on
the information displayed by hastatus -sum output.
Cluster communication problems are indicated by the message:
Cannot connect to server -- Retry Later
VCS engine startup problems are indicated by systems in the
STALE_ADMIN_WAIT or ADMIN_WAIT state.
Other problems are indicated when the VCS engine, LLT, and GAB are all
running on all systems, but service groups or resources are in an unexpected
state.
C23
The hastatus display uses categories to indicate the status of different types of
cluster objects. Examples are shown in the following table.
Systems
Service groups
Failed resources
482 C24
Ensure that you understand the consequences of the commands and methods you
use for troubleshooting when using the job aid.
C25
Making backups
484C26