![]() |
![]() |
![]() |
![]() |
![]() |
VVR provides the vrnotify
utility to notify administrators of VVR specific events, such as SRL full, resynchronization complete, etc. You can receive notification for a VVR event on the Primary or Secondary node, or both the nodes in an RDS.
The vrnotify
command enables you to write a script that receives VVR event notification and notifies administrators of these events through email, pager, etc. See the examples in this section to see how event notifications can also be used to keep history of various events.
If you do not specify the local_rvgname
in the vrnotify
command, event notification is started for all the RDSs on the local host. If any of the RDSs have RVGs in a shared disk group, vrnotify
provides notification about events on the logowner for those RVGs. Use the -g
option to receive event notifications for RVGs in a specific disk group.
The vrnotify
command displays the VVR events until you explicitly terminate or kill the command.
To receive event notifications on the Primary or Secondary, enter the following command:
# vrnotify -g
diskgroup local_rvgname....
The argument local_rvgname... is a space-separated list of the names of the RVGs on the local host in the specified disk group.
The vrnotify
command displays each event on a new line in the following format:
host_name:event_type:RDS_name:event message
For an RVG in a shared disk group, host_name
is the logowner, and the displayed event information reflects activity on the logowner host.
The vrnotify
command displays the following types of events:
The following example script shows how to use the vrnotify
utility to receive event notifications for the hr_rvg
RDS in the hrdg
disk group and send email to the alias vvradmin if the event srl_warning
occurs.
vrnotify -g hrdg hr_rvg | while read host
event
rvg
msg
(echo "This message is sent by VVR notify mechanism"
echo "$msg for RVG $rvg
on host $host
"
) | mailx -s "VVR SRL Log Warning" vvradmin;;