From: Arshad Hussain Date: Thu, 14 Jul 2016 10:19:58 +0000 (+0530) Subject: LU-8817 tests: Update 'min_ost_size' X-Git-Tag: 2.10.0-RC1~31 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=4eeff96e35c65ba818f604ead2efd66d26241dc0 LU-8817 tests: Update 'min_ost_size' On setup where MDS and client are on same node lctl get_param osc.*.kbytesavail returns the value from OSP. This patch updates function min_ost_size to use "lfs df" output instead of reading it from proc. 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 Test-Parameters: trivial testlist=sanity-benchmark,obdfilter-survey Signed-off-by: Arshad Hussain Change-Id: I07ddff43d7fc4b39b89bd998f96bf36776c5c048 Seagate-bug-id: MRP-3683 Reviewed-by: Ashish Purkar Reviewed-by: Elena V. Gryaznova Tested-by: Elena V. Gryaznova Reviewed-on: https://review.whamcloud.com/23685 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Ujjwal Lanjewar Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 60ccb5b..df39aed 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -7137,7 +7137,7 @@ is_sanity_benchmark() { } min_ost_size () { - $LCTL get_param -n osc.*.kbytesavail | sort -n | head -n1 + $LFS df | grep OST | awk '{print $4}' | sort -un | head -1 } #