Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.5.1
-
None
-
3
-
9223372036854775807
Description
min_ost_size() function is defined as below and it gets the min kbytesavail among the attached OST's. This function is used twice under
1. ./lustre/tests/obdfilter-survey.sh
2. ./lustre/tests/sanity-benchmark.sh
$LCTL get_param -n osc.*.kbytesavail | sort -n | head -n1
However, it get the MDT 's kbytesavail (OSP) which is different.
# lctl get_param osc.*.kbytesavail
osc.lustre-OST0000-osc-MDT0000.kbytesavail=151004 << Reports this value.
osc.lustre-OST0000-osc-ffff880026480400.kbytesavail=151276
osc.lustre-OST0001-osc-MDT0000.kbytesavail=151004
osc.lustre-OST0001-osc-ffff880026480400.kbytesavail=151276
#
It should report kbytesavail for OST's , which is also matching lfs df output.
# lctl get_param osc.*.kbytesavail | grep -v MDT osc.lustre-OST0000-osc-ffff880026480400.kbytesavail=151276 osc.lustre-OST0001-osc-ffff880026480400.kbytesavail=151276 #
Output of 'lfs df'. 'Available' field only.
$ lfs df | grep OST | awk '{print $4}' | sort -n | head -n1
151276
Output with current code:
$ lctl get_param -n osc.*.kbytesavail | sort -n | head -n1 151004