X-Git-Url: https://git.whamcloud.com/gitweb?a=blobdiff_plain;f=lustre%2Futils%2Flmc;h=966ffdb164b8b2454c9eb07191a344ad9da52755;hb=fbb7ead129258897f5a5d5c9ce28d31fbbe5bca2;hp=092522bb63db99539c3a29f6dbdc273a48aeec9a;hpb=04ae51bbf09b278161924819be0a7c8727efbd41;p=fs%2Flustre-release.git diff --git a/lustre/utils/lmc b/lustre/utils/lmc index 092522b..966ffdb 100755 --- a/lustre/utils/lmc +++ b/lustre/utils/lmc @@ -897,7 +897,7 @@ def add_net(gen, lustre, options): if net_type in ('tcp','openib','ra'): port = get_option_int(options, 'port') - elif net_type in ('elan','gm','iib','vib','lo'): + elif net_type in ('elan', 'gm', 'iib', 'vib', 'lo', 'cray_kern_nal'): port = 0 else: print "Unknown net_type: ", net_type @@ -1410,13 +1410,18 @@ def get_fs_uuid(gen, lustre, mds_name, obd_name, mgmt_name): if not mds_uuid: mds_uuid = name2uuid(lustre, mds_name, tag='lmv', fatal=0) if not mds_uuid: - mds_uuid = name2uuid(lustre, mds_name, tag='cobd', fatal=1) + mds_uuid = name2uuid(lustre, mds_name, tag='cobd', fatal=0) + if not mds_uuid: + error("mds '" + mds_name + "' is not found") obd_uuid = name2uuid(lustre, obd_name, tag='ost', fatal=0) if not obd_uuid: obd_uuid = name2uuid(lustre, obd_name, tag='lov', fatal=0) if not obd_uuid: - obd_uuid = name2uuid(lustre, obd_name, tag='cobd', fatal=1) + obd_uuid = name2uuid(lustre, obd_name, tag='cobd', fatal=0) + if not obd_uuid: + error("ost '" + obd_name + "' is not found") + if mgmt_name: mgmt_uuid = name2uuid(lustre, mgmt_name, tag='mgmt', fatal=1) else: