Ejemplo n.º 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)
Ejemplo n.º 2
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)
Ejemplo n.º 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)
Ejemplo n.º 4
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)