Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hello Everyone,
I've managed to get drbd-07.11 to work with 2 sarge boxes,
but there a few questions open at this point :
whenever i try to mount the drbd/0 device on the secondary,
i get the following ...
but the device is not mounted (according to /proc/mounts & mtab etc..)
the mountpoint has no influence on that behaviour since when i try
an other one, it works ?
---snipp----------
www-2:/# mount -t ext3 /dev/drbd/0 /ha/
mount: block device /dev/drbd/0 is write-protected, mounting read-only
mount: /dev/drbd/0 already mounted or /ha/ busy
---snapp----------
the second one :
i'd like to make some webspace ha - this should work i think
but as I'm lazy, i concidered using drbd for a mysql instance
but there's my question - are there any problems known with that ?
for sure i will sort all writeaccess out and direct it to the master
but this seems to me more smart than using the mysql - replication
Is there anyone who has this as a working setup or has experiences with that ?
the third one :
at the moment there are only 2boxes, but a third and a forth a prepared ...
but i searched the half web for that and had nothing found -
so is it possible to have 1 primary and 3 or more secondarys ?
What about choosing the next primary - can heartbeat do that job - or is
this just for the head-to-head config everywhere mentioned with 1 primary and 1
secondary ?
________________
thanks for your help
malte
------------snapp-----------------------------
www-1:/ha# cat /proc/drbd
version: 0.7.11 (api:77/proto:74)
SVN Revision: 1807 build by root at srv1, 2005-06-16 20:12:17
0: cs:Connected st:Primary/Secondary ld:Consistent
ns:43854068 nr:0 dw:720740 dr:43133477 al:617 bm:2675 lo:0 pe:0 ua:0 ap:0
www-2:/# cat /proc/drbd
version: 0.7.11 (api:77/proto:74)
SVN Revision: 1807 build by root at srv1, 2005-06-16 20:12:17
0: cs:Connected st:Secondary/Primary ld:Consistent
ns:0 nr:43854068 dw:43854068 dr:0 al:0 bm:2675 lo:0 pe:0 ua:0 ap:0
------------snippp---------------------
resource r0 {
protocol C;
startup {
degr-wfc-timeout 480; # 2 minutes.
}
disk { on-io-error detach; }
net {
timeout 60;
connect-int 10;
ping-int 10;
max-buffers 4096;
}
syncer {
rate 10M;
group 1;
al-extents 257;
}
on www-1 {
device /dev/drbd/0;
disk /dev/hda3;
address 85.XX.XX.XX:7788;
meta-disk internal;
}
on www-2 {
device /dev/drbd/0;
disk /dev/hda3;
address 85.XX.XX.XX:7788;
meta-disk internal;
}
}
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.