drbd: set allow-two-primaries=yes
So that we can do live migrations.
This commit is contained in:
@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user