From: Nathaniel Clark Date: Wed, 24 Apr 2013 14:10:25 +0000 (-0400) Subject: LU-2831 tests: Sync MDS data also when doing sync_all_data X-Git-Tag: 2.3.65~50 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=77aa3f2e38e94d1ac83afa2f7ef18a1ca9de92af;p=fs%2Flustre-release.git LU-2831 tests: Sync MDS data also when doing sync_all_data The quota data was differing in sanity-quota/35 before and after restart because the MDS data had not synced prior to checking the values. This patch forces MDS data to sync whenever sync_all_data is called. This should prevent this error from recurring here and elsewhere. Signed-off-by: Nathaniel Clark Change-Id: Ic2e1dafefbc2d83fc281d76845504c4547dd0694 Reviewed-on: http://review.whamcloud.com/6142 Tested-by: Hudson Reviewed-by: Jian Yu Reviewed-by: Niu Yawei Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b881b9e..743d017 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1793,7 +1793,10 @@ wait_update_facet() { } sync_all_data() { - do_node $(osts_nodes) "lctl set_param -n osd*.*OS*.force_sync 1" 2>&1 | + do_nodes $(comma_list $(mdts_nodes)) \ + "lctl set_param -n osd*.*MDT*.force_sync 1" + do_nodes $(comma_list $(osts_nodes)) \ + "lctl set_param -n osd*.*OS*.force_sync 1" 2>&1 | grep -v 'Found no match' }