Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
a0e902b3
Commit
a0e902b3
authored
16 years ago
by
Elena Gryaznova
Browse files
Options
Downloads
Patches
Plain Diff
b=14471
i=Adilger get rid of LPROC
parent
d4fd062b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lustre/tests/oos2.sh
+25
-13
25 additions, 13 deletions
lustre/tests/oos2.sh
lustre/tests/run-llog.sh
+6
-4
6 additions, 4 deletions
lustre/tests/run-llog.sh
lustre/tests/test-framework.sh
+0
-1
0 additions, 1 deletion
lustre/tests/test-framework.sh
with
31 additions
and
18 deletions
lustre/tests/oos2.sh
+
25
−
13
View file @
a0e902b3
...
@@ -2,8 +2,12 @@
...
@@ -2,8 +2,12 @@
set
-e
set
-e
export
PATH
=
`
dirname
$0
`
/../utils:
$PATH
LUSTRE
=
${
LUSTRE
:-
$(
cd
$(
dirname
$0
)
/..
;
echo
$PWD
)
}
.
$LUSTRE
/tests/test-framework.sh
export
PATH
=
$LUSTRE
/utils:
$PATH
LFS
=
${
LFS
:-
lfs
}
LFS
=
${
LFS
:-
lfs
}
LCTL
=
${
LCTL
:-
lctl
}
MOUNT
=
${
MOUNT
:-
$1
}
MOUNT
=
${
MOUNT
:-
$1
}
MOUNT
=
${
MOUNT
:-
/mnt/lustre
}
MOUNT
=
${
MOUNT
:-
/mnt/lustre
}
MOUNT2
=
${
MOUNT2
:-
$2
}
MOUNT2
=
${
MOUNT2
:-
$2
}
...
@@ -11,7 +15,7 @@ MOUNT2=${MOUNT2:-${MOUNT}2}
...
@@ -11,7 +15,7 @@ MOUNT2=${MOUNT2:-${MOUNT}2}
OOS
=
$MOUNT
/oosfile
OOS
=
$MOUNT
/oosfile
OOS2
=
$MOUNT2
/oosfile2
OOS2
=
$MOUNT2
/oosfile2
TMP
=
${
TMP
:-
/tmp
}
TMP
=
${
TMP
:-
/tmp
}
LOG
=
$TMP
/
oosfile
LOG
=
$TMP
/
$(
basename
$0
.sh
)
.log
LOG2
=
${
LOG
}
2
LOG2
=
${
LOG
}
2
SUCCESS
=
1
SUCCESS
=
1
...
@@ -20,13 +24,12 @@ rm -f $OOS $OOS2 $LOG $LOG2
...
@@ -20,13 +24,12 @@ rm -f $OOS $OOS2 $LOG $LOG2
sync
;
sleep
1
;
sync
# to ensure we get up-to-date statfs info
sync
;
sleep
1
;
sync
# to ensure we get up-to-date statfs info
STRIPECOUNT
=
`
cat
/proc/fs/lustre/lov/
*
/
activeobd |
head
-n
1
`
STRIPECOUNT
=
`
$LCTL
get_param
-n
lov.
*
.
activeobd |
head
-n
1
`
ORIGFREE
=
`
cat
/proc/fs/lustre/
llite
/
*
/
kbytesavail |
head
-n
1
`
ORIGFREE
=
`
$LCTL
get_param
-n
llite
.
*
.
kbytesavail |
head
-n
1
`
MAXFREE
=
${
MAXFREE
:-$((
400000
*
$STRIPECOUNT
))}
MAXFREE
=
${
MAXFREE
:-$((
400000
*
$STRIPECOUNT
))}
echo
STRIPECOUNT
=
$STRIPECOUNT
ORIGFREE
=
$ORIGFREE
MAXFREE
=
$MAXFREE
if
[
$ORIGFREE
-gt
$MAXFREE
]
;
then
if
[
$ORIGFREE
-gt
$MAXFREE
]
;
then
echo
"skipping out-of-space test on
$OSC
"
skip
"
$0
:
${
ORIGFREE
}
kB free gt MAXFREE
${
MAXFREE
}
kB, increase
$MAXFREE
(or reduce test fs size) to proceed"
echo
"reports
${
ORIGFREE
}
kB free, more tham MAXFREE
${
MAXFREE
}
kB"
echo
"increase
$MAXFREE
(or reduce test fs size) to proceed"
exit
0
exit
0
fi
fi
...
@@ -46,18 +49,23 @@ if wait $DDPID; then
...
@@ -46,18 +49,23 @@ if wait $DDPID; then
SUCCESS
=
0
SUCCESS
=
0
fi
fi
[
!
-s
"
$LOG
"
]
&&
error
"LOG file is empty!"
[
!
-s
"
$LOG2
"
]
&&
error
"LOG2 file is empty!"
if
[
"
`
cat
$LOG
$LOG2
|
grep
-c
'No space left on device'
`
"
-ne
2
]
;
then
if
[
"
`
cat
$LOG
$LOG2
|
grep
-c
'No space left on device'
`
"
-ne
2
]
;
then
echo
"ERROR: dd not return ENOSPC"
echo
"ERROR: dd not return ENOSPC"
SUCCESS
=
0
SUCCESS
=
0
fi
fi
# flush cache to OST(s) so avail numbers are correct
# flush cache to OST(s) so avail numbers are correct
sync
;
sleep
1
;
sync
sync
;
sleep
1
;
sync
for
OSC
in
/proc/fs/lustre/osc/
*
-osc-
*
;
do
for
OSC
in
`
$LCTL
get_param
-N
osc.
*
-osc-
*
.kbytesavail |
cut
-d
"."
-f1-2
`
;
do
AVAIL
=
`
cat
$OSC
/kbytesavail
`
AVAIL
=
`
$LCTL
get_param
-n
$OSC
.kbytesavail
`
GRANT
=
`
cat
$OSC
/cur_grant_bytes
`
GRANT
=
$((
`
$LCTL
get_param
-n
$OSC
.cur_grant_bytes
`
/
1024
))
[
$((
$AVAIL
-
$GRANT
/
1024
))
-lt
400
]
&&
OSCFULL
=
full
echo
-n
"
$(
echo
$OSC
|
cut
-d
"."
-f2
)
avl=
$AVAIL
grnt=
$GRANT
diff=
$((
$AVAIL
-
$GRANT
))
"
[
$((
$AVAIL
-
$GRANT
))
-lt
400
]
&&
OSCFULL
=
full
&&
echo
-n
" FULL"
echo
" "
done
done
# FIXME - This test reports false failures
# FIXME - This test reports false failures
...
@@ -69,7 +77,8 @@ done
...
@@ -69,7 +77,8 @@ done
if
[
-z
"
$OSCFULL
"
]
;
then
if
[
-z
"
$OSCFULL
"
]
;
then
echo
"no OSTs are close to full"
echo
"no OSTs are close to full"
grep
"[0-9]"
/proc/fs/lustre/osc/
*
-osc-
*
/
{
kbytesavail,cur
*
}
|tee
-a
$LOG
$LCTL
get_param
"osc.*-osc-*.kbytesavail"
$LCTL
get_param
"osc.*-osc-*.cur*"
SUCCESS
=
0
SUCCESS
=
0
fi
fi
...
@@ -82,6 +91,9 @@ if [ "$RECORDSOUT" -ne $(($FILESIZE / 1024)) ]; then
...
@@ -82,6 +91,9 @@ if [ "$RECORDSOUT" -ne $(($FILESIZE / 1024)) ]; then
SUCCESS
=
0
SUCCESS
=
0
fi
fi
echo
LOG LOG2 file
cat
$LOG
$LOG2
rm
-f
$OOS
$OOS2
rm
-f
$OOS
$OOS2
sync
;
sleep
1
;
sync
sync
;
sleep
1
;
sync
...
...
This diff is collapsed.
Click to expand it.
lustre/tests/run-llog.sh
+
6
−
4
View file @
a0e902b3
#!/bin/bash
#!/bin/bash
LUSTRE
=
${
LUSTRE
:-
$(
cd
$(
dirname
$0
)
/..
;
echo
$PWD
)
}
load_llog_test
()
{
load_llog_test
()
{
grep
-q
llog_test /proc/modules
&&
return
grep
-q
llog_test /proc/modules
&&
return
# Module should have been placed with other lustre modules...
# Module should have been placed with other lustre modules...
modprobe llog_test 2>&1 |
grep
-v
"llog_test not found"
modprobe llog_test 2>&1 |
grep
-v
"llog_test not found"
grep
-q
llog_test /proc/modules
&&
return
grep
-q
llog_test /proc/modules
&&
return
# But maybe we're running from a developer tree...
# But maybe we're running from a developer tree...
insmod
..
/obdclass/llog_test.ko
insmod
$LUSTRE
/obdclass/llog_test.ko
grep
-q
llog_test /proc/modules
&&
return
grep
-q
llog_test /proc/modules
&&
return
# This is for 2.4 kernels (deprecated!)
# This is for 2.4 kernels (deprecated!)
insmod
..
/obdclass/llog_test.o
insmod
$LUSTRE
/obdclass/llog_test.o
grep
-q
llog_test /proc/modules
&&
return
grep
-q
llog_test /proc/modules
&&
return
echo
"Unable to load llog_test module!"
echo
"Unable to load llog_test module!"
false
false
return
return
}
}
PATH
=
`
dirname
$0
`
:
`
dirname
$0
`
/..
/utils:
$PATH
PATH
=
`
dirname
$0
`
:
$LUSTRE
/utils:
$PATH
TMP
=
${
TMP
:-
/tmp
}
TMP
=
${
TMP
:-
/tmp
}
MGS
=
`
lctl dl |
awk
'/mgs/ { print $4 }'
`
MGS
=
`
lctl dl |
awk
'/mgs/ { print $4 }'
`
[
-z
"
$MGS
"
]
&&
echo
"no MGS available, skipping llog test"
&&
exit
0
[
-z
"
$MGS
"
]
&&
echo
"
$0
: SKIP:
no MGS available, skipping llog test"
&&
exit
0
load_llog_test
||
exit
0
load_llog_test
||
exit
0
lctl modules
>
$TMP
/ogdb-
`
hostname
`
lctl modules
>
$TMP
/ogdb-
`
hostname
`
...
...
This diff is collapsed.
Click to expand it.
lustre/tests/test-framework.sh
+
0
−
1
View file @
a0e902b3
...
@@ -115,7 +115,6 @@ init_test_env() {
...
@@ -115,7 +115,6 @@ init_test_env() {
export
CHECKSTAT
=
"
${
CHECKSTAT
:-
"checkstat -v"
}
"
export
CHECKSTAT
=
"
${
CHECKSTAT
:-
"checkstat -v"
}
"
export
FSYTPE
=
${
FSTYPE
:-
"ldiskfs"
}
export
FSYTPE
=
${
FSTYPE
:-
"ldiskfs"
}
export
NAME
=
${
NAME
:-
local
}
export
NAME
=
${
NAME
:-
local
}
export
LPROC
=
/proc/fs/lustre
export
LGSSD
=
${
LGSSD
:-
"
$LUSTRE
/utils/gss/lgssd"
}
export
LGSSD
=
${
LGSSD
:-
"
$LUSTRE
/utils/gss/lgssd"
}
[
"
$GSS_PIPEFS
"
=
"true"
]
&&
[
!
-f
"
$LGSSD
"
]
&&
\
[
"
$GSS_PIPEFS
"
=
"true"
]
&&
[
!
-f
"
$LGSSD
"
]
&&
\
export
LGSSD
=
$(
which lgssd
)
export
LGSSD
=
$(
which lgssd
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment