예제 #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)