All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] howto enable auto-promote
@ 2015-05-20 10:41 Dietmar Maurer
  2015-05-20 12:01 ` Roland Kammerer
  0 siblings, 1 reply; 4+ messages in thread
From: Dietmar Maurer @ 2015-05-20 10:41 UTC (permalink / raw)
  To: drbd-dev

I am trying to live migrate a kvm based VM which uses a 
drbd9 image created with drbdmanage. But I get the 
following error:

[ 7268.069023] drbd vm-100-disk-1: Auto-promote failed: Multiple primaries not
allowed by config

So how can I enable the auto-promote feature?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Drbd-dev] howto enable auto-promote
  2015-05-20 10:41 [Drbd-dev] howto enable auto-promote Dietmar Maurer
@ 2015-05-20 12:01 ` Roland Kammerer
  2015-05-20 12:25   ` Dietmar Maurer
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Kammerer @ 2015-05-20 12:01 UTC (permalink / raw)
  To: drbd-dev

On Wed, May 20, 2015 at 12:41:08PM +0200, Dietmar Maurer wrote:
> I am trying to live migrate a kvm based VM which uses a 
> drbd9 image created with drbdmanage. But I get the 
> following error:
> 
> [ 7268.069023] drbd vm-100-disk-1: Auto-promote failed: Multiple primaries not
> allowed by config
> 
> So how can I enable the auto-promote feature?

Auto-promote is enabled. As you can see it failed, and it can only fail
if it was enabled... Your problem is the "multiple primaries" thingy.
Please tell us which drbdmanage commands you executed. The granularity
of "trying to live migrate" is a bit too coarse to reproduce the issue.
At least for me.

Regards, rck

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Drbd-dev] howto enable auto-promote
  2015-05-20 12:01 ` Roland Kammerer
@ 2015-05-20 12:25   ` Dietmar Maurer
  2015-05-20 12:48     ` Roland Kammerer
  0 siblings, 1 reply; 4+ messages in thread
From: Dietmar Maurer @ 2015-05-20 12:25 UTC (permalink / raw)
  To: Roland Kammerer, drbd-dev


> Auto-promote is enabled. As you can see it failed, and it can only fail
> if it was enabled... Your problem is the "multiple primaries" thingy.
> Please tell us which drbdmanage commands you executed. 

What commands? The idea is that 'auto-promote' works without any commands.
So I just start the kvm VM on the second node, which tries to open the device.

So I tried to enable allow-two-primaries somehow. Adding it 
to /etc/drbd.d/global_common.conf did not help. Then I tried:

# drbdadm net-options --allow-two-primaries=yes vm-100-disk-1

on each node, and it seems to work now.

So where is the right place to set allow-two-primaries for 
volumes managed by drbdmanage? 

And why is that disabled by default? 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Drbd-dev] howto enable auto-promote
  2015-05-20 12:25   ` Dietmar Maurer
@ 2015-05-20 12:48     ` Roland Kammerer
  0 siblings, 0 replies; 4+ messages in thread
From: Roland Kammerer @ 2015-05-20 12:48 UTC (permalink / raw)
  To: drbd-dev

On Wed, May 20, 2015 at 02:25:41PM +0200, Dietmar Maurer wrote:
> 
> > Auto-promote is enabled. As you can see it failed, and it can only fail
> > if it was enabled... Your problem is the "multiple primaries" thingy.
> > Please tell us which drbdmanage commands you executed. 
> 
> What commands? The idea is that 'auto-promote' works without any commands.
> So I just start the kvm VM on the second node, which tries to open the device.
> 
> So I tried to enable allow-two-primaries somehow. Adding it 
> to /etc/drbd.d/global_common.conf did not help. 

You probably forgot to "drbdadm adjust"...

> Then I tried:
> 
> # drbdadm net-options --allow-two-primaries=yes vm-100-disk-1
> 
> on each node, and it seems to work now.
> 
> So where is the right place to set allow-two-primaries for 
> volumes managed by drbdmanage? 

Passing these "generic drbd options" to drbdmanage is work in progress.
I expect it to be finished for the next release. 

> And why is that disabled by default? 
> 

Oh, because you really really have to know if two primiaries are a good
idea. Allowing multiple primaries is definitely nothing that should be
enabled by default.

Regards, rck

Again: Please no TO/CC, and please ask such questions on drbd-user.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-20 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 10:41 [Drbd-dev] howto enable auto-promote Dietmar Maurer
2015-05-20 12:01 ` Roland Kammerer
2015-05-20 12:25   ` Dietmar Maurer
2015-05-20 12:48     ` Roland Kammerer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.