[Kimchi-devel] Doubt Bug 121401 - LTCTest: Build36: Takes time to list "Device path" for logical pool creation

Ramon Medeiros ramonn at linux.vnet.ibm.com
Thu Feb 5 17:54:13 UTC 2015


Hi Team,

i was debugging this bug and found that this query is taking so much time:

     pvs = subprocess.Popen(
         ["pvs", "--unbuffered", "--nameprefixes", "--noheadings",
          "-o", "vg_name", devNodePath],

devNodePath is a partition or a disk (e.g. /dev/sdc or /dev/mpathe1)

The goal in this command is search the volume group that this partition 
belongs to. On machines that has inconsistent volume groups, it takes a 
long time to retrieve the information.

Can i cache this information before querying all partitions? Or there is 
other way to query this info faster?


-- 
Ramon Nunes Medeiros
Kimchi Developer
Software Engineer - Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn at br.ibm.com




More information about the Kimchi-devel mailing list