Le 13/09/2010 15:30, Lars Ellenberg a écrit :
On Mon, Sep 13, 2010 at 03:22:48PM +0200, Sam Przyswa wrote:
Le 13/09/2010 06:40, Digimer a écrit :
On 10-09-12 08:28 PM, Sam Przyswa wrote:
Your second node is messed up, by the looks of it. Work from your first
node.
Stop both nodes' drbd (/etc/init.d/drbd stop)
Now on 1st, run:
drbdadm -- --overwrite-data-of-peer connect r0
I got:
drbdsetup net: unrecognized option '--overwrite-data-of-peer'
Command 'drbdsetup /dev/drbd0 net 88.190.11.187:7789 88.190.11.244:7789
B --set-defaults --create-device --overwrite-data-of-peer' terminated
with exit code 20
:-(
Sam.
Before you ran that, did you verify that both disks were attached? If
one of them still showed Diskless, it won't work.
Ok but I run DRBD v8.3.7 (both side) and lot of command from the
http://www.drbd.org/docs/ are changed (it seems) as "drbdadm --
--clear-bitmap new-current-uuid ressource" return an error "Unknown
command 'new-current-uuid' "
If that is an unknown command to drbdadm, you are NOT using drbd 8.3.7.
Double check kernel _and_ userland versions of DRBD.
After install the 8.3.7 (testing Debian version) I changed a little bit
the drbd.conf:
-------------------------------------------------------------------
global { usage-count yes; }
resource r0 {
protocol B;
startup {
outdated-wfc-timeout 60;
degr-wfc-timeout 120; # 2 minutes
become-primary-on vserver-2;
}
disk {
on-io-error detach;
}
net {
}
syncer {
rate 10M;
al-extents 257;
}
on vserver-2 {
device /dev/drbd2;
disk /dev/LVM-1/POSTFIX-2;
address 88.190.11.187:7789;
meta-disk /dev/LVM-1/meta-1[0];
}
on vserver-1 {
device /dev/drbd2;
disk /dev/LVM-1/POSTFIX-2;
address 88.190.11.244:7789;
meta-disk /dev/LVM-1/meta-1[0];
}
}
-------------------------------------------------------------------
At start DRBD say:
--== Thank you for participating in the global usage survey ==--
The server's response is:
node already registered
Starting DRBD resources:[ d(r0) 2: Failure: (114) Lower device is
already claimed. This usually means it is mounted.
[r0] cmd /sbin/drbdsetup 2 disk /dev/LVM-1/POSTFIX-2 /dev/LVM-1/meta-1 0
--set-defaults --create-device --on-io-error=detach failed - continuing!
And the command "drbdadm -- --overwrite-data-of-peer primary r0"
Give:
2: State change failed: (-2) Refusing to be Primary without at least one
UpToDate disk
Command 'drbdsetup 2 primary --overwrite-data-of-peer' terminated with
exit code 17
And cat /proc/drbd:
version: 8.3.7 (api:88/proto:86-91)
srcversion: EE47D8BF18AC166BE219757
2: cs:Connected ro:Secondary/Secondary ds:Diskless/Inconsistent B r----
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:0
Argh...
--
Sam Przyswa - Chef de projet
Email: [email protected]
Arial Concept - Intégrateur OpenSource
36, rue de Turin - 75008 - Paris - France
Tel: 01 40 54 86 04 - Fax: 01 40 54 83 01
Fax privé: 09 57 12 27 22
Skype ID: arial-concept
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user