Re: [PATCH] Netdump for review and testing -- preliminary version

From: Attilio Rao <attilio_at_freebsd.org>
Date: Wed, 29 Sep 2010 18:10:42 +0200
2010/9/29 Sergey Kandaurov <pluknet_at_gmail.com>:
> [just don't know what namely need to test, so]
>
> All made according to your instructions.
> The only way I could trigger netdump was
> to run its ddb command by hand. Neither
> debug.kdb.enter nor debug.kdb.panic don't do it.

You probabilly need to use KDB_UNATTENDED.

> Some numbers and output (bit verbose
> but again don't know what need to show here)
> Entered through debug.kdb.panic, thus Panicstring.
> db> netdump
>
> -----------------------------------
> netdump in progress. searching for server.. dumping to xx.xxx.xx.xx
> (00:1a:64:d3:4f:20)
> -----------------------------------
> Physical memory: 2026 MB
> Dumping 1154 MB: 1139 1123 1107 1091 1075 1059 1043 1027 1011 995 979
> 963 947 931 915 899 883 867 851 835 819 803 787 771 755 739 723 707
> 691 675 659 643 627 611 595 579 563 547 531 515 499 483 467 451 435
> 419 403 387 371 355 339 323 307 291 275 259 243 227 211 195 179 163
> 147 131 115 99 83 67 51 35 19 3
> Dump complete
>
> netdump finished.
> cancelling normal dump
>
> # ls -hl /home/fooserv/crash/
> total 1182930
> -rw-r--r--  1 root  wheel   404B Sep 29 12:05 info.fooserv.0
> -rw-r--r--  1 root  wheel   1.1G Sep 29 12:05 vmcore.fooserv.0
>
> Dump from fooserv [xx.xxx.xx.xx]
>  Architecture: amd64
>  Architecture version: 2
>  Dump length: 1210687488B (1154 MB)
>  blocksize: 8192
>  Dumptime: Wed Sep 29 11:55:30 2010
>  Hostname: fooserv
>  Versionstring: FreeBSD 9.0-CURRENT #51: Wed Sep 29 07:18:24 UTC 2010
>    root_at_fooserv:/usr/obj/usr/src/sys/GENERIC
>  Panicstring: kdb_sysctl_panic
>  Header parity check: Pass
> Dump complete
>
> I tried to netdump a bit later again, but it couldn't find server, which
> runs though, and client traffic was seen on server-side (w/o reply).
> db> netdump
>
> -----------------------------------
> netdump in progress. searching for server.. . . . . . . . . . . .
> Failed to contact netdump server

Could you compile the kernel with NETDUMP_CLIENT_DEBUG and retry?
(Warning: the log may be huge, so you may be needing to log with serial line)

I will try to reproduce locally, if anything.

Thanks,
Attilio


>
> As for netdumpserv,
> it misses #include <sys/cdefs.h> before __FBSDID();
> I happily tested it on 7.3-amd64.

Yes, there are also other small style(9) nits that needs to be
addressed in the netdumpserver as well.

Thanks,
Attilio


-- 
Peace can only be achieved by understanding - A. Einstein
Received on Wed Sep 29 2010 - 14:10:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:07 UTC