summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5ace209)
sanity-lfsck tests 9a and 9b are failing consistently on
checking that speed limiting LFSCK takes less time than the
user defined maximum speed. We should ignore these errors
for now and print the layout or namespace to help understand
this issue.
Test-Parameters: trivial testgroup=review-zfs-part-1
Test-Parameters: testgroup=review-dne-part-2
Lustre-change: https://review.whamcloud.com/28588
Lustre-commit:
6754b09335508ca4d977d10d1d05b5befd1a8aad
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I64cac59edd456e6fd519961a4055130c8dbc8a4a
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/29293
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
# MAX_MARGIN = 1.2 = 12 / 10
local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
RUN_TIME1 * 12 / 10))
# MAX_MARGIN = 1.2 = 12 / 10
local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
RUN_TIME1 * 12 / 10))
- [ $SPEED -lt $MAX_SPEED ] ||
- error "(4) Got speed $SPEED, expected less than $MAX_SPEED"
+ [ $SPEED -lt $MAX_SPEED ] || {
+ $SHOW_LAYOUT
+ log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+ error_ignore LU-9887 "(4) Speed $SPEED, expected < $MAX_SPEED"
+ }
# adjust speed limit
local BASE_SPEED2=300
# adjust speed limit
local BASE_SPEED2=300
MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
(RUN_TIME1 + RUN_TIME2) * 12 / 10))
MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
(RUN_TIME1 + RUN_TIME2) * 12 / 10))
- [ $SPEED -lt $MAX_SPEED ] ||
- error "(6) Got speed $SPEED, expected less than $MAX_SPEED"
+ [ $SPEED -lt $MAX_SPEED ] || {
+ $SHOW_LAYOUT
+ log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+ log "speed2: $BASE_SPEED2 time2: $RUN_TIME2"
+ error_ignore LU-9887 "(6) Speed $SPEED, expected < $MAX_SPEED"
+ }
do_facet $SINGLEMDS \
$LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0
do_facet $SINGLEMDS \
$LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0
# MAX_MARGIN = 1.2 = 12 / 10
local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
RUN_TIME1 * 12 / 10))
# MAX_MARGIN = 1.2 = 12 / 10
local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
RUN_TIME1 * 12 / 10))
- [ $SPEED -lt $MAX_SPEED ] ||
- error "(8) Got speed $SPEED, expected less than $MAX_SPEED"
+ [ $SPEED -lt $MAX_SPEED ] || {
+ $SHOW_NAMESPACE
+ log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+ error_ignore LU-9887 "(8) Speed $SPEED, expected < $MAX_SPEED"
+ }
# adjust speed limit
local BASE_SPEED2=150
# adjust speed limit
local BASE_SPEED2=150
MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
(RUN_TIME1 + RUN_TIME2) * 12 / 10))
MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
(RUN_TIME1 + RUN_TIME2) * 12 / 10))
- [ $SPEED -lt $MAX_SPEED ] ||
- error "(10) Got speed $SPEED, expected less than $MAX_SPEED"
+ [ $SPEED -lt $MAX_SPEED ] || {
+ $SHOW_NAMESPACE
+ log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+ log "speed2: $BASE_SPEED2 time2: $RUN_TIME2"
+ error_ignore LU-9887 "(10) Speed $SPEED, expected < $MAX_SPEED"
+ }
do_facet $SINGLEMDS \
$LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0
do_facet $SINGLEMDS \
$LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0