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

Mailing List Archive: DRBD: Users

drbd storage for Oracle VM

 

 

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


dbarker at visioncomm

Mar 31, 2012, 10:57 AM

Post #1 of 9 (625 views)
Permalink
drbd storage for Oracle VM

I'm looking at a Primary/Secondary, Protocol B (or maybe A with Proxy) for a
warm-DR site of a one-host, 4VM Oracle VM 3.0.3 system.

Anyone got any experience with OVM 3 and DRBD?

I was planning to put DRBD on the OVM 3 host and have it provide /dev/drbd0
to OVM for its repository (OVM3 Repositories are OCFS2, in case you are not
familiar).

I have not even checked that it will compile, but if someone has done it
before that would be good to know.

Specific hardware is a dual-XEON 5690 box with an RAID 1+0 array Areca 1222
(multi-terabyte), 4 Gig NICs and 96G Ram in a 2U enclosure.

Dan, in Atlanta

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


ediazrod at gmail

Apr 3, 2012, 2:43 AM

Post #2 of 9 (586 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

I am using Active/Active drbd with virtualbox ocfs2, if you have any
questions feel free to ask.

My experience is if you don't need ocfs2 don't use... is better use
reiserfs or xfs and XEN (if you don't know abour virtualization you can
use virtualbox, it is more easy).

If you need more info fell free contact by chat in gmail.

regards!


On Sat, Mar 31, 2012 at 7:57 PM, Dan Barker <dbarker [at] visioncomm> wrote:

> I'm looking at a Primary/Secondary, Protocol B (or maybe A with Proxy) for
> a
> warm-DR site of a one-host, 4VM Oracle VM 3.0.3 system.
>
> Anyone got any experience with OVM 3 and DRBD?
>
> I was planning to put DRBD on the OVM 3 host and have it provide /dev/drbd0
> to OVM for its repository (OVM3 Repositories are OCFS2, in case you are not
> familiar).
>
> I have not even checked that it will compile, but if someone has done it
> before that would be good to know.
>
> Specific hardware is a dual-XEON 5690 box with an RAID 1+0 array Areca 1222
> (multi-terabyte), 4 Gig NICs and 96G Ram in a 2U enclosure.
>
> Dan, in Atlanta
>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user
>


dbarker at visioncomm

Apr 3, 2012, 3:31 AM

Post #3 of 9 (619 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

Eduardo, thank you for your input, but Virtual Box (workstation product) is a completely different animal than Oracle VM (bare-metal hypervisor). I don’t get to choose the underlying storage, and OVM3 choses OCFS2.



I guess I’ll simply have to try it out and see if DRBD will compile/run/etc.



Dan



From: Eduardo Diaz - Gmail [mailto:ediazrod [at] gmail]
Sent: Tuesday, April 03, 2012 5:44 AM
To: Dan Barker
Cc: drbd List
Subject: Re: [DRBD-user] drbd storage for Oracle VM



I am using Active/Active drbd with virtualbox ocfs2, if you have any questions feel free to ask.

My experience is if you don't need ocfs2 don't use... is better use reiserfs or xfs and XEN (if you don't know abour virtualization you can use virtualbox, it is more easy).

If you need more info fell free contact by chat in gmail.

regards!



On Sat, Mar 31, 2012 at 7:57 PM, Dan Barker <dbarker [at] visioncomm> wrote:

I'm looking at a Primary/Secondary, Protocol B (or maybe A with Proxy) for a
warm-DR site of a one-host, 4VM Oracle VM 3.0.3 system.

Anyone got any experience with OVM 3 and DRBD?

I was planning to put DRBD on the OVM 3 host and have it provide /dev/drbd0
to OVM for its repository (OVM3 Repositories are OCFS2, in case you are not
familiar).

I have not even checked that it will compile, but if someone has done it
before that would be good to know.

Specific hardware is a dual-XEON 5690 box with an RAID 1+0 array Areca 1222
(multi-terabyte), 4 Gig NICs and 96G Ram in a 2U enclosure.

Dan, in Atlanta

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


florian at hastexo

Apr 3, 2012, 3:43 AM

Post #4 of 9 (581 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

On Tue, Apr 3, 2012 at 12:31 PM, Dan Barker <dbarker [at] visioncomm> wrote:
> Eduardo, thank you for your input, but Virtual Box (workstation product) is
> a completely different animal than Oracle VM (bare-metal hypervisor). I
> don’t get to choose the underlying storage, and OVM3 choses OCFS2.
>
>
>
> I guess I’ll simply have to try it out and see if DRBD will compile/run/etc.

It will. However OCFS2 will only work on Protocol C (dual-Primary mode
requires synchronous replication by definition), so your original plan
of using protocol A or B is out.

Why do you need to compile though? I thought UEK2 shipped with DRBD.
Or has that not been made available for Oracle VM yet?

Florian

--
Need help with High Availability?
http://www.hastexo.com/now
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


dbarker at visioncomm

Apr 3, 2012, 4:36 AM

Post #5 of 9 (578 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

>> Eduardo, thank you for your input, but Virtual Box (workstation
>> product) is a completely different animal than Oracle VM (bare-metal
>> hypervisor). I don't get to choose the underlying storage, and OVM3 choses OCFS2.
>>
>>
>>
>> I guess I'll simply have to try it out and see if DRBD will compile/run/etc.
>
> It will. However OCFS2 will only work on Protocol C (dual-Primary mode requires
> synchronous replication by definition), so your original plan of using protocol
> A or B is out.
>
> Why do you need to compile though? I thought UEK2 shipped with DRBD.
> Or has that not been made available for Oracle VM yet?
>
> Florian
>

That sounds encouraging. Not having to compile will mean I don't have to locate all the dependencies.

"UEK2 shipped with DRBD." How would I check?

I have no need for dual-primary and I can't see how OCFS2 can even tell if the underlying block device is dual-primary or single-primary. I believe Eduardo was using dual-primary. I simply need to do a warm-failover (manual) in the event of a disaster.

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


ediazrod at gmail

Apr 3, 2012, 4:50 AM

Post #6 of 9 (585 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

As Florian sais, drbd use protocol C.

we need more info about the protect :) What machines are you going to use?
what OS?.

