Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

Preinstalling single host for later primary-primary setup

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


tc at cataneo

Dec 19, 2011, 9:23 AM

Post #1 of 2 (280 views)
Permalink
Preinstalling single host for later primary-primary setup

I just started playing around with drbd, so sorry if I'm still not
familiar with concepts and tools of drbd.

After installation of the first pair of servers in primary-primary-mode
it worked immediately without problems. I now want to set up another pair of
servers. OS is Debian-Lenny (Proxmox).

But there two differences:
- local storage for drbd-device is md (= Linux soft-RAID) with RAID-0
- Initially there is only one server available; the other should be
added if the first one is running.


Meanwhile there is a device /dev/drbd1 and "drbdadm up r1" can be run
without error messages, but the device isn't available for tools like
parted or pvcreate:

pve-153:~# parted /dev/drbd1
Error: Error opening /dev/drbd1: Falscher Medien-Typ
( = incorrect media type ?)

pve-153:~# pvcreate /dev/drbd1
Device /dev/drbd1 not found (or ignored by filtering).

drbd-version is 8.3.10

/etc/drbd.conf:

global { usage-count no; }
common { syncer { rate 30M; } }
resource r1 {
protocol C;
startup {
wfc-timeout 15;
degr-wfc-timeout 60;
become-primary-on both;
}
net {
cram-hmac-alg sha1;
shared-secret "XYZ";
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
}
on pve-153 {
device /dev/drbd1;
disk /dev/md2;
meta-disk internal;
address 192.168.31.10:7788;
}
on pve-154 {
device /dev/drbd1;
disk /dev/md2;
meta-disk internal;
address 192.168.31.9:7788;
}
}
# fini

pve-153:~# cat /proc/drbd
version: 8.3.10 (api:88/proto:86-96)
GIT-hash: 5c0b0469666682443d4785d90a2c603378f9017b build by phil [at] fat-tyr, 2011-01-28 12:17:35

1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----s
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:405990004


TIA,
Tobias.
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


tc at cataneo

Dec 20, 2011, 4:58 AM

Post #2 of 2 (255 views)
Permalink
Re: Preinstalling single host for later primary-primary setup [In reply to]

Am Tue, 20 Dec 2011 10:55:15 +0100
schrieb Robert.Koeppl [at] knapp:

> You need to promote this node to primary.
> drbdadm -- --overwrite-data-of-peer primary r0
> should do the trick.

Perfect, works!
Thanks well!

> Also you will need some sort of clusterware to controll your drbd
> later on, unless you want to be the meatware-clusteragent doing
> everything manually.

At present we run only minor important virtual machines on these
clusters, so short interruptions will be acceptable. In addition we
first want to get more familiar with this HA-stuff before establishing
more automation.

> also please update to at least 8.3.11 there was a nasty bug in the
> peer outdater in 8.3.10 - I am not sure if it hits you in dual
> primary, but it hit us pretty hard on one of our test systems in an
> active/passive configuration.

Thanks for the advice!

Our installations are based on an article at the Proxmox-site
(wiki-article + forum-thread) that suggested to install drbd-utils,
version 8.3.10 because Proxmox' kernel is using this one. At present
I'd prefer to keep their kernel untouched but I see the long list of
fixes and enhancements that 8.3.11 brings.


Regards,
Tobias.
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.