Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-10988 lfsck: load object attr when prepare LFSCK request
[fs/lustre-release.git]
/
lustre
/
tests
/
lfsck-performance.sh
diff --git
a/lustre/tests/lfsck-performance.sh
b/lustre/tests/lfsck-performance.sh
index
3b6cc7d
..
f6d7a12
100644
(file)
--- a/
lustre/tests/lfsck-performance.sh
+++ b/
lustre/tests/lfsck-performance.sh
@@
-137,10
+137,7
@@
test_0() {
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
- reformat_external_journal
- add ${SINGLEMDS} $(mkfs_opts ${SINGLEMDS} ${MDT_DEVNAME}) --backfstype \
- $(facet_fstype ${SINGLEMDS}) --reformat ${MDT_DEVNAME} \
- $(mdsvdevname 1) >/dev/null || error "Fail to reformat the MDS!"
+ format_mdt $(facet_number $SINGLEMDS)
for ((i = $MINCOUNT; i <= $MAXCOUNT; i = $((i * FACTOR)))); do
local nfiles=$((i - BCOUNT))
for ((i = $MINCOUNT; i <= $MAXCOUNT; i = $((i * FACTOR)))); do
local nfiles=$((i - BCOUNT))
@@
-182,10
+179,7
@@
test_1() {
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
- reformat_external_journal
- add ${SINGLEMDS} $(mkfs_opts ${SINGLEMDS} ${MDT_DEVNAME}) --backfstype \
- $(facet_fstype ${SINGLEMDS}) --reformat ${MDT_DEVNAME} \
- $(mdsvdevname 1) > /dev/null || error "Fail to reformat the MDS"
+ format_mdt $(facet_number $SINGLEMDS)
for ((i = $MINCOUNT_REPAIR; i <= $MAXCOUNT_REPAIR;
i = $((i * FACTOR)))); do
for ((i = $MINCOUNT_REPAIR; i <= $MAXCOUNT_REPAIR;
i = $((i * FACTOR)))); do
@@
-236,11
+230,7
@@
test_2() {
i = $((i * FACTOR)))); do
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
i = $((i * FACTOR)))); do
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
- reformat_external_journal
- add ${SINGLEMDS} $(mkfs_opts ${SINGLEMDS} ${MDT_DEVNAME}) \
- --backfstype $(facet_fstype ${SINGLEMDS}) --reformat \
- ${MDT_DEVNAME} $(mdsvdevname 1) > /dev/null ||
- error "Fail to reformat the MDS!"
+ format_mdt $(facet_number $SINGLEMDS)
echo "+++ start to create for ${i} files set at: $(date) +++"
lfsck_create_nfiles ${i} 0 ${NTHREADS} 1 ||
echo "+++ start to create for ${i} files set at: $(date) +++"
lfsck_create_nfiles ${i} 0 ${NTHREADS} 1 ||
@@
-278,10
+268,7
@@
test_3() {
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
stopall
do_rpc_nodes $(facet_active_host $SINGLEMDS) load_modules_local
- reformat_external_journal
- add ${SINGLEMDS} $(mkfs_opts ${SINGLEMDS} ${MDT_DEVNAME}) --backfstype \
- $(facet_fstype ${SINGLEMDS}) --reformat ${MDT_DEVNAME} \
- $(mdsvdevname 1) > /dev/null || error "Fail to reformat the MDS"
+ format_mdt $(facet_number $SINGLEMDS)
for ((i = $inc_count; i <= $BASE_COUNT; i = $((i + inc_count)))); do
local nfiles=$((i - BCOUNT))
for ((i = $inc_count; i <= $BASE_COUNT; i = $((i + inc_count)))); do
local nfiles=$((i - BCOUNT))
@@
-931,8
+918,7
@@
test_7c() {
run_test 7c "namespace LFSCK performance (repairing bad FID-in-dirent) for DNE"
test_8() {
run_test 7c "namespace LFSCK performance (repairing bad FID-in-dirent) for DNE"
test_8() {
- [ $MDSCOUNT -lt 2 ] &&
- skip "We need at least 2 MDSes for this test" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
[ $INCFACTOR -gt 25 ] && INCFACTOR=25
[ $INCFACTOR -gt 25 ] && INCFACTOR=25