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(a)br.ibm.com