示例#1
0
def __map_explicit(devices):
    for device in devices:
        realpath = os.path.realpath(device)
        base = os.path.basename(realpath)
        util.SMlog("Adding mpath path '%s'" % base)
        try:
            mpath_cli.add_path(base)
        except:
            util.SMlog("WARNING: exception raised while attempting to add path %s" % base)
示例#2
0
文件: mpath_dmp.py 项目: euanh/sm
def __map_explicit(devices):
    for device in devices:
        realpath = os.path.realpath(device)
        base = os.path.basename(realpath)
        util.SMlog("Adding mpath path '%s'" % base)
        try:
            mpath_cli.add_path(base)
        except:
            util.SMlog(
                "WARNING: exception raised while attempting to add path %s" %
                base)
示例#3
0
def add(scsi_id):
    devices = scsiutil._genReverseSCSIidmap(scsi_id)
    for device in devices:
        realpath = os.path.realpath(device)
        base = os.path.basename(realpath)
        mpath_cli.add_path(base)
示例#4
0
文件: mpathutil.py 项目: yunleid/sm
def add(scsi_id):
    devices = scsiutil._genReverseSCSIidmap(scsi_id)
    for device in devices:
        realpath = os.path.realpath(device)
        base = os.path.basename(realpath)
        mpath_cli.add_path(base)