[DRBD-user] Configuration problems with more than one resource

laruiss laruiss at gmail.com
Thu Jan 7 14:59:45 CET 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello, quite new in here. I just hope I am not posting in a forum I should
post on...

I had drbd working quite fine with one resource (2 nodes) on a samba
service.

I tried to add another resource for another service (backuppc), but
/backuppc is mounted and then immediately unmounted.

Can someone tell me what I did wrong ?

drbd : 
Version: 8.0.14 (api:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil at fat-tyre,
2008-11-12 16:40:33

# cat /etc/debian_version
5.0.3

# egrep -v "^(\s*)(#|$)" /etc/drbd.conf
global {
    usage-count no;
}
common {
  protocol C;
  syncer {
    rate 10M;
  }
  handlers {
    pri-lost-after-sb "reboot -f";
    pri-lost "echo Déconnexion des serveurs, vérifier les logs | mail -s
'SERVEUR: Alerte DRBD' admin at domain.fr";
    pri-on-incon-degr "reboot -f";
    outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";
    local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
  }
}
resource shared {
  protocol C;
  startup {
    wfc-timeout  0;
    degr-wfc-timeout 120;    # 2 minutes.
  }
  disk {
    on-io-error   detach;
  }
  net {
  }
  syncer {
    rate 10M;
    al-extents 257;
  }
  on romeo {
    device     /dev/drbd0;
    disk       /dev/dm-4;
    address    172.16.0.30:7788;
    meta-disk  internal;
  }
  on juliet {
    device    /dev/drbd0;
    disk      /dev/dm-4;
    address   172.16.0.31:7788;
    meta-disk internal;
  }
}
resource backuppc {
  protocol C;
  startup {
    wfc-timeout  0;
    degr-wfc-timeout 120;    # 2 minutes.
  }
  disk {
    on-io-error   detach;
  }
  net {
  }
  syncer {
    rate 10M;
    al-extents 257;
  }
  on romeo {
    device     /dev/drbd1;
    disk       /dev/dm-5;
    address    172.16.0.30:7789;
    meta-disk  internal;
  }
  on juliet {
    device    /dev/drbd1;
    disk      /dev/dm-5;
    address   172.16.0.31:7789;
    meta-disk internal;
  }
}

# cat /etc/ha.d/ha.cf
mcast eth0 239.0.0.10 694 1 0

warntime 4
deadtime 5
initdead 15
keepalive 2

auto_failback off

node juliet romeo

# cat /etc/ha.d/haresources
juliet IPaddr::172.16.0.36 drbddisk::shared
Filesystem::/dev/drbd0::/shared::ext3 samba
MailTo::stanislas.ormieres at pscfra.net::Changement_d_etat_samba
romeo IPaddr::172.16.0.37 drbddisk::backuppc
Filesystem::/dev/drbd1::/backuppc::ext3 backuppc
MailTo::stanislas.ormieres at pscfra.net::Changement_d_etat_backuppc

# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.14 (api:86/proto:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil at fat-tyre,
2008-11-12 16:40:33
m:res       cs          st                 ds                 p  mounted 
fstype
0:shared    StandAlone  Primary/Unknown    UpToDate/DUnknown  -  /shared 
ext3
1:backuppc  Connected   Secondary/Primary  UpToDate/UpToDate  C


-- 
View this message in context: http://old.nabble.com/Configuration-problems-with-more-than-one-resource-tp27060329p27060329.html
Sent from the DRBD - User mailing list archive at Nabble.com.




More information about the drbd-user mailing list