ps - I searched a lot online and I see this issue coming up, and then 
after about 3-4 emails they
request the resources and constraints and then there is never an answer 
to the thread, why?!

On 5/17/2011 10:00 PM, Randy Katz wrote:
> Configs as follows, drbd.conf:
>
> global {
>           usage-count no;
>           # minor-count dialog-refresh disable-ip-verification
> }
>
> resource r0 {
>       protocol C;
>       syncer {
>           rate 4M;
>       }
>       startup {
>           wfc-timeout 15;
>           degr-wfc-timeout 60;
>       }
>       net {
>           cram-hmac-alg sha1;
>           shared-secret "vz2700.1";
>       }
>       on ha1.iohost.com {
>           device /dev/drbd0;
>           disk /dev/vg0/mysql;
>           address 10.1.1.197:7788;
>           meta-disk internal;
>       }
>       on ha2.iohost.com {
>           device /dev/drbd0;
>           disk /dev/vg0/mysql;
>           address 10.1.1.187:7788;
>           meta-disk internal;
>       }
> }
> resource r1 {
>       protocol C;
>       syncer {
>           rate 4M;
>       }
>       startup {
>           wfc-timeout 15;
>           degr-wfc-timeout 60;
>       }
>       net {
>           cram-hmac-alg sha1;
>           shared-secret "vz2700.1";
>       }
>       on ha1.iohost.com {
>           device /dev/drbd1;
>           disk /dev/vg0/html;
>           address 10.1.1.197:7789;
>           meta-disk internal;
>       }
>       on ha2.iohost.com {
>           device /dev/drbd1;
>           disk /dev/vg0/html;
>           address 10.1.1.187:7789;
>           meta-disk internal;
>       }
> }
>
> ha.cf:
>
> # Logging
> debug                           1
> use_logd                        false
> logfile /var/log/heartbeat.log
> logfacility                     daemon
>
> # Misc Options
> traditional_compression         off
> compression                     bz2
> coredumps                       true
>
> # Communications
> udpport                 691
> bcast                           eth0
> autojoin                        any
>
> # Thresholds (in seconds)
> keepalive                       1
> warntime                        6
> deadtime                        10
> initdead                        15
> crm yes
>
> crm dump:
>
> node $id="b159178d-c19b-4473-aa8e-13e487b65e33" ha1.iohost.com \
>           attributes standby="off"
> node $id="b7f38306-1cb7-4f8d-8ff2-4332bbea6e78" ha2.iohost.com \
>           attributes standby="on"
> primitive apache2 lsb:httpd \
>           op start interval="0" timeout="60" \
>           op stop interval="0" timeout="120" start-delay="15" \
>           meta target-role="Started"
> primitive drbd_mysql ocf:linbit:drbd \
>           params drbd_resource="r0" \
>           op monitor interval="15s"
> primitive drbd_webfs ocf:linbit:drbd \
>           params drbd_resource="r1" \
>           op monitor interval="15s"
> primitive fs_mysql ocf:heartbeat:Filesystem \
>           params device="/dev/drbd/by-res/r0" directory="/var/lib/mysql"
> fstype="ext3" \
>           op start interval="0" timeout="60" \
>           op stop interval="0" timeout="120" \
>           meta target-role="Started"
> primitive fs_webfs ocf:heartbeat:Filesystem \
>           params device="/dev/drbd/by-res/r1" directory="/var/www/html"
> fstype="ext3" \
>           op start interval="0" timeout="60" \
>           op stop interval="0" timeout="120" \
>           meta target-role="Started"
> primitive ip1 ocf:heartbeat:IPaddr2 \
>           params ip="72.9.147.196" nic="eth0" \
>           op monitor interval="5s"
> primitive ip1arp ocf:heartbeat:SendArp \
>           params ip="72.9.147.196" nic="eth0"
> primitive mysql ocf:heartbeat:mysql \
>           params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf"
> user="mysql" group="mysql" log="/var/log/mysqld.log"
> pid="/var/run/mysqld/mysqld.pid" datadir="/var/li
> b/mysql" socket="/var/lib/mysql/mysql.sock" \
>           op monitor interval="30s" timeout="30s" \
>           op start interval="0" timeout="120" \
>           op stop interval="0" timeout="120"
> group WebServices ip1 ip1arp fs_webfs fs_mysql apache2 mysql \
>           meta target-role="Started"
> ms ms_drbd_mysql drbd_mysql \
>           meta master-max="1" master-node-max="1" clone-max="2"
> clone-node-max="1" notify="true"
> ms ms_drbd_webfs drbd_webfs \
>           meta master-max="1" master-node-max="1" clone-max="2"
> clone-node-max="1" notify="true"
> colocation apache2_with_ip inf: apache2 ip1
> colocation apache2_with_mysql inf: apache2 ms_drbd_mysql:Master
> colocation apache2_with_webfs inf: apache2 ms_drbd_webfs:Master
> colocation fs_on_drbd inf: fs_mysql ms_drbd_mysql:Master
> colocation ip_with_ip_arp inf: ip1 ip1arp
> colocation mysqlfs_on_drbd inf: fs_mysql ms_drbd_mysql:Master
> colocation webfs_on_drbd inf: fs_webfs ms_drbd_webfs:Master
> order apache-after-webfs inf: fs_webfs:start apache2:start
> order arp-after-ip inf: ip1:start ip1arp:start
> order fs-mysql-after-drbd inf: ms_drbd_mysql:promote fs_mysql:start
> order fs-webfs-after-drbd inf: ms_drbd_webfs:promote fs_webfs:start
> order mysql-after-fs-mysql inf: fs_mysql:start mysql:start
> property $id="cib-bootstrap-options" \
>           dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \
>           cluster-infrastructure="Heartbeat" \
>           expected-quorum-votes="1" \
>           stonith-enabled="false" \
>           no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
>           resource-stickiness="100"
>
>
> On 5/17/2011 9:53 PM, Michael Schwartzkopff wrote:
>>> If do do on ha2: crm node online ha2.iohost.com it starts the VIP, it
>>> will ping, but does not
>>> do the DRBD mounts and does not start web or mysql services. If I then
>>> issue the crm node online ha1.iohost.com
>>> on ha1 it will make ha2 online with all services active! Then if I make
>>> ha2 standby ha1 will
>>> become online with all services, just fine!
>>>
>>> Any insights will be greatly appreciated, thanks!
>> Config?
>>
>>
>>
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to