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.

debug_daemon stop<br />

Completely shuts down the debug_daemon operation and flushes the file output.<br />

Otherwise, debug_daemon is shut down as part of <strong>Lustre</strong> file system shutdown<br />

process. Users can restart debug_daemon by using start command after each stop<br />

command issued.<br />

This is an example using debug_daemon with the interactive mode of lctl to dump<br />

debug logs to a 10 MB file.<br />

#~/utils/lctl<br />

To start daemon to dump debug_buffer into a 40 MB /tmp/dump file.<br />

lctl > debug_daemon start /trace/log 40<br />

To completely shut down the daemon.<br />

lctl > debug_daemon stop<br />

To start another daemon with an unlimited file size.<br />

lctl > debug_daemon start /tmp/unlimited<br />

The text message *** End of debug_daemon trace log *** appears at the<br />

end of each output file.<br />

23.2.2 Controlling the Kernel Debug Log<br />

Masks in /proc/sys/portals/subsystem_debug and<br />

/proc/sys/portals/debug controls the amount of information printed to the<br />

kernel debug logs. The subsystem_debug mask controls the subsystems (example:<br />

obdfilter, net, portals, OSC, etc.) and the debug mask controls the debug types<br />

written out to the log (example: info, error, trace, alloc, etc.).<br />

To turn off <strong>Lustre</strong> debugging:<br />

sysctl -w lnet.debug=0<br />

To turn on full <strong>Lustre</strong> debugging:<br />

sysctl -w lnet.debug=-1<br />

To turn on logging of messages related to network communications:<br />

sysctl -w lnet.debug=net<br />

To turn on logging of messages related to network communications and existing<br />

debug flags:<br />

sysctl -w lnet.debug=+net<br />

23-6 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

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

Saved successfully!

Ooh no, something went wrong!