Compile programs as drbd usually is not a good idea is better use good
knows compilations for every operating system.

Regards!

On Tue, Apr 3, 2012 at 12:43 PM, Florian Haas <florian [at] hastexo> wrote:

> On Tue, Apr 3, 2012 at 12:31 PM, Dan Barker <dbarker [at] visioncomm>
> wrote:
> > Eduardo, thank you for your input, but Virtual Box (workstation product)
> is
> > a completely different animal than Oracle VM (bare-metal hypervisor). I
> > don’t get to choose the underlying storage, and OVM3 choses OCFS2.
> >
> >
> >
> > I guess I’ll simply have to try it out and see if DRBD will
> compile/run/etc.
>
> It will. However OCFS2 will only work on Protocol C (dual-Primary mode
> requires synchronous replication by definition), so your original plan
> of using protocol A or B is out.
>
> Why do you need to compile though? I thought UEK2 shipped with DRBD.
> Or has that not been made available for Oracle VM yet?
>
> Florian
>
> --
> Need help with High Availability?
> http://www.hastexo.com/now
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user
>


florian at hastexo

Apr 3, 2012, 5:13 AM

Post #7 of 9 (583 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

On Tue, Apr 3, 2012 at 1:36 PM, Dan Barker <dbarker [at] visioncomm> wrote:
>>> Eduardo, thank you for your input, but Virtual Box (workstation
>>> product) is a completely different animal than Oracle VM (bare-metal
>>> hypervisor). I don't get to choose the underlying storage, and OVM3 choses OCFS2.
>>>
>>>
>>>
>>> I guess I'll simply have to try it out and see if DRBD will compile/run/etc.
>>
>> It will. However OCFS2 will only work on Protocol C (dual-Primary mode requires
>> synchronous replication by definition), so your original plan of using protocol
>> A or B is out.
>>
>> Why do you need to compile though? I thought UEK2 shipped with DRBD.
>> Or has that not been made available for Oracle VM yet?
>>
>> Florian
>>
>
> That sounds encouraging. Not having to compile will mean I don't have to locate all the dependencies.
>
> "UEK2 shipped with DRBD." How would I check?

"modinfo drbd; which drbdadm", or yum search drbd.

> I have no need for dual-primary and I can't see how OCFS2 can even tell if the underlying block device is dual-primary or single-primary.

Because the device wouldn't be writable on one of the nodes, which
OCFS2 is sure to choke on?

> I believe Eduardo was using dual-primary. I simply need to do a warm-failover (manual) in the event of a disaster.

Probably need to do OCFS2-on-iSCSI with iSCSI-on-DRBD then.

Florian

--
Need help with High Availability?
http://www.hastexo.com/now
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


dbarker at visioncomm

Apr 3, 2012, 7:49 AM

Post #8 of 9 (596 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

>>>> Eduardo, thank you for your input, but Virtual Box (workstation
>>>> product) is a completely different animal than Oracle VM (bare-metal
>>>> hypervisor). I don't get to choose the underlying storage, and OVM3 choses OCFS2.
>>>>
>>>> I guess I'll simply have to try it out and see if DRBD will compile/run/etc.

>>> It will. However OCFS2 will only work on Protocol C (dual-Primary
>>> mode requires synchronous replication by definition), so your
>>> original plan of using protocol A or B is out.
>>>
>>> Why do you need to compile though? I thought UEK2 shipped with DRBD.
>>> Or has that not been made available for Oracle VM yet?
>>>
>>> Florian

>> That sounds encouraging. Not having to compile will mean I don't have to locate all the dependencies.
>>
>> "UEK2 shipped with DRBD." How would I check?

> "modinfo drbd; which drbdadm", or yum search drbd.

I had already tried drbdadm --help and got "command not found". Modinfo came up with "could not find module drbd". yum requires a repository to do anything. I tried http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/ but drbd wasn't there. So I tried to compile. I found gcc, make and flex, but am coming up empty on linux-headers-2.6.32.21-45xen. I don't believe I can build a drbd without the headers. Any ideas? (I also posted the question on the Oracle VM forum at forums.oracle.com)

