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: Difference between revisions
From Obsolete Lustre Wiki
Jump to navigationJump to search
Line 16: | Line 16: | ||
* Configure netconsole in 2.6 kernel | * Configure netconsole in 2.6 kernel | ||
** 1) add this line "netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]" in your boot command line. | ** 1) add this line "netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]" in your boot command line. | ||
** 2) bootup the netconsole machine. | |||
** 3) 2.6 netconsole has been setup. | ** 3) 2.6 netconsole has been setup. | ||
* Configure conman over netconsole, download conman from ftp://www.clusterfs.com/pub/conman | * Configure conman over netconsole, download conman from ftp://www.clusterfs.com/pub/conman |
Revision as of 02:54, 11 May 2007
Netconsole with UDP
- Configure netconsole for 2.4 redhat kernel (redhat 9.0)
- 1) build the 2.4 redhat kernel with netconsole patch (in rh-2.4 series), make sure build with NETCONSOLE option.
- 2) bootup the netconsole machine with this kernel, make sure netdump rpm is installed in this machine.
- 3) edit /etc/sysconfig/netdump of this machine just like
- LOCALPORT=6666
- DEV=eth0
- NETDUMPADDR=192.168.1.223 #remote server machine (host)
- NETDUMPPORT=6666
- NETDUMPMACADDR=00:08:74:96:6D:9B #remote server eth address
- IDLETIMEOUT=100
- 4) add a user accout named netdump in your host machine, then start netdump service in that netconsole machine.
- 5) netconsole has been setup.
- Configure netconsole in 2.6 kernel
- 1) add this line "netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]" in your boot command line.
- 2) bootup the netconsole machine.
- 3) 2.6 netconsole has been setup.
- Configure conman over netconsole, download conman from ftp://www.clusterfs.com/pub/conman
- 1) edit your /etc/conman.conf, make sure you have set SERVER logdir, SERVER logfile, SERVER port,
* add following line in /etc/conman.conf * NETCONSOLE name="netconsole" dev="client1_ip_address:client1_port" (clientX is netconsole machine) * NETCONSOLE1 name="netconsole" dev="client2_ip_address:client2_port" * ............ * 2) start conmand server conmand * 3) start conman netconsole with 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
There is a netconsole patch available that supports kernel level network logging over UDP. More information and a link to the kernel patches can be found at: [1].
- LinuxDebugging