diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 9fdfe30a0bd875b46b5c32a3dcd1b936e7c43d8b..b239e67c6396d679d70df69c63ae78cdb21398c4 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -5886,6 +5886,11 @@ class LUExportInstance(LogicalUnit): snap_disks = [] + # set the disks ID correctly since call_instance_start needs the + # correct drbd minor to create the symlinks + for disk in instance.disks: + self.cfg.SetDiskID(disk, src_node) + try: for disk in instance.disks: # new_dev_name will be a snapshot of an lvm leaf of the one we passed