diff --git a/drivers/BaseISCSI.py b/drivers/BaseISCSI.py index 67388dc1..71e43ddc 100755 --- a/drivers/BaseISCSI.py +++ b/drivers/BaseISCSI.py @@ -421,6 +421,10 @@ def attach(self, sr_uuid): if self.mpath == 'true': self.mpathmodule.refresh(self.dconf['SCSIid'], 0) dev_path = os.path.join("/dev/disk/by-scsid", self.dconf['SCSIid']) + if not os.path.exists(dev_path): + # LUN may have been added to the SAN since the session was created + iscsilib.refresh_luns(self.targetIQN, self.target) + if not os.path.exists(dev_path): raise xs_errors.XenError('ConfigSCSIid')