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