Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
From: Satya Naik <satya.naik.dev@gmail.com>
To: 慕冬亮 <mudongliangabcd@gmail.com>
Cc: Subhashini Rao Beerisetty <subhashbeerisetty@gmail.com>,
	kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Re: Crash dump?
Date: Tue, 19 May 2020 22:16:59 +0530
Message-ID: <CA+k0pJQB+CxjAP9uvyeXaH3NMk8hscyd+74WZFei=fdajRAadA@mail.gmail.com> (raw)
In-Reply-To: <0BB74F40-8A61-4A12-A78B-621DC8E80A63@gmail.com>

[-- Attachment #1.1: Type: text/plain, Size: 1985 bytes --]

Hi ,

kdump need 2 kernel primary and secondary. Primary will be panicked, then
secondary will do capture coredump.

In boot loader/ kernel command line specify crashkernel=256MB or more,
ensure secondary kernel is small in size so that it can be boot within this
memory, oom should not happen.

Primary config:
CONFIG_SYSFS=y
CONFIG_KEXEC=y
CONFIG_DEBUG_INFO=y

Secondary Config:
CONFIG_PHYSICAL_START=0x100000
CONFIG_RELOCATABLE=y
CONFIG_CRASH_DUMP=y

load secondary kernel using
kexec -p  <>

After kernel panic, secondary kernel will be invoked. The secondary kernel
should save core from /proc/vmcore  and reboot again.

Refer kdump kernel docs :
https://www.kernel.org/doc/Documentation/kdump/kdump.txt

Thanks,
Satya

On Fri, May 15, 2020 at 11:17 PM 慕冬亮 <mudongliangabcd@gmail.com> wrote:

>
>
> On May 15, 2020, at 12:47 PM, Subhashini Rao Beerisetty <
> subhashbeerisetty@gmail.com> wrote:
>
> Hi all,
>
> In  Kernel, what needs to be configured to get the crash dump?
> Can someone clarify me with the sequence of steps to get the crash dump..
>
>
> Some materials for specific Linux distributions(e.g., Redhat, Debian):
>
> https://mudongliang.github.io/2018/07/02/debian-enable-kernel-dump.html
>
>
> https://www.bentasker.co.uk/documentation/linux/312-installing-and-configuring-kdump-on-debian-jessie
>
>
> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/kernel_administration_guide/kernel_crash_dump_guide
>
> https://fedoraproject.org/wiki/How_to_use_kdump_to_debug_kernel_crashes
>
>
>
> Thanks,
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

[-- Attachment #1.2: Type: text/html, Size: 3863 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 16:47 Subhashini Rao Beerisetty
2020-05-15 17:46 ` 慕冬亮
2020-05-19 16:46   ` Satya Naik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+k0pJQB+CxjAP9uvyeXaH3NMk8hscyd+74WZFei=fdajRAadA@mail.gmail.com' \
    --to=satya.naik.dev@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=mudongliangabcd@gmail.com \
    --cc=subhashbeerisetty@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git