Esempio n. 1
0
 def refresh_mapper_if_needed(primarydevice, SCSIid, currentcapacity):
     if "/dev/mapper/" in primarydevice \
        and get_outdated_size_devices(currentcapacity, [primarydevice]):
         mpath_cli.resize_map(SCSIid)
         if get_outdated_size_devices(currentcapacity, [primarydevice]):
             raise util.SMException("Failed to get the mapper dev to agree "
                                    "on the current capacity.")
Esempio n. 2
0
 def refresh_mapper_if_needed(primarydevice, SCSIid, currentcapacity):
     if "/dev/mapper/" in primarydevice \
        and get_outdated_size_devices(currentcapacity, [primarydevice]):
         mpath_cli.resize_map(SCSIid)
         if get_outdated_size_devices(currentcapacity, [primarydevice]):
             raise util.SMException("Failed to get the mapper dev to agree "
                                    "on the current capacity.")
Esempio n. 3
0
def resize(scsi_id):
    mpath_cli.resize_map(scsi_id)