View Single Post
  #10  
Old 12th August 2008, 20:33
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanis,

No that's not the point where I went wrong. If I can believe google secondary/secondary is normal. Heartbeat makes one primary.

But you're right when I run on sproetjuh:

Code:
drbdsetup /dev/drbd0 primary --do-what-I-say
mkfs.ext3 /dev/drbd0

mount -t ext3 /dev/drbd0 /var/vm
Is drbd0 showed in the output of df -h!

But after a reboot the status of drbd is again secondary/secondary and drbd0 is gone in df -h..

So I guess its hearbeat, here are my configs:

Code:
sproetjuh:~# cat /etc/ha.d/ha.cf
logfile /var/log/ha-log
logfacility     local0
keepalive 1
deadtime 10
warntime 10
udpport 694
bcast   eth1
auto_failback off
node    sproetjuh  ## make sure both names are accessible - check /etc/hosts
node    kimmetjuh
ping 10.1.1.15  ## Enter an IP address that is pingable from the ETH0 network !!
respawn hacluster /usr/lib/heartbeat/ipfail
Code:
kimmetjuh:~# cat /etc/ha.d/ha.cf
logfile /var/log/ha-log
logfacility     local0
keepalive 1
deadtime 10
warntime 10
udpport 694
bcast   eth1
auto_failback off
node    sproetjuh  ## make sure both names are accessible - check /etc/hosts
node    kimmetjuh
ping 10.1.1.13  ## Enter an IP address that is pingable from the ETH0 network !!
respawn hacluster /usr/lib/heartbeat/ipfail
Code:
sproetjuh:~# cat /etc/ha.d/authkeys
auth 3
3 md5 failover  ## this is just a string, enter what you want ! auth 3 md5 uses md5 encryption
Code:
kimmetjuh:~# cat /etc/ha.d/authkeys
auth 3
3 md5 failover  ## this is just a string, enter what you want ! auth 3 md5 uses md5 encryption
Code:
sproetjuh:~# cat /etc/ha.d/haresources
sproetjuh 192.168.1.13 drbddisk::vm1 Filesystem::/dev/drbd0::/var/vm::ext3 vmstart
Code:
kimmetjuh:~# cat /etc/ha.d/haresources
sproetjuh 192.168.1.13 drbddisk::vm1 Filesystem::/dev/drbd0::/var/vm::ext3 vmstart
And "ifconfig |more" don't give me any "eth0:0" but:

Code:
sproetjuh:~# ifconfig |more
eth0      Link encap:Ethernet  HWaddr 00:04:75:A9:E6:01
          inet addr:192.168.1.13  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::204:75ff:fea9:e601/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:700 errors:0 dropped:0 overruns:0 frame:0
          TX packets:686 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:56704 (55.3 KiB)  TX bytes:66691 (65.1 KiB)
          Interrupt:185 Base address:0xaf80

eth1      Link encap:Ethernet  HWaddr 00:04:75:A9:E6:B3
          inet addr:10.1.1.13  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::204:75ff:fea9:e6b3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6945 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6945 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1072187 (1.0 MiB)  TX bytes:1072200 (1.0 MiB)
          Interrupt:177 Base address:0x4f00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3326 (3.2 KiB)  TX bytes:3326 (3.2 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Code:
kimmetjuh:~# ifconfig |more
eth0      Link encap:Ethernet  HWaddr 00:04:75:A9:E7:AE
          inet addr:192.168.1.15  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::204:75ff:fea9:e7ae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:684 errors:0 dropped:0 overruns:0 frame:0
          TX packets:830 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:57395 (56.0 KiB)  TX bytes:77289 (75.4 KiB)
          Interrupt:185 Base address:0x6f80

eth1      Link encap:Ethernet  HWaddr 00:04:75:8C:4E:3C
          inet addr:10.1.1.15  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::204:75ff:fe8c:4e3c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7312 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1129181 (1.0 MiB)  TX bytes:1129476 (1.0 MiB)
          Interrupt:177 Base address:0x8f00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3326 (3.2 KiB)  TX bytes:3326 (3.2 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Thanks a lot for all your time! You're my hero

Last edited by Bart van Kleef; 12th August 2008 at 21:00.
Reply With Quote