Re: [Pacemaker] Problem with drbd 2 primary + OCFS2 + server

2009-08-19 Thread cu...@sonet.internetdsl.pl

Michael Schwartzkopff pisze:

Am Dienstag, 18. August 2009 22:50:54 schrieb mikrus_87:
  

:: 19:05:50Hi, i would like to make following configuration: DRBD as master
:: on two nodes +OCFS2, additionally after assembling system's files.



what version of DRBD do you have?

  
It's DRBD 8.0.4. I also noticed that if resources start simultaneously 
in the same time, the file system is mounted properly (on both nodes), 
but if I start pacmekaer-openais on first node and then I will wait a 
couple of seconds and start openais on second node the filesystem on 
that node will not start.


Without pacemaker-openais, when I start manually DRBD on both nodes and 
mount filesystem everything is ok.



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] Problem with drbd 2 primary + OCFS2 + server

2009-08-19 Thread cu...@sonet.internetdsl.pl

hj lee pisze:
What is serwer-mysql? In the last location constraint, serwer-mysql 
should be msDRBD I think. Does msDRBD come up master and slave? Or 
both came up with slave?


Thanks

On Wed, Aug 19, 2009 at 1:25 AM, > wrote:


Hi, i would like to make following configuration: DRBD as master
on two nodes +OCFS2, additionally after assembling system's files
i want WWW
server to start with assigned virtual IP. My configuaration is
working, but
unfortunately not properl. It turnes on DRBD, assebles files
system, but WWW
server and mysql don't start. crm_mon doesn't show any failed actions.

This is my config:
primitive resDRBD ocf:heartbeat:drbd \
 op monitor role=Master interval=59s timeout=30s \
 op monitor role=Slave interval=60s timeout=30s \
   params drbd_resource="web"

primitive resOCFS2 ocf:heartbeat:Filesystem \
   params device="/dev/drbd0" directory="/home/drbd"
fstype="ocfs2"
ms msDRBD resDRBD \
   meta clone-max="2" master-max="2" notify="true"

clone cloneOCFS2 resOCFS2 \
   meta interleave="true" ordered="true"

primitive lighttpd lsb:lighttpd

primitive virtual-ip ocf:heartbeat:IPaddr2 \
params ip="192.168.15.100" broadcast="255.255.255.0" nic="eth0"
cidr_netmask="24" \
op monitor interval=21s timeout=5s

group server-www virtual-ip lighttpd

order msDRBD-before-cloneOCFS2 inf: msDRBD:promote cloneOCFS2:start

order cloneOCFS2-before-server-www inf: cloneOCFS2:promote
server-www:start


colocation sever-www-on-msDRBD inf: server-www msDRBD:Master

location ms-drbd1-master-on-node2 serwer-mysql \
rule id="ms-drbd1-master-on-node2-rule" role="master" 100: #uname
eq node2


Log doesn't show anything about it.



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org 
http://oss.clusterlabs.org/mailman/listinfo/pacemaker




--
Dream with longterm vision!
kerdosa


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
  
It's my mistake. There should be server-www. With this configuration 
msDRBD come up master on both nodes always, but if I will not start them 
in the same time the filesystem on the node that start later will not be 
mount (but drbd will be master on both nodes).


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] Problem with drbd 2 primary + OCFS2 + server

2009-08-19 Thread cu...@sonet.internetdsl.pl

hj lee pisze:

I found two issues in your configuration.

1. Still the last location constraint does not make sense. The 
server-www is a group, not multistate master/slave, so role=master is 
wrong. This should be msDRBD.
2. Why did you set max-master=2? As you said, both nodes came up as 
master, most of constraints you configured does not make sense. For 
example, colocation constraints says that server-www must be run with 
DRBD master. But there are two masters in your cluster, it can not run 
it. Try it again by deleting max-master=2, the default is 1.


Thanks


Is it master-max means: "how many copies of the resource can be promoted 
to master status" ( by Configuration_Explained.pdf  from 
clusterlabs.org)? Whena I'm changeing  role in location to role=master 
crm it shows: "Bad role specified... "


In addition to not starting filesystem, I've change param start-delay 
from default value to 60 of primitive resOCFS2 and now all filesystem 
are mounted properly.



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] Problem with drbd 2 primary + OCFS2 + server

2009-08-19 Thread cu...@sonet.internetdsl.pl

cu...@sonet.internetdsl.pl pisze:

hj lee pisze:

I found two issues in your configuration.

