drbd: set allow-two-primaries=yes

So that we can do live migrations.
This commit is contained in:
Dietmar Maurer
2015-06-17 08:57:32 +02:00
parent 4b6bcad485
commit 07af07cc16

View File

@ -180,6 +180,15 @@ sub alloc_image {
my ($rc, $res) = $hdl->create_resource($name, {});
check_drbd_rc($rc->[0]);
($rc, $res) = $hdl->set_drbdsetup_props(
{
target => "resource",
resource => $name,
type => 'neto',
'allow-two-primaries' => 'yes',
});
check_drbd_rc($rc->[0]);
($rc, $res) = $hdl->create_volume($name, $size, {});
check_drbd_rc($rc->[0]);