My commands:
./configure --with-km --prefix /usr --sysconfdir /etc --localstatedir /var
make clean all

Result:
Userland tools build was successful.
SORRY, kernel makefile not found.
You need to tell me a correct KDIR,
Or install the neccessary kernel source packages.

(as expected). Any ideas on finding kernel headers?

>> I have no need for dual-primary and I can't see how OCFS2 can even tell if the underlying block device is dual-primary or single-primary.

> Because the device wouldn't be writable on one of the nodes, which
> OCFS2 is sure to choke on?

Well, before a failure, xen won't even be running. I don't kwow if OCFS2 will need write permissions on a volume not mounted. I'd expect not. The stand-by node will bring up drbd secondary and xen not at all. Failover will include assuring the primary node is down or at least offline, 'drbdadm primary r0' at the warm site, and then start xen (which will mount the OCFS2 volume as part of its initialization - at least that's what I'm guessing will work. I can't test it until I can get the kernel modules compiled.

>> I believe Eduardo was using dual-primary. I simply need to do a warm-failover (manual) in the event of a disaster.

> Probably need to do OCFS2-on-iSCSI with iSCSI-on-DRBD then.
> Florian

I don't see the need for that level of complexity. Before we'd do that many levels of misdirection on a single host (SAS/Raid/DRBD/IET/OVM/OCFS2), I think a SAN would be a better choice. My goal is to get this running in a single box (per site).

Dan

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


dbarker at visioncomm

Apr 4, 2012, 5:57 AM

Post #9 of 9 (599 views)
Permalink
Re: drbd storage for Oracle VM [In reply to]

>>>>> Eduardo, thank you for your input, but Virtual Box (workstation
>>>>> product) is a completely different animal than Oracle VM (bare-metal
>>>>> hypervisor). I don't get to choose the underlying storage, and OVM3
choses OCFS2.
>>>>>
>>>>> I guess I'll simply have to try it out and see if DRBD will
compile/run/etc.

>>>> It will. However OCFS2 will only work on Protocol C (dual-Primary
>>>> mode requires synchronous replication by definition), so your
>>>> original plan of using protocol A or B is out.
>>>>
>>>> Why do you need to compile though? I thought UEK2 shipped with DRBD.
>>>> Or has that not been made available for Oracle VM yet?
>>>>
>>>> Florian

>>> That sounds encouraging. Not having to compile will mean I don't have to
locate all the dependencies.
>>>
>>> "UEK2 shipped with DRBD." How would I check?

>> "modinfo drbd; which drbdadm", or yum search drbd.

> I had already tried drbdadm --help and got "command not found". Modinfo
came up with "could not find module drbd". yum requires a repository to do
anything. I tried
http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/ but drbd
wasn't there. So I tried to compile. I found gcc, make and flex, but am
coming up empty on linux-headers-2.6.32.21-45xen. I don't believe I can
build a drbd without the headers. Any ideas? (I also posted the question on
the Oracle VM forum at forums.oracle.com)

> My commands:
> ./configure --with-km --prefix /usr --sysconfdir /etc --localstatedir /var
> make clean all

> Result:
> Userland tools build was successful.
> SORRY, kernel makefile not found.
> You need to tell me a correct KDIR,
> Or install the neccessary kernel source packages.

> (as expected). Any ideas on finding kernel headers?

>>> I have no need for dual-primary and I can't see how OCFS2 can even tell
if the underlying block device is dual-primary or single-primary.

>> Because the device wouldn't be writable on one of the nodes, which
>> OCFS2 is sure to choke on?

> Well, before a failure, xen won't even be running. I don't kwow if OCFS2
will need write permissions on a volume not mounted. I'd expect not. The
stand-by node will bring up drbd secondary and xen not at all. Failover will
include assuring the primary node is down or at least offline, 'drbdadm
primary r0' at the warm site, and then start xen (which will mount the OCFS2
volume as part of its initialization - at least that's what I'm guessing
will work. I can't test it until I can get the kernel modules compiled.

>>> I believe Eduardo was using dual-primary. I simply need to do a
warm-failover (manual) in the event of a disaster.

>> Probably need to do OCFS2-on-iSCSI with iSCSI-on-DRBD then.
>> Florian

> I don't see the need for that level of complexity. Before we'd do that
many levels of
> misdirection on a single host (SAS/Raid/DRBD/IET/OVM/OCFS2), I think a SAN
would be a
> better choice. My goal is to get this running in a single box (per site).

I got an answer from forums.oracle.com. There is a development platform for
this sort of thing. Since I heard nothing from the DRBD community, I'll
assume I'm in new territory. I'll report back after I build a drbd kernel
rpm (or the 3.1.1 Oracle VM comes out with drbd built in - it's to use the
new UEK2 kernel).

REF: https://forums.oracle.com/forums/thread.jspa?threadID=2368799


_______________________________________________
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.