Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

Using XenServer HA with DRBD

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


thomas.stinner at schuechen

Jul 25, 2010, 8:50 AM

Post #1 of 7 (1661 views)
Permalink
Using XenServer HA with DRBD

Hello,

does anybody know if it is possible to use the Built-In HA-Feature of
XenServer 5.6 together with DRBD?

All i have yet managed to do is having the VMs reside on
DRBD-Partitions, but not the HA-Device. It's seems to require a iscsi or
san device.

Does anybody know how XenServer knows that a SR can be used as HA-SR?

Greetings
Thomas Stinner

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


forall at stalowka

Jul 25, 2010, 11:58 AM

Post #2 of 7 (1606 views)
Permalink
Re: Using XenServer HA with DRBD [In reply to]

W dniu 2010-07-25 17:50, Thomas Stinner pisze:
> Hello,
>
> does anybody know if it is possible to use the Built-In HA-Feature of
> XenServer 5.6 together with DRBD?
>
> All i have yet managed to do is having the VMs reside on
> DRBD-Partitions, but not the HA-Device. It's seems to require a iscsi or
> san device.
>
> Does anybody know how XenServer knows that a SR can be used as HA-SR?
>
> Greetings
> Thomas Stinner

Hi,

I using xenserver 5.6 with together drbd, but not with HA-SR, only with
shared storage.
Have you any problem with this solution? I have problem, if I rebooted
or shutdown xenserver, after backup all time the drbd-sr is broken, I
must in xencenter all the time repair this.
In /proc/drbd I saw primary/primary, but I must repair storage (is
unplugged)
Have you a similar problem?

Greetings
Albert

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


roberto.fastec at gmail

Jul 26, 2010, 5:23 AM

Post #3 of 7 (1594 views)
Permalink
Re: Using XenServer HA with DRBD [In reply to]

@: Albert <forall [at] stalowka>
Subject: Re: [DRBD-user] Using XenServer HA with DRBD

This happen if the drbd volume is not yet mounted at the time xenserver's services are started.

If you didn't messed up the xenserver basic setup, this should not happen.

Would you mind to post your drbd.conf?

R.


@: Thomas Stinner <thomas.stinner [at] schuechen>
Subject: [DRBD-user] Using XenServer HA with DRBD

I'm quite sure you know that i.e. xenserver free has got many features disabled, here it is the comparison table
http://www.citrix.com/English/ps2/products/subfeature.asp?contentID=2300456

if you are using the free edition, you must manage to install some cluster framework, i.e. heartbeat+pacemaker. I'm still searching for some documentation about implementing it on xenserver.

If you find it... please share the links.

R.

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


thomas.stinner at schuechen

Jul 26, 2010, 7:45 AM

Post #4 of 7 (1592 views)
Permalink
Re: Using XenServer HA with DRBD [In reply to]

Am 25.07.2010 20:58, schrieb Albert:
> Hi,
>
> I using xenserver 5.6 with together drbd, but not with HA-SR, only
> with shared storage.
> Have you any problem with this solution? I have problem, if I rebooted
> or shutdown xenserver, after backup all time the drbd-sr is broken, I
> must in xencenter all the time repair this.
> In /proc/drbd I saw primary/primary, but I must repair storage (is
> unplugged)
> Have you a similar problem?

Do you use bonding?

I had the same problem when using bonding, since drbd is started before
the xen script, so the interface is not available then.

However, it is also not possible to start drbd after the xen script,
because the SR isn't available to Xen then.

Greetings
Thomas
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


forall at stalowka

Jul 26, 2010, 8:42 AM

Post #5 of 7 (1633 views)
Permalink
Re: Using XenServer HA with DRBD [In reply to]

W dniu 26.07.2010 14:23, Robert @ GMail pisze:
> @: Albert <forall [at] stalowka>
> Subject: Re: [DRBD-user] Using XenServer HA with DRBD
>
> This happen if the drbd volume is not yet mounted at the time
> xenserver's services are started.
>
> If you didn't messed up the xenserver basic setup, this should not happen.
>
> Would you mind to post your drbd.conf?
>

It's my drbd.conf
global { usage-count yes; }

common {
protocol C;
net {
allow-two-primaries;
cram-hmac-alg "sha1";
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
max-buffers 8192;
max-epoch-size 8192;
sndbuf-size 1024;
# rcvbuf-size 0;
}

#handlers {
# outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";
#}

disk {
max-bio-bvecs 1;
no-md-flushes;
no-disk-flushes;
no-disk-barrier;
# fencing resource-only;

}

startup {
become-primary-on both;
}

syncer {
rate 1G;
}
}

