lctl get_param osc.*.*grant*
stack_trap "lfs df $DIR; lfs df -i $DIR; lctl get_param osc.*.*grant*"
- $LFS setstripe -N -E 2M -o 0,1 -E -1 -o 2 -N -E 2M -o 1,2 -E -1 -o 0 \
+ $LFS setstripe -N -E 2M -S1M -o 0,1 -E -1 -o 2 \
+ -N -E 2M -S1M -o 1,2 -E -1 -o 0 \
-N -E 3M -o 2,0 -E -1 -o 1 $DIR/$tdir/f0 ||
error "(0) Fail to create mirror file $DIR/$tdir/f0"
- $LFS setstripe -N -E 2M -o 0,1 -E -1 -o 2 -N -E 2M -o 1,2 -E -1 -o 0 \
+ $LFS setstripe -N -E 2M -S1M -o 0,1 -E -1 -o 2 \
+ -N -E 2M -S1M -o 1,2 -E -1 -o 0 \
-N -E 3M -o 2,0 -E -1 -o 1 $DIR/$tdir/f1 ||
error "(1) Fail to create mirror file $DIR/$tdir/f1"
- $LFS setstripe -N -E 2M -o 0,1 -E -1 -o 2 -N -E 2M -o 1,2 -E -1 -o 0 \
+ $LFS setstripe -N -E 2M -S1M -o 0,1 -E -1 -o 2 \
+ -N -E 2M -S1M -o 1,2 -E -1 -o 0 \
-N -E 3M -o 2,0 -E -1 -o 1 $DIR/$tdir/f2 ||
error "(2) Fail to create mirror file $DIR/$tdir/f2"
check_mount_and_prep
- $LFS setstripe -N -E 2M -o 0,1 -E -1 -o 2 -N -E 2M -o 1,2 -E -1 -o 0 \
+ $LFS setstripe -N -E 2M -S1M -o 0,1 -E -1 -o 2 \
+ -N -E 2M -S1M -o 1,2 -E -1 -o 0 \
-N -E 3M -o 2,0 -E -1 -o 1 $DIR/$tdir/f0 ||
error "(0) Fail to create mirror file $DIR/$tdir/f0"
check_mount_and_prep
- $LFS setstripe -N -E 2M -o 0,1 -E -1 -o 2 -N -E 2M -o 1,2 -E -1 -o 0 \
- $DIR/$tdir/f0 ||
+ $LFS setstripe -N -E 2M -S1M -o 0,1 -E -1 -o 2 \
+ -N -E 2M -S1M -o 1,2 -E -1 -o 0 $DIR/$tdir/f0 ||
error "(0) Fail to create mirror file $DIR/$tdir/f0"
local fid=$($LFS path2fid $DIR/$tdir/f0)
local count=$(do_facet mds1 $LCTL get_param -n \
mdd.$(facet_svc mds1).lfsck_layout |
awk '/^repaired_orphan/ { print $2 }')
- [ $count -eq 6 ] || error "(7) Expect 9 fixed on mds1, but got: $count"
+ [ $count -eq 6 ] || error "(7) Expect 6 fixed on mds1, but got: $count"
local name=$MOUNT/.lustre/lost+found/MDT0000/${fid}-R-0
count=$($LFS getstripe --mirror-count $name)