From 4eeff96e35c65ba818f604ead2efd66d26241dc0 Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Thu, 14 Jul 2016 15:49:58 +0530 Subject: [PATCH] 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 --- lustre/tests/test-framework.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } # -- 1.8.3.1