From: rread Date: Wed, 4 Sep 2002 09:11:28 +0000 (+0000) Subject: * stripe size in the config file was being ignored and only the default X-Git-Tag: 0.5.6~3 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ca8c31e146af0bd48438011df0d4d67156a77fe3;p=fs%2Flustre-release.git * stripe size in the config file was being ignored and only the default value of 64k was being used. Fixed this, but check your configs, as some of them are set to a very low stripe size (4096) for testing. --- diff --git a/lustre/utils/lconf b/lustre/utils/lconf index ca0745c..6d3c79d 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -55,11 +55,11 @@ config.xml Lustre configuration in xml format. config file is doing what it should be doing. (Implies -v) --nomod Skip load/unload module step. --nosetup Skip device setup/cleanup step. +--reformat Reformat all devices (without question) """ TODO = """ --ldap server LDAP server with lustre config database --makeldiff Translate xml source to LDIFF ---reformat Reformat all devices (will confirm) This are perhaps not needed: --lustre="src dir" Base directory of lustre sources. Used to search for modules. @@ -740,14 +740,17 @@ class LDLM(Module): class LOV(Module): def __init__(self,dom_node): Module.__init__(self, 'LOV', dom_node) - self.stripe_sz = get_attr_int(dom_node, 'stripesize', 65536) - self.stripe_off = get_attr_int(dom_node, 'stripeoffset', 0) - self.pattern = get_attr_int(dom_node, 'pattern', 0) self.mdsuuid = get_first_ref(dom_node, 'mds') mds= lookup(dom_node.parentNode, self.mdsuuid) self.mdsname = getName(mds) - self.devlist = get_all_refs(dom_node, 'osc') - self.stripe_cnt = len(self.devlist) + devs = dom_node.getElementsByTagName('devices') + if len(devs) > 0: + dev_node = devs[0] + self.stripe_sz = get_attr_int(dev_node, 'stripesize', 65536) + self.stripe_off = get_attr_int(dev_node, 'stripeoffset', 0) + self.pattern = get_attr_int(dev_node, 'pattern', 0) + self.devlist = get_all_refs(dev_node, 'osc') + self.stripe_cnt = len(self.devlist) def prepare(self): self.info(self.mdsuuid, self.stripe_cnt, self.stripe_sz, self.stripe_off, self.pattern,