示例#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.")
示例#2
0
文件: scsiutil.py 项目: geosharath/sm
 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.")
示例#3
0
文件: mpathutil.py 项目: yunleid/sm
def resize(scsi_id):
    mpath_cli.resize_map(scsi_id)