WARNING: This is the _old_ Lustre wiki, and it is in the process of being retired. The information found here is all likely to be out of date. Please search the new wiki for more up to date information.

Netconsole

From Obsolete Lustre Wiki
Revision as of 11:39, 10 November 2009 by Docadmin (talk | contribs)
Jump to navigationJump to search

Netconsole with UDP

To configure netconsole on the 2.6 kernel, complete the following steps.

1. Add the following line to your boot command:

netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]

2. Boot the netconsole machine.

To configure conman over netconsole, complete the following steps. Italic text 1. Download conman from http://downloads.lustre.org/public/tools/conman/

2. Edit /etc/conman.conf to set the SERVER logdir, SERVER logfile, and SERVER port.

3. Add the following to /etc/conman.conf, where clientX is the netconsole machine:

NETCONSOLE name="netconsole" dev="client1_ip_address:client1_port"
NETCONSOLE1 name="netconsole" dev="client2_ip_address:client2_port"
............

4.Start the conmand server by entering

conmand

5. Start the conman netconsole by entering:

conman -d conmand_server_ip:conmand_server_port NETCONSOLEx

4. Input sysrq command (& + S + sysrq_command) over conman netconsole, you will get the result in conman netconsole. OK to replace with something like the following? To see results in the conman netconsole, enter the sysrq command <& + S _ sysrq>.

Note: A netconsole patch is available that supports kernel level network logging over UDP. More information and a link to the kernel patches can be found at: http://lwn.net/2001/0927/a/netconsole.php3.