Hello Lars,

Thanks for the response.
I use heartbeat because i used it years ago. (i don't know better)
So i did not know that PaceMaker or RHCS did the same job.

If PaceMaker is a more up2date choice, then i will use this.

marcel


On 16 mei 2012, at 22:05, Lars Ellenberg wrote:

> On Wed, May 16, 2012 at 09:40:09PM +0200, Marcel Kraan wrote:
>> Hello,
>> 
>> I use 2 servers with CentOS 6.2 
>> 
>> But on 1 server (kvmstorage1) ifs is not starting after a restart or when i 
>> shutdown heartbeat and restart is later.
>> 
>> # this is my resources file? it start not all services i have given in the 
>> haresources file?
>> Do i something wrong?
> 
> The resource manager of heartbeat haresource mode is a shell script,
> named ResourceManager.
> 
> It has a function acquireresourcegroup(),
> which loops through all resources you defined,
> runs "status" on them, and if that does not indicate they are running,
> it runs "start" on them.
> 
>  for j in "$@"
>  do
>    if
>      we_own_resource "$j" || doscript "$j" start
>    then
>      : $j start succeeded
>    else
>       ...
> 
> There is no log message coming from "we_own_resource".
> We could easily add one, of course, if you like that better.
> 
> So all is well, only the "nfs" thingy seemed to have been up "unexpectedly".
> 
> May I ask why you chose to use heartbeat haresource mode
> instead of RHCS or Pacemaker, or any other potential candidate for the job?
> 
> Just curious here. I'm trying to figure out how common it is nowadays
> to do new haresources deployments with new projects.
> 
> 
>> #kvmstorage1
>> cat /etc/ha.d/haresources
>> kvmstorage1.localdomain IPaddr::192.168.123.209/24/eth0 drbddisk::main 
>> Filesystem::/dev/drbd0::/datastore::ext4 nfs nfslock rpcidmapd mysql
>> 
>> ResourceManager[2506]:       2012/05/16_21:34:40 info: Running 
>> /etc/ha.d/resource.d/Filesystem /dev/drbd0 /datastore ext4 start
>> Filesystem[2933]:    2012/05/16_21:34:40 INFO: Running start for /dev/drbd0 
>> on /datastore
>> Filesystem[2921]:    2012/05/16_21:34:41 INFO:  Success
>> ResourceManager[2506]:       2012/05/16_21:34:41 info: Running 
>> /etc/init.d/nfslock  start
>> ResourceManager[2506]:       2012/05/16_21:34:41 info: Running 
>> /etc/init.d/rpcidmapd  start
>> ResourceManager[2506]:       2012/05/16_21:34:42 info: Running 
>> /etc/init.d/mysqld  start
>> May 16 21:34:43 kvmstorage1.localdomain heartbeat: [2489]: info: local HA 
>> resource acquisition completed (standby).
>> May 16 21:34:43 kvmstorage1.localdomain heartbeat: [1583]: info: Standby 
>> resource acquisition done [foreign].
>> May 16 21:34:43 kvmstorage1.localdomain heartbeat: [1583]: info: Initial 
>> resource acquisition complete (auto_failback)
>> May 16 21:34:43 kvmstorage1.localdomain heartbeat: [1583]: info: remote 
>> resource transition completed.
>> 
>> 
>> #kvmstorage2
>> cat /etc/ha.d/haresources
>> kvmstorage1.localdomain IPaddr::192.168.123.209/24/eth0 drbddisk::main 
>> Filesystem::/dev/drbd0::/datastore::ext4 nfs nfslock rpcidmapd mysql
>> 
>> Filesystem[16037]:   2012/05/16_21:33:53 INFO:  Resource is stopped
>> ResourceManager[15787]:      2012/05/16_21:33:53 info: Running 
>> /etc/ha.d/resource.d/Filesystem /dev/drbd0 /datastore ext4 start
>> Filesystem[16117]:   2012/05/16_21:33:53 INFO: Running start for /dev/drbd0 
>> on /datastore
>> Filesystem[16109]:   2012/05/16_21:33:53 INFO:  Success
>> ResourceManager[15787]:      2012/05/16_21:33:54 info: Running 
>> /etc/init.d/nfs  start
>> ResourceManager[15787]:      2012/05/16_21:33:54 info: Running 
>> /etc/init.d/nfslock  start
>> ResourceManager[15787]:      2012/05/16_21:33:54 info: Running 
>> /etc/init.d/mysqld  start
>> mach_down[15761]:    2012/05/16_21:33:56 info: 
>> /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired
>> May 16 21:33:56 kvmstorage2.localdomain heartbeat: [1528]: info: mach_down 
>> takeover complete.
>> mach_down[15761]:    2012/05/16_21:33:56 info: mach_down takeover complete 
>> for node kvmstorage1.localdomain.
> 
> -- 
> : Lars Ellenberg
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting http://www.linbit.com
> _______________________________________________
> drbd-user mailing list
> [email protected]
> http://lists.linbit.com/mailman/listinfo/drbd-user

_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to