About this list Date view Thread view Subject view Author view Attachment view

From: Gebhardt Thomas (gebhardt_at_hrz.uni-marburg.de)
Date: Wed 02 Jun 2004 - 09:44:29 BST


On Friday 28 May 2004 02:04, Lucas Albers wrote:

Hi,

> Could you post more details about this?

> 1.The startup script you have for a vserver which does the arp takeover.
> Assume listed in /etc/vservers/servername.sh
#!/bin/sh
case $1 in
pre-start)
        /usr/lib/heartbeat/send_arp eth1 <ip-addr> <mac-addr> <brdcast-addr>
ffffffffffff
# this is for the router (may be redunant):
       /usr/lib/heartbeat/send_arp eth1 <ip-addr> <mac-addr> <router ip-addr>
ffffffffffff

> How do you disable rebootmgr if you are using vserver?
Just disabling the startup-script:
update-rc.d -f rebootmgr remove (debian)

> Does this break other items?
You cannot reboot the vserver from inside.
If you need this feature, you should propably use the
new reboot userspace helper.

> 2.) Your Heartbeat script.
harsources:
node1 datadisk::drbd0 vserver::<vservername> \
MailTo::<mail-addr>::<vservername>

> 3.) Your Sample drbd config.
(I should probably not use protocol B)

resource drbd0 {

  protocol=B
  fsckcmd=fsck -p -y

  disk {
    disk-size=1G
  }

  net {
    sync-max=50M
    sync-group=0
  }

  on node1 {
    device=/dev/nb0

        # btw, don't do this.
        # did you notice that in this example we have two drbd devices
        # on the same spindle (hda)? performance will be bad. if you
        # use several drbd devices, put them on different spindles;
        # different channels/controllers won't be a bad idea for IDE.

    disk=/dev/linux_vg/vserver_lv
    address=<ip-addr>
    port=7789
  }

  on node2 {
    device=/dev/nb0

        # and while we are at it,
        # if drbd throughput is low, please check your disk
        # throughput first. maybe you need to enable DMA? (-> man hdparm)

    disk=/dev/linux_vg/vserver_lv
    address=<ip-addr>
    port=7789
  }
}

> Any other changes you had to make to vserver to get this to work.
> I'll go ask on the drbd list for more drbd specific information.
> Thanks.
The heartbeat vserver resource script is just a copy (or symlink) to the
vserver script.

Hope that helps, Thomas
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 02 Jun 2004 - 09:45:12 BST by hypermail 2.1.3