<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<BR><BR><FONT class=ecxApple-style-span color=#000000>Bien Cordialement,<BR><BR>Edwige Amani ODEDELE<BR><STRONG>Master 2hello!<BR>i am trying to make cluster with my two server root1( the master/primary) and root2(the secondary)<BR> when i do cat /proc/drbd on root2:</STRONG></FONT><BR>
<FONT class=ecxApple-style-span color=#000000><STRONG>root2:~# cat /proc/drbd<BR>version: 8.3.7 (api:88/proto:86-91)<BR>GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by root1, 2011-<BR>04-27 14:43:04<BR> 0: cs:Connected ro:Secondary/Secondary ds: Inconsistent/Diskless C r----<BR> 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:1815683144</STRONG></FONT><BR><FONT class=ecxApple-style-span color=#000000><STRONG>
<BR>on root1:<BR>root1:~# cat /proc/drbd<BR>version: 8.3.7 (api:88/proto:86-91)<BR>GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by root1, 2011-<BR>04-27 14:43:04<BR> 0: cs:Connected ro:Secondary/Secondary ds:Diskless/Inconsistent C r----<BR> 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<BR>
root1:~# mount /dev/drbd0<BR>mount: ne peut repérer /dev/drbd0 dans /etc/fstab ou /etc/mtab<BR>
<BR>
root1:~# cat /etc/lvm/lvm.conf<BR> filter = [ "a|drbd.*|", "r|.*|" ]<BR>
root1:~# vgscan<BR> Reading all physical volumes. This may take a while...<BR> Found volume group "data" using metadata type lvm2<BR>
root1:~# pvcreate /dev/drbd0<BR> Device /dev/drbd0 not found (or ignored by filtering).<BR>
my drbd configuration is:<BR>
root1:~# cat /etc/drbd.conf<BR># You can find an example in /usr/share/doc/drbd.../drbd.conf.example<BR>
include "drbd.d/global_common.conf";<BR>include "drbd.d/*.res";<BR>
root1:~# cat /etc/drbd.d/global_common.conf<BR>global {<BR> usage-count yes;<BR> # minor-count dialog-refresh disable-ip-verification<BR>}<BR>
common {<BR> protocol C;<BR>
handlers {<BR> pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /u<BR>sr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f<BR>";<BR> pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /u<BR>sr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f<BR>";<BR> local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/<BR>notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ; halt -f";<BR> # fence-peer "/usr/lib/drbd/crm-fence-peer.sh";<BR> # split-brain "/usr/lib/drbd/notify-split-brain.sh root";<BR> # out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";<BR> # before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm<BR>.sh -p 15 -- -c 16k";<BR> # after-resync-target /usr/lib/drbd/unsnapshot-resync-target-lvm<BR>.sh;<BR> }<BR>
startup {<BR> # wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-s<BR>b;<BR> }<BR>
disk {<BR> # on-io-error fencing use-bmbv no-disk-barrier no-disk-flushes<BR> # no-disk-drain no-md-flushes max-bio-bvecs<BR> }<BR>
net {<BR> # snd-buf-size rcvbuf-size timeout connect-int ping-int ping-tim<BR>eout max-buffers<BR> # max-epoch-size ko-count allow-two-primaries cram-hmac-alg shar<BR>ed-secret<BR> # after-sb-0pri after-sb-1pri after-sb-2pri data-integrity-alg n<BR>o-tcp-cork<BR> }<BR>
syncer {<BR> # rate after al-extents use-rle cpu-mask verify-alg csums-alg<BR> }<BR>}<BR>
root1:~# cat /etc/drbd.d/data.res<BR>resource data {<BR>protocol C;<BR>startup {<BR># Wait for connection timeout.<BR># The init script blocks the boot process until the resources<BR># are connected. This is so when the cluster manager starts later,<BR># it does not see a resource with internal split-brain.<BR># In case you want to limit the wait time, do it here.<BR># Default is 0, which means unlimited. Unit is seconds.<BR>#<BR># wfc-timeout 0;<BR># Wait for connection timeout if this node was a degraded cluster.<BR># In case a degraded cluster (= cluster with only one node left)<BR># is rebooted, this timeout value is used.<BR>#<BR>degr-wfc-timeout 120; # 2 minutes.<BR>}<BR>on root1 {<BR>device /dev/drbd0;<BR>disk /dev/sda4;<BR>address 88.190.12.136:7788;<BR>meta-disk internal;<BR>}<BR>on root2 {<BR>device /dev/drbd0;<BR>disk /dev/sda4;<BR>address 88.190.12.141:7788;<BR>meta-disk internal;<BR>}<BR>
<BR>i think the problem is with /dev/drbd because :<BR>
root1:~# drbdadm attach data<BR>0: Failure: (114) Lower device is already claimed. This usually means it is moun<BR>ted.<BR>Command 'drbdsetup 0 disk /dev/sda4 /dev/sda4 internal --set-defaults --create-d<BR>evice' terminated with exit code 10<BR>
root1:~# drbdsetup /dev/drbd0 show<BR>net {<BR> timeout 60 _is_default; # 1/10 seconds<BR> max-epoch-size 2048 _is_default;<BR> max-buffers 2048 _is_default;<BR> unplug-watermark 128 _is_default;<BR> connect-int 10 _is_default; # seconds<BR> ping-int 10 _is_default; # seconds<BR> sndbuf-size 0 _is_default; # bytes<BR> rcvbuf-size 0 _is_default; # bytes<BR> ko-count 0 _is_default;<BR> after-sb-0pri disconnect _is_default;<BR> after-sb-1pri disconnect _is_default;<BR> after-sb-2pri disconnect _is_default;<BR> rr-conflict disconnect _is_default;<BR> ping-timeout 5 _is_default; # 1/10 seconds<BR>}<BR>syncer {<BR> rate 250k _is_default; # bytes/second<BR> after -1 _is_default;<BR> al-extents 127 _is_default;<BR>}<BR>protocol C;<BR>_this_host {<BR> device minor 0;<BR> address ipv4 88.190.12.136:7788;<BR>}<BR>_remote_host {<BR> address ipv4 88.190.12.141:7788;<BR>}<BR>
root1:~# drbdsetup /dev/drbd0 verify<BR>/dev/drbd0: State change failed: (-4) Can not resync without local disk<BR>
i need help please!!!!<BR> SeCReTS AFTI</STRONG></FONT><BR><BR><BR>                                            </body>
</html>