23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16.3 Isolating and Debugging Failures<br />

In the case of <strong>Lustre</strong> failures, you need to capture information about what is<br />

happening at runtime. For example some tests may cause kernel panics, depending<br />

on your <strong>Lustre</strong> configuration. By default, debugging is not enabled in the POSIX test<br />

suite. You need to turn on the VSX debugging options. There are two debug options<br />

of note in the config file tetexec.cfg, under the TESTROOT directory:<br />

VSX_DBUG_FILE=output_file<br />

If you are running the test under UML with hostfs support, use a file on the hostfs as<br />

the debug output file. In the case of a crash, the debug output can be safely written<br />

to the debug file.<br />

Note – The default value for this option puts the debug log under your test<br />

directory in /mnt/lustre/TESTROOT, which is not useful in case of kernel panic<br />

and <strong>Lustre</strong> (or your machine) crashes.<br />

VSX_DBUG_FLAGS=xxxxx<br />

The following example makes VSX output all debug messages:<br />

VSX_DBUG_FLAGS=t:d:n:f:F:L:l,2:p:P<br />

VSX is based on the TET framework which provides common libraries for VSX. You<br />

can also have TET print out verbose debug messages by inserting the -T option<br />

when running the tests. For example:<br />

$ tcc -Tall5 -e -s scen.exec -a /mnt/lustre/TESTROOT -p 2>&1 | tee<br />

/tmp/POSIX-command-line-output.log<br />

VSX prints out detailed messages in the report for failed tests. This includes the test<br />

strategy, operations done by the test suite, and the failures. Each subtest (for<br />

instance, 'access', 'create') usually contains many single tests. The report shows<br />

exactly which single testing fails. In this case, you can find more information directly<br />

from the VSX source code.<br />

Chapter 16 POSIX 16-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!