Esempio n. 1
0
 def _create_multipath(self, disks):
     if not self.has_multipath:
         self.multipath_path = dmsetup.multipath(self.multipath_name, disks)
         self.has_multipath = True
         LOG.debug("Virtman: create multipath according connection %s:" %
                   disks)
     return self.multipath_path
Esempio n. 2
0
 def create_multipath(multipath_name, disks):
     """
     :type multipath_name: str
     :type disks: list
     :rtype : str
     """
     LOG.debug("Virtman: create multipath according connection %s:" %
               disks)
     multipath_path = dmsetup.multipath(multipath_name, disks)
     return multipath_path