[DRBD-user] Enabling a stacked resource - HELP!

Matthieu Labbé matthieu.labbe at gmail.com
Thu Sep 15 00:46:36 CEST 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

2011/9/13 SlingPirate <sling.temp at googlemail.com>:
>
> Thank you for your input Lars, and apologies for my lack of understanding.  I
> have done some more reading and I am still somewhat unsure as how to approch
> this. I will try to re-explain what I'm after and I would be grateful for
> any more of your time and guidance.
>
> ********* On-site *********                    *** Off-site ***
> = NODE-1 =        = NODE-2 =                      = NODE-DR =
> =   VM-1   =        =   VM-1   =                      =   VM-1     =
> =   VM-2   =        =   VM-2   =                      =   VM-2     =
> =   VM-3   =        =   VM-3   =                      =   VM-3     =
> =   VM-4   =        =   VM-4   =                      =   VM-4     =
>
> Under normal conditions I would like to run VM-1 & VM-2 on NODE-1 while VM-3
> & VM-4 run on NODE-2.
>
> If NODE-1 dies NODE-2 runs all the VMs or visa-versa. If the site that
> NODE-1 & NODE-2 are based at blows up, NODE-3 is ready to run all VMs.
>
> I can use either block devices or image files for the VMs.
>
> What would you suggest would be the correct way to set this up?
>

You need more than one DRBD, for example:
DRBD0 for VM-1 & VM-2, Primary on NODE-1, Secondary on NODE-2
DRBD1 for VM-3 & VM-4, Primary on NODE-2, Secondary on NODE-1
or use one DRBD per VM as suggested before.

You only need dual primary if you want to do live migration between
NODE-1 and NODE-2 and in that case the classic 3-way setup doesn't
work.
If you don't need live migration, do classic 3-way setups.

Hope that help,
Matt.

--
Matthieu Labbé
http://mattlabbe.com/



More information about the drbd-user mailing list