Unable to generate vmcore file.

Rishi Agrawal rishi.b.agrawal at gmail.com
Wed Feb 19 09:56:26 EST 2014


Hi All,

I have been trying to debug a kernel crash in my module and need the vmcore
file for it.

It seems that I have correctly setup the machine (kdump etc.) but I am not
getting any core in "/var/crash"

I run "echo c > /proc/sysrq".

Its a virtual machine so I do not get a lot of info on console.

Following is the machine information and the configuration files.

Please help.

MEMINFO
^^^^^^^^^^

[root at localhost ~]# cat /proc/meminfo
MemTotal:         756460 kB

CRASH KERNEL
^^^^^^^^^^^^^^^^^^^^

[root at localhost ~]# cat /proc/iomem | grep crash -i
  26000000-35ffffff : Crash kernel


Kernel Version
^^^^^^^^^^^^^^

[root at localhost ~]# uname -r
3.13.3-201.fc20.x86_64

grub.cfg entry
^^^^^^^^^^^^^^

[root at localhost ~]# cat /boot/grub2/grub.cfg | grep crashkernel
    linux    /vmlinuz-3.13.3-201.fc20.x86_64 root=/dev/mapper/fedora-root
ro rd.lvm.lv=fedora/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root
rhgb quiet LANG=en_US.UTF-8 crashkernel=256M

kdump service status
^^^^^^^^^^^^^^^^^^^^^^

[root at localhost ~]# systemctl status kdump
kdump.service - Crash recovery kernel arming
   Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled)
   Active: active (exited) since Wed 2014-02-19 09:11:37 EST; 1min 39s ago
  Process: 667 ExecStart=/usr/bin/kdumpctl start (code=exited,
status=0/SUCCESS)
 Main PID: 667 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/kdump.service

kdump.conf file
^^^^^^^^^^^^^^^^^

[root at localhost ~]# cat /etc/kdump.conf
#dracut_args --omit-drivers "cfg80211 snd" --add-drivers "ext2 ext3"
path /var/crash
core_collector makedumpfile -c -d 31

Kernel boot cmdline
^^^^^^^^^^^^^^^^^^^

[root at localhost ~]# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.13.3-201.fc20.x86_64 root=/dev/mapper/fedora-root ro
rd.lvm.lv=fedora/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root
rhgb quiet LANG=en_US.UTF-8 crashkernel=256M

RPMs installed
^^^^^^^^^^^^^^^^^
[root at localhost ~]# rpm -qa | grep kernel | grep 13
kernel-debuginfo-3.13.3-201.fc20.x86_64
kernel-debuginfo-common-x86_64-3.13.3-201.fc20.x86_64
kernel-devel-3.13.3-201.fc20.x86_64
kernel-3.13.3-201.fc20.x86_64

-- [root at localhost ~]# rpm -qa | grep kexec
kexec-tools-2.0.4-18.fc20.x86_64


[root at localhost ~]# rpm -qa | grep kdump
system-config-kdump-2.0.14-1.fc20.noarch

Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140219/ca7bf82d/attachment.html 


More information about the Kernelnewbies mailing list