resource sr0 {

on xenB1 {
device /dev/drbd0;
disk /dev/sdb1;
address 1.1.1.1:7789;
meta-disk internal;
}
on xenB2 {
device /dev/drbd0;
disk /dev/sdb1;
address 1.1.1.2:7789;
meta-disk internal;
}
}

I'm read this article, how to run drbd on xenserver :
http://joekane.eu/xenserver-drbd-update-4-the-guide

>
>
> @: Thomas Stinner <thomas.stinner [at] schuechen>
> Subject: [DRBD-user] Using XenServer HA with DRBD
>
> I'm quite sure you know that i.e. xenserver free has got many features
> disabled, here it is the comparison table
> http://www.citrix.com/English/ps2/products/subfeature.asp?contentID=2300456

On my server I using a xenserver platinum edition

> if you are using the free edition, you must manage to install some
> cluster framework, i.e. heartbeat+pacemaker. I'm still searching for
> some documentation about implementing it on xenserver.
>
> If you find it... please share the links.
>
> R.





_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


adam.gandelman at linbit

Jul 26, 2010, 9:59 AM

Post #6 of 7 (1619 views)
Permalink
Re: Using XenServer HA with DRBD [In reply to]

On 07/26/2010 05:23 AM, Robert @ GMail wrote:
>
> @: Thomas Stinner <thomas.stinner [at] schuechen>
> Subject: [DRBD-user] Using XenServer HA with DRBD
>
> I'm quite sure you know that i.e. xenserver free has got many features
> disabled, here it is the comparison table
> http://www.citrix.com/English/ps2/products/subfeature.asp?contentID=2300456
>
>
> if you are using the free edition, you must manage to install some
> cluster framework, i.e. heartbeat+pacemaker. I'm still searching for
> some documentation about implementing it on xenserver.
>
> If you find it... please share the links.
>
> R.
>

For xenserver setups, you may configure DRBD in dual primary mode and
import that device as a shared SR into XenServer. You'll still need
some other shared storage to be used for XenServer's HA extension. I
believe the HA extension prefers iSCSI for this. You can configure an
additional, small DRBD resource and export it via iSCSI to be used for
heartbeating, quorom, etc but it will need to be managed on its own
using heartbeat/Pacemaker at the dom0 level. Ideally, pacemaker will
also be managing the state of the DRBD resource.

In most cases, DRBD imported into XenServer as a raw SR will result in a
broken SR after failover. It is not transparent and requires someone to
go in and repair the SR after failover. An alternative would be to use
a single primary DRBD resource, exported via iSCSI and managed at dom0
by pacemaker+heartbeat. Import this iSCSI LUN as the shared SR and
failover of storage can happen between dom0s totally transparent to your
domUs.

XenServer is essentially CentOS so with some effort it is not difficult
to get things like heartbeat and Pacemaker installed and running. Then,
check out any number of documents available covering HA DRBD + iSCSI or
consult LINBIT for professional support. :)

Side note: You may want to check out Xen Cloud Platform
(http://www.xen.org/products/cloudxen.html) -- it is essentially
XenServer open-sourced. Native DRBD support is on the roadmap and I
know there is someone currently working to implement this.

--
: Adam Gandelman
: LINBIT | Your Way to High Availability
: Telephone: 503-573-1262 ext. 203
: Sales: 1-877-4-LINBIT / 1-877-454-6248
:
: 7959 SW Cirrus Dr.
: Beaverton, OR 97008
:
: http://www.linbit.com

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


forall at stalowka

Jul 26, 2010, 10:11 AM

Post #7 of 7 (1592 views)
Permalink
Re: Using XenServer HA with DRBD [In reply to]

W dniu 2010-07-26 16:45, Thomas Stinner pisze:
> Am 25.07.2010 20:58, schrieb Albert:
>> Hi,
>>
>> I using xenserver 5.6 with together drbd, but not with HA-SR, only
>> with shared storage.
>> Have you any problem with this solution? I have problem, if I rebooted
>> or shutdown xenserver, after backup all time the drbd-sr is broken, I
>> must in xencenter all the time repair this.
>> In /proc/drbd I saw primary/primary, but I must repair storage (is
>> unplugged)
>> Have you a similar problem?
>
> Do you use bonding?
>
> I had the same problem when using bonding, since drbd is started before
> the xen script, so the interface is not available then.
>
> However, it is also not possible to start drbd after the xen script,
> because the SR isn't available to Xen then.
>
> Greetings
> Thomas

I don't use bondig, your modification in drbd script, solved the problem.

Thx for help

Albert

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.