- local list=$(comma_list $(osts_nodes))
- local big=$(do_nodes $list grep "cache" /proc/cpuinfo | \
- awk '{sum+=$4} END{print sum}')
- local min_avail=$(lctl get_param -n osc.*[oO][sS][cC]-[^M]*.kbytesavail | \
- sort -n | head -1)
- local large_file_size=$((big * 2))
-
- log "cache size on OSS is $big KB"
- log "large file size is $large_file_size KB"
- log "min available OST size is $min_avail KB"
-
- [ $min_avail -le $large_file_size ] && \
- skip "the minimum available OST size needs > $large_file_size KB" && \
+
+ free_min_max
+ local cache_size=$(do_facet ost$((MAXI+1)) \
+ "awk '/cache/ {sum+=\\\$4} END {print sum}' /proc/cpuinfo")
+ local large_file_size=$((cache_size * 2))
+
+ echo "OSS cache size: $cache_size KB"
+ echo "Large file size: $large_file_size KB"
+
+ [ $MAXV -le $large_file_size ] && \
+ skip_env "max available OST size needs > $large_file_size KB" && \