-
- # just because recovery is done doesn't mean we've finished
- # orphan cleanup. Wait for llogs to get synchronized.
- echo waiting for orphan cleanup...
- while [ true ]; do
- local -a sync=($(do_nodes $(comma_list $(osts_nodes)) \
- "$LCTL get_param obdfilter.*.mds_sync" | awk -F= ' {print $2}'))
- local con=1
- for ((i=0; i<${#sync[@]}; i++)); do
- [ ${sync[$i]} -eq 0 ] && continue
- # there is a not finished MDS-OST synchronization
- con=0
- break;
- done
- [ ${con} -eq 1 ] && break
- sleep 1
- done
-
- # let the statfs cache to get old enough.
- sleep 1
-