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.

23.2.1 Debug Daemon Option to lctl<br />

The debug_daemon allows users to control the <strong>Lustre</strong> kernel debug daemon to<br />

dump the debug_kernel buffer to a user-specified file. This functionality uses a<br />

kernel thread on top of debug_kernel. debug_kernel, another sub-command of<br />

lctl, continues to work in parallel with debug_daemon command.<br />

Debug_daemon is highly dependent on file system write speed. File system writes<br />

operation may not be fast enough to flush out all the debug_buffer if <strong>Lustre</strong> file<br />

system is under heavy system load and continue to CDEBUG to the debug_buffer.<br />

Debug_daemon put ’DEBUG MARKER: Trace buffer full’ into the debug_buffer to<br />

indicate debug_buffer is overlapping itself before debug_daemon flush data to a file.<br />

Users can use lctl control to start or stop <strong>Lustre</strong> daemon from dumping the<br />

debug_buffer to a file. Users can also temporarily hold daemon from dumping the<br />

file. Use of the debug_daemon sub-command to lctl can provide the same<br />

function.<br />

23.2.1.1 lctl Debug Daemon Commands<br />

This section describes lctl daemon debug commands.<br />

$ lctl debug_daemon start [{file} {megabytes}]<br />

Initiates the debug_daemon to start dumping debug_buffer into a file. The file can<br />

be a system default file,as shown in /proc/sys/lnet/debug_path. The default<br />

patch after <strong>Lustre</strong> boots is /tmp/lustre-log-$HOSTNAME. Users can specify a new<br />

filename for debug_daemon to output debug_buffer. The new file name shows up<br />

in /proc/sys/lnet/debug_path. Megabytes is the limitation of the file size in<br />

MBs. The daemon wraps around and dumps data to the beginning of the file when<br />

the output file size is over the limit of the user-specified file size. To decode the<br />

dumped file to ASCII and order the log entries by time, run:<br />

lctl debug_file {file} > {newfile}<br />

The output is internally sorted by the lctl command using quicksort.<br />

Chapter 23 <strong>Lustre</strong> Debugging 23-5

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

Saved successfully!

Ooh no, something went wrong!