[Linux-HA] DRBD and automatic sync
Hello together On my gentoo servers (2 Node Cluster with kernel 3.x) i use heartbeat 3.0.5 and DRBD 8.4.0 for block replication between the two machines which served apache, mysql and samba fileservices Everything works fine, except the automatic sync between the two drives wich are both primarys What did i wrong? conf files see below drbd.conf resource r0 { # protocol to use; C is the the safest variant net { allow-two-primaries; } protocol C; startup { become-primary-on both; #timeout (in seconds) for the connection on startup wfc-timeout 90; # timeout (in seconds) for the connection on startup #after detection of data inconsistencies (degraded mode) degr-wfc-timeout 120; } syncer { # maximum bandwidth to use for this resource rate 100M; } on mail2 { ### options for master-server ### # name of the allocated blockdevice device /dev/drbd0; # underlying blockdevice disk /dev/sdb1; #address and port to use for the synchronisation # here we use the heartbeat network address10.0.0.1:7788; # where to store DRBD metadata; here it's on the underlying device itself meta-disk internal; } on disthost3 { device /dev/drbd1; disk /dev/sda6; address 10.0.0.2:7788; meta-disk internal; } haresoures file for heartbeat mail2 10.0.0.3 drbddisk::r0 Filesystem::/dev/drbd0::/drfs::ext3 apache2 mysql bind samba ha.cf # Logging debug 1 use_logd true logfacility daemon # Misc Options traditional_compression off compression bz2 coredumps true auto_failback on # Communications udpport 694 #ucast eth1 10.0.0.1 bcast eth1 #autojoin any # Thresholds (in seconds) keepalive 2 warntime5 deadtime15 initdead60 crm no nodemail2 nodedisthost3 ~ thanks for your help -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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] Heartbeat Error
I am using pacemaker and corosync. For some reason I keep getting this error in my messages log: ERROR: Cannot chdir to [/var/lib/heartbeat/cores/root]: No such file or directory Should I not worry about that since I am using corosync and not heartbeat William ___ 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
Re: [Linux-HA] DRBD and automatic sync
are you using ext3 for drbd active/active? UM 2012/8/3 Elvis Altherr elvis.alth...@gmail.com Hello together On my gentoo servers (2 Node Cluster with kernel 3.x) i use heartbeat 3.0.5 and DRBD 8.4.0 for block replication between the two machines which served apache, mysql and samba fileservices Everything works fine, except the automatic sync between the two drives wich are both primarys What did i wrong? conf files see below drbd.conf resource r0 { # protocol to use; C is the the safest variant net { allow-two-primaries; } protocol C; startup { become-primary-on both; #timeout (in seconds) for the connection on startup wfc-timeout 90; # timeout (in seconds) for the connection on startup #after detection of data inconsistencies (degraded mode) degr-wfc-timeout 120; } syncer { # maximum bandwidth to use for this resource rate 100M; } on mail2 { ### options for master-server ### # name of the allocated blockdevice device /dev/drbd0; # underlying blockdevice disk /dev/sdb1; #address and port to use for the synchronisation # here we use the heartbeat network address10.0.0.1:7788; # where to store DRBD metadata; here it's on the underlying device itself meta-disk internal; } on disthost3 { device /dev/drbd1; disk /dev/sda6; address 10.0.0.2:7788; meta-disk internal; } haresoures file for heartbeat mail2 10.0.0.3 drbddisk::r0 Filesystem::/dev/drbd0::/drfs::ext3 apache2 mysql bind samba ha.cf # Logging debug 1 use_logd true logfacility daemon # Misc Options traditional_compression off compression bz2 coredumps true auto_failback on # Communications udpport 694 #ucast eth1 10.0.0.1 bcast eth1 #autojoin any # Thresholds (in seconds) keepalive 2 warntime5 deadtime15 initdead60 crm no nodemail2 nodedisthost3 ~ thanks for your help -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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 -- esta es mi vida e me la vivo hasta que dios quiera ___ 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
Re: [Linux-HA] DRBD and automatic sync
Am 03.08.2012 09:32, schrieb emmanuel segura: are you using ext3 for drbd active/active? UM 2012/8/3 Elvis Altherr elvis.alth...@gmail.com Hello together On my gentoo servers (2 Node Cluster with kernel 3.x) i use heartbeat 3.0.5 and DRBD 8.4.0 for block replication between the two machines which served apache, mysql and samba fileservices Everything works fine, except the automatic sync between the two drives wich are both primarys What did i wrong? conf files see below drbd.conf resource r0 { # protocol to use; C is the the safest variant net { allow-two-primaries; } protocol C; startup { become-primary-on both; #timeout (in seconds) for the connection on startup wfc-timeout 90; # timeout (in seconds) for the connection on startup #after detection of data inconsistencies (degraded mode) degr-wfc-timeout 120; } syncer { # maximum bandwidth to use for this resource rate 100M; } on mail2 { ### options for master-server ### # name of the allocated blockdevice device /dev/drbd0; # underlying blockdevice disk /dev/sdb1; #address and port to use for the synchronisation # here we use the heartbeat network address10.0.0.1:7788; # where to store DRBD metadata; here it's on the underlying device itself meta-disk internal; } on disthost3 { device /dev/drbd1; disk /dev/sda6; address 10.0.0.2:7788; meta-disk internal; } haresoures file for heartbeat mail2 10.0.0.3 drbddisk::r0 Filesystem::/dev/drbd0::/drfs::ext3 apache2 mysql bind samba ha.cf # Logging debug 1 use_logd true logfacility daemon # Misc Options traditional_compression off compression bz2 coredumps true auto_failback on # Communications udpport 694 #ucast eth1 10.0.0.1 bcast eth1 #autojoin any # Thresholds (in seconds) keepalive 2 warntime5 deadtime15 initdead60 crm no nodemail2 nodedisthost3 ~ thanks for your help -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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 yes.. woud i better use GFS2 or OFCS (which both dosen't work under kernel 3.x) ? Or which is the best file system porpouse for my case? -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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
Re: [Linux-HA] Heartbeat Error [Solved]
I was able to fix the error by creating the directory manually. /var/lib/heartbeat/cores was already there, I just added root. Kind of an odd problem though. -Original Message- From: linux-ha-boun...@lists.linux-ha.org [mailto:linux-ha-boun...@lists.linux-ha.org] On Behalf Of Yount, William D Sent: Friday, August 03, 2012 2:18 AM To: linux-ha@lists.linux-ha.org Subject: [Linux-HA] Heartbeat Error I am using pacemaker and corosync. For some reason I keep getting this error in my messages log: ERROR: Cannot chdir to [/var/lib/heartbeat/cores/root]: No such file or directory Should I not worry about that since I am using corosync and not heartbeat William ___ 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
Re: [Linux-HA] DRBD and automatic sync
i know the drbd primary to primary it's for use ocfs/gfs, so for have the filesystem read write on both nodes, why you still using heartbeat 1.X 2012/8/3 Elvis Altherr elvis.alth...@gmail.com Am 03.08.2012 09:32, schrieb emmanuel segura: are you using ext3 for drbd active/active? UM 2012/8/3 Elvis Altherr elvis.alth...@gmail.com Hello together On my gentoo servers (2 Node Cluster with kernel 3.x) i use heartbeat 3.0.5 and DRBD 8.4.0 for block replication between the two machines which served apache, mysql and samba fileservices Everything works fine, except the automatic sync between the two drives wich are both primarys What did i wrong? conf files see below drbd.conf resource r0 { # protocol to use; C is the the safest variant net { allow-two-primaries; } protocol C; startup { become-primary-on both; #timeout (in seconds) for the connection on startup wfc-timeout 90; # timeout (in seconds) for the connection on startup #after detection of data inconsistencies (degraded mode) degr-wfc-timeout 120; } syncer { # maximum bandwidth to use for this resource rate 100M; } on mail2 { ### options for master-server ### # name of the allocated blockdevice device /dev/drbd0; # underlying blockdevice disk /dev/sdb1; #address and port to use for the synchronisation # here we use the heartbeat network address10.0.0.1:7788; # where to store DRBD metadata; here it's on the underlying device itself meta-disk internal; } on disthost3 { device /dev/drbd1; disk /dev/sda6; address 10.0.0.2:7788; meta-disk internal; } haresoures file for heartbeat mail2 10.0.0.3 drbddisk::r0 Filesystem::/dev/drbd0::/drfs::ext3 apache2 mysql bind samba ha.cf # Logging debug 1 use_logd true logfacility daemon # Misc Options traditional_compression off compression bz2 coredumps true auto_failback on # Communications udpport 694 #ucast eth1 10.0.0.1 bcast eth1 #autojoin any # Thresholds (in seconds) keepalive 2 warntime5 deadtime15 initdead60 crm no nodemail2 nodedisthost3 ~ thanks for your help -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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 yes.. woud i better use GFS2 or OFCS (which both dosen't work under kernel 3.x) ? Or which is the best file system porpouse for my case? -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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 -- esta es mi vida e me la vivo hasta que dios quiera ___ 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
Re: [Linux-HA] DRBD and automatic sync
Am 03.08.2012 09:42, schrieb emmanuel segura: i know the drbd primary to primary it's for use ocfs/gfs, so for have the filesystem read write on both nodes, why you still using heartbeat 1.X 2012/8/3 Elvis Altherr elvis.alth...@gmail.com Am 03.08.2012 09:32, schrieb emmanuel segura: are you using ext3 for drbd active/active? UM 2012/8/3 Elvis Altherr elvis.alth...@gmail.com Hello together On my gentoo servers (2 Node Cluster with kernel 3.x) i use heartbeat 3.0.5 and DRBD 8.4.0 for block replication between the two machines which served apache, mysql and samba fileservices Everything works fine, except the automatic sync between the two drives wich are both primarys What did i wrong? conf files see below drbd.conf resource r0 { # protocol to use; C is the the safest variant net { allow-two-primaries; } protocol C; startup { become-primary-on both; #timeout (in seconds) for the connection on startup wfc-timeout 90; # timeout (in seconds) for the connection on startup #after detection of data inconsistencies (degraded mode) degr-wfc-timeout 120; } syncer { # maximum bandwidth to use for this resource rate 100M; } on mail2 { ### options for master-server ### # name of the allocated blockdevice device /dev/drbd0; # underlying blockdevice disk /dev/sdb1; #address and port to use for the synchronisation # here we use the heartbeat network address10.0.0.1:7788; # where to store DRBD metadata; here it's on the underlying device itself meta-disk internal; } on disthost3 { device /dev/drbd1; disk /dev/sda6; address 10.0.0.2:7788; meta-disk internal; } haresoures file for heartbeat mail2 10.0.0.3 drbddisk::r0 Filesystem::/dev/drbd0::/drfs::ext3 apache2 mysql bind samba ha.cf # Logging debug 1 use_logd true logfacility daemon # Misc Options traditional_compression off compression bz2 coredumps true auto_failback on # Communications udpport 694 #ucast eth1 10.0.0.1 bcast eth1 #autojoin any # Thresholds (in seconds) keepalive 2 warntime5 deadtime15 initdead60 crm no nodemail2 nodedisthost3 ~ thanks for your help -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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 yes.. woud i better use GFS2 or OFCS (which both dosen't work under kernel 3.x) ? Or which is the best file system porpouse for my case? -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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 thanks i was shure that i use HA 3.0.2 and therefore it woud be the best to upgrade and test again -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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] Antw: Heartbeat Error
Yount, William D yount.will...@menloworldwide.com schrieb am 03.08.2012 um 09:18 in Nachricht 11893698c5a8c84ea0b5484deb54e375025aa58...@dcxprcl018.cnf.prod.cnf.com: I am using pacemaker and corosync. For some reason I keep getting this error in my messages log: ERROR: Cannot chdir to [/var/lib/heartbeat/cores/root]: No such file or directory Should I not worry about that since I am using corosync and not heartbeat Hi! We also have OpenAIS/pacemaker here, but I see: stonith-ng: [20979]: info: crm_log_init_worker: Changed active directory to /var/lib/heartbeat/cores/root So maybe just create that directory ;-) Regards, Ulrich William ___ 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
Re: [Linux-HA] Manual Resource Migration/Move
Hi list, Thanks for the input so far, here are new findings. meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true target-role=Master location location-groupMysql-on-node1 groupMysql inf: halab3 So you have a mandatory location constraint saying run this thing only on halab3 You're right, that's not what I want. Remove the inf: halab3, or replace it with some not infinite score. Ok, that's done! Now here is a crm configure show from another cluster on which crm resource move groupApache nodeha2 doesn't work (same configuration as halab3): node nodeha1 node nodeha2 primitive resApache ocf:heartbeat:apache \ params configfile=/etc/apache2/apache2.conf statusurl=http://localhost/server-status; \ op monitor interval=1min \ op start interval=0 timeout=40 \ op stop interval=0 timeout=60 primitive resDRBDApache ocf:linbit:drbd \ params drbd_resource=www-data \ op start interval=0 timeout=240 \ op stop interval=0 timeout=100 primitive resDRBDPostgresql ocf:linbit:drbd \ params drbd_resource=postgresql \ op start interval=0 timeout=240 \ op stop interval=0 timeout=100 primitive resFsApache ocf:heartbeat:Filesystem \ params device=/dev/drbd/by-res/www-data directory=/home/www-data fstype=ext4 \ op start interval=0 timeout=60 \ op stop interval=0 timeout=60 primitive resFsPostgresql ocf:heartbeat:Filesystem \ params device=/dev/drbd/by-res/postgresql directory=/var/lib/postgresql fstype=ext4 \ op start interval=0 timeout=60 \ op stop interval=0 timeout=60 primitive resIPApache ocf:heartbeat:IPaddr2 \ params ip=178.209.1.10 nic=eth0 cidr_netmask=28 \ op monitor interval=30s primitive resIPPostgresql ocf:heartbeat:IPaddr2 \ params ip=178.209.1.11 nic=eth0 cidr_netmask=28 \ op monitor interval=30s primitive resPostgresql ocf:heartbeat:pgsql \ params pgctl=/usr/lib/postgresql/8.4/bin/pg_ctl psql=/usr/lib/postgresql/8.4/bin/psql pgdata=/var/lib/postgresql/8.4/main pghost=178.209.1.11 config=/etc/postgresql/8.4/main/postgresql.conf logfile=/var/log/postgresql/postgresql-8.4-main.log pgdb=template1 monitor_user=monitor monitor_password=123 \ op monitor interval=30 timeout=30 depth=0 \ op start interval=0 timeout=120 \ op stop interval=0 timeout=120 group groupApache resFsApache resIPApache resApache group groupPostgresql resFsPostgresql resIPPostgresql resPostgresql ms msResDRBDApache resDRBDApache \ meta master-max=1 master-node-max=1 clone-max=2 clone-node- max=1 notify=true target-role=Master ms msResDRBDPostgresql resDRBDPostgresql \ meta master-max=1 master-node-max=1 clone-max=2 clone-node- max=1 notify=true target-role=Master location location-groupApache-on-node1 groupApache 50: nodeha1 location location-groupPostgresql-on-node1 groupPostgresql 50: nodeha1 colocation colo-groupApache-msResDRBDApache inf: groupApache msResDRBDApache:Master colocation colo-groupPostgresql-msResDRBDPostgresql inf: groupPostgresql msResDRBDPostgresql:Master order orderGroupApache-after-msResDRBDApache inf: msResDRBDApache:promote groupApache:start order orderGroupPostgresql-after-msResDRBDPostgresql inf: msResDRBDPostgresql:promote groupPostgresql:start property $id=cib-bootstrap-options \ dc-version=1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff \ cluster-infrastructure=openais \ expected-quorum-votes=2 \ no-quorum-policy=ignore \ stonith-enabled=false \ last-lrm-refresh=1343987736 rsc_defaults $id=rsc-options \ resource-stickiness=100 Before crm resource move groupApache nodeha2: ./showscores.sh Resource Score NodeStickiness #Fail Migration-Threshold resApache100 clientisha1 1000 resApache-INFINITY clientisha2 1000 resDRBDApache:0 0 clientisha2 1000 resDRBDApache:0 10100 clientisha1 1000 resDRBDApache:0_(master) 10700 clientisha1 1000 resDRBDApache:1 100 clientisha2 1000 resDRBDApache:1 -INFINITY clientisha1 1000 resDRBDApache:1_(master) -1clientisha2 1000 resDRBDPostgresql:0 0 clientisha2 1000 resDRBDPostgresql:0 10100 clientisha1 1000 resDRBDPostgresql:0_(master) 10700
[Linux-HA] environment variables and stonith
Hello All, Is it possible to set/pass an environment variable so a stonith device will inherit it, specifically external/vcenter in this case? The issue I'm running into is the vcenter I'm connecting to is using self-signed certificates, which I get around by setting the environment variable PERL_LWP_SSL_VERIFY_HOSTNAME=0, but the processes do not inherit this variable when the machines are rebooted. I know I can hack VICommon.pm and add $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; but that's unclean and something I really don't want to do. I've started looking at modifying the vcenter module to add this param but that's more of a long term solution and doesn't address my immediate needs. I'm running on OpenSUSE 12.1 and PERL_LWP_SSL_VERIFY_HOSTNAME=0 is being passed into the openais init script, which start corosync, by way of /etc/sysconfig/pacemaker but that doesn't matter. Thanks! -- Later, Darin ___ 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
Re: [Linux-HA] DRBD and automatic sync
On 08/03/2012 02:35 AM, Elvis Altherr wrote: Am 03.08.2012 09:32, schrieb emmanuel segura: are you using ext3 for drbd active/active? UM ... yes.. woud i better use GFS2 or OFCS (which both dosen't work under kernel 3.x) ? Or which is the best file system porpouse for my case? If you're on 3.x why not use ceph and ditch the whole drbd/pacemaker thing altogether? It can't be worse than ext3 on dual-primary drbd using haresources mode. -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu signature.asc Description: OpenPGP digital signature ___ 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
Re: [Linux-HA] DRBD and automatic sync
Am 03.08.2012 18:55, schrieb Dimitri Maziuk: On 08/03/2012 02:35 AM, Elvis Altherr wrote: Am 03.08.2012 09:32, schrieb emmanuel segura: are you using ext3 for drbd active/active? UM ... yes.. woud i better use GFS2 or OFCS (which both dosen't work under kernel 3.x) ? Or which is the best file system porpouse for my case? If you're on 3.x why not use ceph and ditch the whole drbd/pacemaker thing altogether? It can't be worse than ext3 on dual-primary drbd using haresources mode. ___ 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 Hi Dimitri Well i'll give a look thanks for the suggestion i recently bought a very useful book about this theme (Clusterbuild HA on Linux from Michael Schwarzkopff) maybe this will guide me for a useful solution regards E.Altherr -- Freundliche Grüsse Elvis Altherr Brauerstrasse 83a 9016 St. Gallen 071 280 13 79 (Privat) elvis.alth...@gmail.com ___ 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