Skip to contentSkip to conversation

kdump not writing any vmcore

DISCUSSION Gallus 2 participants 7 messages Feb 10, 2010 – Feb 12, 2010 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Gallus

author
#0 lore raw

Hello

What can be any reasons why kdump isn't writing vmcore file in /var/crash/[date] directory? I have a box on which Kexec is property
configured: /etc/init.d/kdump status shows: "Kdump is operational". There is no message like: "disabling kdump" in dmesg. Instead, there are messages: "kdump: kexec: loaded kdump kernel" and "kdump: started up".

After the random system-wide error occurs, kdump reacts correctly. New kernel is started, and there are messages like: "Memory for crash kernel (0x0 to 0x0) notwithin permissible range" (this is correct, secondary kernel starts with different kernel command line, without the crashkernel option, because it doesn't load any third kernel, as we know) and "disabling kdump". But, there is no message: "kdump:
saved a vmcore to /var/crash/*" and no vmcore is saved.

When I tested exactly the same box with manually triggered system crash (echo c >/proc/sysrq....), everything was the same except that the "kdump: saved a vmcore to /var/crash/*" was emitted and the vmcore was saved.

Regards,
Gallus

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#1 lore raw
Quoted 17 lines · Gallus

Hello

What can be any reasons why kdump isn't writing vmcore file in /var/crash/[date] directory? I have a box on which Kexec is property
configured: /etc/init.d/kdump status shows: "Kdump is operational". There is no message like: "disabling kdump" in dmesg. Instead, there are messages: "kdump: kexec: loaded kdump kernel" and "kdump: started up".

After the random system-wide error occurs, kdump reacts correctly. New kernel is started, and there are messages like: "Memory for crash kernel (0x0 to 0x0) notwithin permissible range" (this is correct, secondary kernel starts with different kernel command line, without the crashkernel option, because it doesn't load any third kernel, as we know) and "disabling kdump". But, there is no message: "kdump:
saved a vmcore to /var/crash/*" and no vmcore is saved.

Quoted 8 lines

When I tested exactly the same box with manually triggered system crash (echo c >/proc/sysrq....), everything was the same except that the "kdump: saved a vmcore to /var/crash/*" was emitted and the vmcore was saved.

Regards,
Gallus

To answer that fully, we'd really need the output of the console during the kdump kernel boot/capture process. This will most likely be an initramfs problem (or possibly a kernel issue). We'll be better able to tell with the console log
Neil

Quoted 4 lines

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#2 lore raw
Quoted 5 lines · Neil Horman

To answer that fully, we'd really need the output of the console during the kdump kernel boot/capture process. This will most likely be an initramfs problem (or possibly a kernel issue). We'll be better able to tell with the console log
Neil

It shouldn't be the initramfs problem, because when I test it with sysrq-trigger, it works fine. Right?

I'm thinking that it can be some driver problem, which is causing repeated kernel-panic. I'm planning to use NFS and/or FTP. How do you think? Is this the right way to try to avoid possibly corrupted system parts?

Does someone have any experience with such problems? Is there something left to try out?

Regards,
Gallus

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#5 lore raw
Quoted 9 lines · Neil Horman
Quoted 3 lines · Gallus

Does someone have any experience with such problems? Is there something left to try out?

Yes, this is what I fix all the time.  despite your comments above, a console log would still be helpful.  It will give us the bet pointer to whats going wrong.
Neil

Can you share some thoughts about such problems? Any suggestion may be helpful.

Gallus

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#6 lore raw

PS. I can add some overall information about the box:

a) Modules loaded:
kernel: Modules linked in: dm_mirror dm_multipath dm_mod video sbs backlight i2c_ec i2c_core button battery asus_acpi ac parport_pc lp parport serio_raw ide_cd bnx2 cdrom pcspkr cciss sd_mod scsi_mod ext3 jbd uhci_hcd ohci_hcd ehci_hcd

b) Some Oops that occurred (I'm not sure whether it was in crash kernel or in normal one):
kernel: list_add corruption. prev->next should be e70ee78c, but was 5474646e
kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 00000084 kernel: printing eip:
kernel: c06097b2
kernel: *pde = 1cf15001

Oops: 0000 [#1]

kernel: SMP
kernel: last sysfs file: /devices/pci0000:00/0000:00:00.0/class
kernel: CPU: 0
kernel: EIP: 0060:[<c06097b2>] Tainted: G VLI
kernel: EFLAGS: 00210046 (2.6.18-92.el5PAE #1)
kernel: EIP is at do_page_fault+0x1d1/0x5d3
kernel: eax: d2ef6000 ebx: 00000000 ecx: d2ef6064 edx: 0000000d
kernel: esi: 00000000 edi: d2ef6094 ebp: 00000000 esp: d2ef6044

c) hardware:
Quad-Core AMD Opteron(tm) Processor 8356, model 2, stepping 3

Gallus

Quoted 12 lines · Gallus
Quoted 9 lines · Neil Horman
Quoted 3 lines · Gallus

Does someone have any experience with such problems? Is there something left to try out?

Yes, this is what I fix all the time.  despite your comments above, a console log would still be helpful.  It will give us the bet pointer to whats going wrong.
Neil

Quoted 4 lines

Can you share some thoughts about such problems? Any suggestion may be helpful.

Gallus

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#7 lore raw
Quoted 25 lines · Gallus

PS. I can add some overall information about the box:

a) Modules loaded:
kernel: Modules linked in: dm_mirror dm_multipath dm_mod video sbs backlight i2c_ec i2c_core button battery asus_acpi ac parport_pc lp parport serio_raw ide_cd bnx2 cdrom pcspkr cciss sd_mod scsi_mod ext3 jbd uhci_hcd ohci_hcd ehci_hcd

b) Some Oops that occurred (I'm not sure whether it was in crash kernel or in normal one):
kernel: list_add corruption. prev->next should be e70ee78c, but was 5474646e
kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 00000084 kernel: printing eip:
kernel: c06097b2
kernel: *pde = 1cf15001

Oops: 0000 [#1]

kernel: SMP
kernel: last sysfs file: /devices/pci0000:00/0000:00:00.0/class
kernel: CPU: 0
kernel: EIP: 0060:[<c06097b2>] Tainted: G VLI
kernel: EFLAGS: 00210046 (2.6.18-92.el5PAE #1)
kernel: EIP is at do_page_fault+0x1d1/0x5d3
kernel: eax: d2ef6000 ebx: 00000000 ecx: d2ef6064 edx: 0000000d
kernel: esi: 00000000 edi: d2ef6094 ebp: 00000000 esp: d2ef6044

Quoted 5 lines

c) hardware:
Quad-Core AMD Opteron(tm) Processor 8356, model 2, stepping 3

Gallus

This helps not one bit. Theres not enough info here to determine what the cause (or even the location) of this corruption is. All it tells us is that a list in the kernel was corrupted. If that happened in the production kernel it would cause kdump to start. If it happened in the kdump kernel, it would explain why you never got a vmcore. But without the call stack, I can't even tell you what list this might have been. If we knew that, we might be able to dredge bugzilla to search for simmilar bugs, and if they were fixed.

Currently, about all I can tell you from this is that 2.6.18-92 is a bit of an old kernel. If you're working with RHEL, I'd update to whatever the latest release is (I don't recall the exact number, -128 perhaps). I know that since that kernel I have fixed a few quad core opteron specific bugs (although those were primarily hangs in kdump, not oopses). Worth a shot though.

Better still, open a support issue with Red Hat, and this bug will most likely find its way to me, then we can get you a fix in a more timely manner :)

Neil

Quoted 13 lines · Gallus
Quoted 12 lines · Neil Horman
Quoted 9 lines · Gallus
Quoted 4 lines

Does someone have any experience with such problems? Is there something left to try out?

Yes, this is what I fix all the time.  despite your comments above, a console log would still be helpful.  It will give us the bet pointer to whats going wrong.
Neil

Quoted 4 lines
Quoted 4 lines

Can you share some thoughts about such problems? Any suggestion may be helpful.

Gallus

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#8 lore raw
In reply to Gallus
Quoted 12 lines · Gallus
Quoted 9 lines · Neil Horman
Quoted 3 lines · Gallus

Does someone have any experience with such problems? Is there something left to try out?

Yes, this is what I fix all the time.  despite your comments above, a console log would still be helpful.  It will give us the bet pointer to whats going wrong.
Neil

Quoted 3 lines

Can you share some thoughts about such problems? Any suggestion may be helpful.

Gallus

I can, but its just blind guessing until you provide details of the error (preferably in the form of a log file from the time the kdump kernel booted).

It could be that the kernel has a legitimate bug that it encounters during boot up, and never makes it to the initramfs. That would be evident if the end of a console log showed a panic with a backtrace

It could be that your nic driver isn't initalizing the ethernet card properly, and you're not sending frames, so you can't establish a connection to your ftp/ssh/nfs/etc server. A console log would show dhcp or other network errors in this case

It could be that the kernel was unable to parse the elf headers that kexec wrote into the kernel before the crash, and as such, can't deliver the core to any user space apps for reconding, this would show up as write errors on the console.

The list goes on. But the central theme is that we can't diagnose it without at minimum a console log.

Neil

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec