View Single Post
  #25  
Old 30th August 2008, 11:00
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,

I decided to change back to vmware server 1 (1.0.7) because 2 sucks. The reason why I go back:
When I reboot the primary node all the VM's are inaccessible when I poweroff the primary /var/vm is correctly mounted on the secondary but the VM's are again inaccessible the work around I discovered, delete the inaccessible VM's and make a new VM. Delete that one after you finished the wizard. Now you can add the inaccessible VM's..
And because of above the whole fail over doens't work

So there is one other thing, I got three three on both servers. I want to use eth0 for all the default network traffic, eth1 for heartbeat and eth2 for drbd traffic. So I need to edit /etc/hosts to something like this:
Code:
127.0.0.1       localhost.localdomain   localhost
192.168.1.13    sproetjuh.home          sproetjuhdefault
192.168.1.14    sproetjuh.home          sproetjuhheartbeat
192.168.1.15    sproetjuh.home          sproetjuhdrbd
192.168.1.16    kimmetjuh.home          kimmetjuhdefault
192.168.1.17    kimmetjuh.home          kimmetjuhheartbeat
192.168.1.18    kimmetjuh.home          kimmetjuhdrbd
And the /etc/drbd.conf to:
Code:
on sproetjuhdrbd {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.15:7789;
    meta-disk  internal;
  }
  on kimmetjuhdrbd {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.18:7789;
    meta-disk  internal;
  }
But after this I got the following error:

Code:
sproetjuh:~# drbdadm up all
/etc/drbd.conf:27: in resource vm1, on sproetjuhdrbd { ... } ... on kimmetjuhdrbd { ... }:
        There are multiple host sections for the peer.
        Maybe misspelled local host name 'sproetjuh'?
And that's logical because:
Code:
sproetjuh:~# hostname
sproetjuh
sproetjuh:~# hostname -f
sproetjuh.home
So I hope someone can help me! Because the man page about hosts and google can't help me futher..

Have a good day,

Greetings from the Netherlands,

Bart van Kleef
Reply With Quote