Hi Fabian,
no, I don't need v1. You mean v2 has SAP Agents? Oh, I think I have to set 
up a test cluster with v2-Style and the rpms from 
http://download.opensuse.org/repositories/server:/ha-clustering/SLES_10.
 
Thank you for the Information.
 
Gruß 
Andreas Reschke
________________________________________________________________
BG-IM173
Unix/Linux-Administration
 
Behr GmbH & Co. KG
ST B29, 3.OG
 
Tel.: +49 711 896-4598
Fax: ++49 711-8902-4598
Mobil: 0173-3197397
[email protected]



Fabian Herschel <[email protected]> 
Gesendet von: [email protected]
18.03.2009 09:27
Bitte antworten an
General Linux-HA mailing list <[email protected]>


An
General Linux-HA mailing list <[email protected]>
Kopie

Thema
Re: [Linux-HA] Setting up HA-Cluster with heartbeat and SAP





Do you still really need heartbeat v1???

There are some advanced SAP Resource-Agents for heartbeat v2, which
also include monitoring and service restarts.

The problem with your own(?) RA is it could damage your data, if the
unmounts are not work properly (failing due to open files). This could
cause dual mounted file systems - ugly!

Best regards
Fabian Herschel

Andreas Reschke schrieb:
> Hi,
> i need to set up a HA-Cluster for a SAP-application.
> Requirements:
> - 2 IBM x3650
> - SLES 10 SP2 x86_64
> - SAN (EMC)
>
> Steps:
> 1. installing SLES on the server
> 2. configure heartbeat (v1)
> - /etc/ha.d/ha.cf:
> logfile /var/log/ha-log
> keepalive 2
> deadtime 30
> warntime 10
> initdead 120
> auto_failback off
> bcast   eth2
> bcast   eth3
> ucast eth2 11.0.0.1
> ucast eth3 11.0.0.2
> ucast eth2 11.0.0.3
> ucast eth3 11.0.0.4
> node    bgstsapgtsls1
> node    bgstsapgtsls2
> ping 10.20.94.1
> keepalive 10
>
> - /etc/ha.d/haresources:
>  bgstsapgtsls1 10.20.94.200/32/255.255.255.255/bond0:1 sap
>
> - /etc/ha.d/resource.d/sap:
> # Author:       Andreas Reschke [email protected]
> # License:      GNU General Public License (GPL)
> # Date:         2009-03-16
> #
> #set -x
>
> # See how we were called.
> case "$1" in
>   start)
>         # SAP-Startscript
>         # mount SAN
>         # LVM-Volumes search and activate
>         /etc/init.d/boot.md start
>         /etc/init.d/mdadmd start
>         /etc/init.d/boot.lvm start
>         # setting hostname
>         hostname bgstsapgpls01
>         # filesystem mount
>         # all filesystems (sap_vg) are on the SAN
>         mount /dev/sap_vg/lv20 /sap/btpadm
>         mount /dev/sap_vg/lv19 /oracle
>         mount /dev/sap_vg/lv1 /oracle/BTP
>         mount /dev/sap_vg/lv2 /oracle/BTP/mirrlogA
>         mount /dev/sap_vg/lv3 /oracle/BTP/mirrlogB
>         mount /dev/sap_vg/lv4 /oracle/BTP/oraarch
>         mount /dev/sap_vg/lv5 /oracle/BTP/origlogA
>         mount /dev/sap_vg/lv6 /oracle/BTP/origlogB
>         mount /dev/sap_vg/lv7 /oracle/BTP/saparch
>         mount /dev/sap_vg/lv8 /oracle/BTP/sapbackup
>         mount /dev/sap_vg/lv9 /oracle/BTP/sapcntrl1
>         mount /dev/sap_vg/lv10 /oracle/BTP/sapcntrl2
>         mount /dev/sap_vg/lv11 /oracle/BTP/sapcntrl3
>         mount /dev/sap_vg/lv12 /oracle/BTP/sapdata1
>         mount /dev/sap_vg/lv13 /oracle/BTP/sapdata2
>         mount /dev/sap_vg/lv14 /oracle/BTP/sapdata3
>         mount /dev/sap_vg/lv15 /oracle/BTP/sapdata4
>         mount /dev/sap_vg/lv16 /oracle/BTP/sapreorg
>         mount /dev/sap_vg/lv17 /sapmnt/BTP
>         mount /dev/sap_vg/lv18 /usr/sap/BTP
>         # SAP start
>         su - orabtp -c "/oracle/BTP/102_64/bin/lsnrctl start"
>         # wait for listener
>         sleep 10
>         su - btpadm -c /usr/sap/BTP/SYS/exe/run/startsap
>         # Backupdaemon start
>         /etc/init.d/adsm start
>         ;;
>   stop)
>         # SAP-Stopscript
>         su - btpadm -c /usr/sap/BTP/SYS/exe/run/stopsap
>         su - btpadm -c "/usr/sap/BTP/SYS/exe/run/saposcol -kc"
>         su - btpadm -c "/usr/sap/BTP/SYS/exe/run/cleanipc 41 remove"
>         su - orabtp -c "/oracle/BTP/102_64/bin/lsnrctl stop"
>         # wait for all stopping process
>         sleep 10
>         # if necessary
>         killall sapstartsrv
>         # umount SAN
>          umount /oracle/BTP/mirrlogA
>         umount /oracle/BTP/mirrlogB
>         umount /oracle/BTP/oraarch
>         umount /oracle/BTP/origlogA
>         umount /oracle/BTP/origlogB
>         umount /oracle/BTP/saparch
>         umount /oracle/BTP/sapbackup
>         umount /oracle/BTP/sapcntrl1
>         umount /oracle/BTP/sapcntrl2
>         umount /oracle/BTP/sapcntrl3
>         umount /oracle/BTP/sapdata1
>         umount /oracle/BTP/sapdata2
>         umount /oracle/BTP/sapdata3
>         umount /oracle/BTP/sapdata4
>         umount /oracle/BTP/sapreorg
>         umount /oracle/BTP
>         umount /oracle
>         umount /sapmnt/BTP
>         umount /usr/sap/BTP
>         umount /sap/btpadm
>         # setting old hostname
>         hostname bgstsapgtsls1
>         # Backupdaemon stop
>         /etc/init.d/adsm stop
>        ;;
>    restart|reload)
>         $0 stop
>         $0 start
>         ;;
>   *)
>         echo "Usage: sap {start|stop|restart}"
>         exit 1
> esac
>
> exit $RETVAL
>
>
> Questions: Does this work? Can I have problems with configuration? Does
> anybody a similar configuration?
>
> Gruß
> Andreas Reschke
> ________________________________________________________________
> BG-IM173
> Unix/Linux-Administration
>
> Behr GmbH & Co. KG
> ST B29, 3.OG
>
> Tel.: +49 711 896-4598
> Fax: ++49 711-8902-4598
> Mobil: 0173-3197397
> [email protected]

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to