|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Debian, Xen and DRBD: Enabling true server redundancy
Tom Hibbert wrote:
Hello again Xenophiles,
I have a strong case for Xen clustering, and I'm knee deep in the dead
with builds at the moment, but I thought I'd post a bit about where
I'm at.
I am one of those trying to use Xen with drbd. Right now I'm still
struggling with Xen and Cent-OS 3, so if anyone has good/bad experience with
building a stable kernel for that distribution I would appreciate any hints.
What debian version do you recommend? Especially with regards to /lib/tls?
Is it possible to disable tls in debian 3.1 without ill effects?
A comment on your setup:
For /etc/ha.d/resource.d/xendomains, the stop command is rather brutal,
isn't it? You do an "exec xm destroy $RES", this is virtually pulling the
plug, as I understand it. What about creating another drbd disk that will be
mounted in dom0 on the primary and then do "xm save $RES /save-vms/$RES"?
The start command could than look into /saved-vms and if a file exists for
the domain, then do xm restore, otherwise xm start.
I have created a block-drbd script that allows xen to automatically make a
drbd device primary when starting a vm (attached). It has some limitations,
i.e. the name of the drbd resource must match the device node. The file goes
into /etc/xen/scripts.
Then modify xend-config.sxp and add:
# Setup script for drbd-backed block devices
(block-drbd block-drbd)
Now you can use it in the domain configuration, e.g.:
disk = [ 'drbd:drbd0,hda1,w' ]
Xend will now automatically do "drbdadm primary drbd0" before start, and
fail if that does not work. It will "drbdadm secondary drbd0" after shutdown
or destroy. Comes in quite handy.
Please note: this works for me but I don't know if this is correctly done.
Provided as-is. So please comment.
Best Regards,
Michael Paesold
block-drbd
Description: Binary data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|