3 # checks extended pmdagfs2 functionality (gfs2_tracepoints)
4 # Requires GFS2 support in the kernel and gfs2_utils installed,
5 # else the test will not run.
7 # Copyright (c) 2013 - 2014 Red Hat, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
14 # Attempt to set up the gfs2 pmda test enviroment
15 _gfs2_filesystem_support_tests
17 _gfs2_tracepoints_support_tests
18 _setup_gfs2_tracepoints false
20 # check for any loopback devices, cowardly abort this test if any exist
21 loopcount
=`$sudo losetup -a | wc -l`
22 [ $loopcount -eq 0 ] || _notrun
"System has loop devices already, bailing"
25 status
=1 # failure is the default!
26 trap "_cleanup $iam" 0 1 2 3 15
28 $sudo rm -fr $tmp.
*.dir
29 $sudo rm -f $tmp.
* $seq.full
32 # real QA test starts here
33 _prepare_pmda_install
$iam
34 _install_pmda | _filter_gfs2
36 _gfs2_sysfs_support_tests
39 _setup_gfs2_tracepoints true
42 echo "=== Check for successful install of pmda ===" |
tee -a $here/$seq.full
43 pminfo
-v gfs2
> /dev
/null || _fail
"install failed?"
46 echo "=== Check gfs2 metrics for all filesystems ===" |
tee -a $here/$seq.full
47 pminfo
-dfmtT gfs2.glstats | _gfs2_filter_pminfo
50 echo "=== Check gfs2 metrics for all filesystems ===" |
tee -a $here/$seq.full
51 pminfo
-dfmtT gfs2.tracepoints | _gfs2_filter_pminfo
54 echo "=== Check gfs2 metrics for all filesystems ===" |
tee -a $here/$seq.full
55 pminfo
-dfmtT gfs2.worst_glock | _gfs2_filter_pminfo
58 echo "=== Check gfs2 metrics for all filesystems ===" |
tee -a $here/$seq.full
59 pminfo
-dfmtT gfs2.control | _gfs2_filter_pminfo
62 echo "=== check functionality of pmstore (off) ===" |
tee -a $here/$seq.full
63 pmstore gfs2.control.tracepoints.all
0 |
sed \
64 -e 's/old value=[0-9]/OLD VALUE/'
67 echo "=== check functionality of pmstore (on) === " |
tee -a $here/$seq.full
68 pmstore gfs2.control.tracepoints.all
1 |
sed \
69 -e 's/old value=[0-9]/OLD VALUE/'
72 echo "=== Removing the GFS2 PMDA ===" |
tee -a $here/$seq.full