Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
hello, sorry I have an other question.
I have 2 Nodes gamma1 192.168.1.6(primary) gamma2 192.168.1.7(secondary)
and have on gamma1 a Raid1 System with md0,md1 and md2.
I am using drbd 0.6.7 (will update to 11 next week) and heartbeat to
start a simple apache.
When I shut down gamma1, apache will start on gamma2, but the
drbd0 (/dev/sda6) filesystem will not mount automatically, so apache
uses the wrong Documentroot.
Here my fstab (gamma2):
/etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump>
<pass>
/dev/sda3 / ext3 errors=remount-ro 0
1
/dev/sda2 none swap sw 0
0
proc /proc proc defaults 0
0
/dev/fd0 /floppy auto user,noauto 0
0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0
0
/dev/sda5 /tmp ext2 defaults 1
2
/dev/sda6 /var/www ext3 noauto 1
2
I added in haresources this line:
gamma1 132.252.53.8 datadisk::drbd0 apache
My ha.conf is ok.
This is my drbd.conf:
resource drbd0 {
protocol=C
fsckcmd=fsck.ext3 -p -y
load-only
net {
sync-min = 50M
sync-max = 90M
tl-size = 5000
timeout = 60
connect-int = 10
ping-int = 10
}
on gamma1 {
device=/dev/nbd0
disk=/dev/md0
address=192.168.1.6
port=7789
}
on gamma2 {
device=/dev/nbd0
disk=/dev/sda6
address=192.168.1.7
port=7789
}
}
I hope, somone can help me.
Thanks a lot.
Thomas
--
Thomas Kern E-mail: thomas at wi-inf.uni-essen.de
-------------------------------------------------------------------
Wi.Informatik der Produktionsunternehmen | Tel.: +49 (0201) 1834059
Universitaet Duisburg-Essen | Fax.: +49 (0201) 1834067
Universitaetsstrasse 9, D-45143 Essen