1. Still the last location constraint does not make sense. The 
server-www is a group, not multistate master/slave, so role=master is 
wrong. This should be msDRBD.
2. Why did you set max-master=2? As you said, both nodes came up as 
master, most of constraints you configured does not make sense. For 
example, colocation constraints says that server-www must be run with 
DRBD master. But there are two masters in your cluster, it can not 
run it. Try it again by deleting max-master=2, the default is 1.


Thanks


Is it master-max means: "how many copies of the resource can be 
promoted to master status" ( by Configuration_Explained.pdf  from 
clusterlabs.org)? Whena I'm changeing  role in location to role=master 
crm it shows: "Bad role specified... "


In addition to not starting filesystem, I've change param start-delay 
from default value to 60 of primitive resOCFS2 and now all filesystem 
are mounted properly.



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Ok, I've read documentation on novell site, and now group server-www is 
starting properly on the node i want. Unfortunately problem with 
mounting filesystem on the other node sill remains :(


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] Problem with drbd 2 primary + OCFS2 + server

2009-08-21 Thread cu...@sonet.internetdsl.pl

Dejan Muhamedagic pisze:

Hi,

On Wed, Aug 19, 2009 at 07:51:58PM +0200, cu...@sonet.internetdsl.pl wrote:
  

hj lee pisze:


I found two issues in your configuration.

1. Still the last location constraint does not make sense. The server-www 
is a group, not multistate master/slave, so role=master is wrong. This 
should be msDRBD.
2. Why did you set max-master=2? As you said, both nodes came up as 
master, most of constraints you configured does not make sense. For 
example, colocation constraints says that server-www must be run with DRBD 
master. But there are two masters in your cluster, it can not run it. Try 
it again by deleting max-master=2, the default is 1.


Thanks
  
Is it master-max means: "how many copies of the resource can be promoted to 
master status" ( by Configuration_Explained.pdf  from clusterlabs.org)? 
Whena I'm changeing  role in location to role=master crm it shows: "Bad 
role specified... "



You should use "Master".

  
In addition to not starting filesystem, I've change param start-delay from 
default value to 60 of primitive resOCFS2 and now all filesystem are 
mounted properly.



Eh? How did that help? In that case there are definitely problems
with some resource agent.

BTW, as far as I know, the ocf:heartbeat:drbd RA doesn't support
multimaster configurations. Perhaps the new ocf:linbit:drbd does.
Best to ask on some drbd forum.

Thanks,

Dejan

  

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

  

I've installed drbd 8.3.2, and changed my config:

primitive pocztaDRBD ocf:linbit:drbd \
op monitor role=Master interval=59s timeout=30s \
op monitor role=Slave interval=60s timeout=30s \
params drbd_resource="res"

ms msPocztaDRBD pocztaDRBD \
   meta clone-max="2" master-max="2" notify="true"

primitive pocztaSystemPlikow ocf:heartbeat:Filesystem \
   params device="/dev/drbd0" directory="/home/data" fstype="ocfs2"

clone kopiaSystemuPlikow pocztaSystemPlikow meta interleave="true"

colocation kopaSystemuPlikow-tylko-z-msPocztaDRBD INFINITY: msPocztaDRBD 
kopiaSystemuPlikow


order pocztaDRBD-przed-systememPlikow mandatory: msPocztaDRBD 
kopiaSystemuPlikow



but it wasn't help.

This is my drbd.conf:

resource res {
   protocol C;
   startup {
   become-primary-on both;
   wfc-timeout 0;
   degr-wfc-timeout 120;
   }
   net {
   allow-two-primaries;
   after-sb-0pri discard-zero-changes;
   after-sb-1pri discard-secondary;
   after-sb-2pri disconnect;

   }
   syncer {
   rate 50M;
   }
   on gapik {
   device /dev/drbd0;
   disk /dev/data/drbd0;
   address 10.0.0.1:7788;
   meta-disk internal;
   }
   on mazgaj {
   device /dev/drbd0;
   disk /dev/data/drbd0;
   address 10.0.0.2:7788;
   meta-disk internal;
   }
}








___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] dlm in debian?

2009-09-21 Thread cu...@sonet.internetdsl.pl

If anyone who has debian can do that (build it from sources)?

Andrew Beekhof pisze:

I doubt it, at least not with the pacemaker bits included.
You'd have to build it from one of the sources rpms in server:ha-clustering

/me makes a note to push the extra changes there up to the dlm Git repo.

On Mon, Sep 21, 2009 at 11:22 AM, Michael Schwartzkopff
 wrote:
  

Hi,

Does anybody known if the distributed lock manager is somewhere included in
the debian distribution? If yes, what package?

Thanks.
--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: mi...@multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker




___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

  



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker