<div dir="ltr">On 2 November 2015 at 09:09, Nan Xiao <span dir="ltr"><<a href="mailto:xiaonan830818@gmail.com" target="_blank">xiaonan830818@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I am trying to use crash on RHEL 7.0.After executing "crash" command,<br>
it outputs:<br>
<br>
    crash: cannot find booted kernel -- please enter namelist argument<br>
<br>
After referring to crash white paper<br>
(<a href="https://people.redhat.com/anderson/crash_whitepaper/" rel="noreferrer" target="_blank">https://people.redhat.com/anderson/crash_whitepaper/</a>),<br>
I know it needs vmlinux file. So I install "kernel-debuginfo" package:<br>
<br>
[root@localhost boot]# rpm -ql kernel-debuginfo | grep vmlinux<br>
/usr/lib/debug/lib/modules/3.10.0-123.el7.x86_64/vmlinux<br>
<br>
Then execute crash, it still prompts the same error:<br>
<br>
    crash: cannot find booted kernel -- please enter namelist argument<br>
<br>
I try to copy vmlinux file into /boot directory, but this error still exists.<br>
<br>
How can I fix this issue? Thanks very much in advance!<br>
<br>
Best Regards<br>
Nan Xiao<br>
<br>
--<br>
Crash-utility mailing list<br>
<a href="mailto:Crash-utility@redhat.com">Crash-utility@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/crash-utility" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/crash-utility</a><br>
</blockquote></div><br><br>Hi Nan,<br><br>You need to make sure that the version of kernel-debuginfo package must match with the version of running kernel.<br><br>Eg:<br># rpm -q kernel<br>kernel-3.10.0-229.el7.x86_64<br><br># uname -r<br>3.10.0-229.el7.x86_64<br><br># rpm -q kernel-debuginfo<br>package kernel-debuginfo is not installed<br><br># rpm -ivh kernel-debuginfo-common-x86_64-3.10.0-229.el7.x86_64.rpm <br>Preparing...                          ################################# [100%]<br>Updating / installing...<br>   1:kernel-debuginfo-common-x86_64-3.################################# [100%]<br><br># rpm -ivh kernel-debuginfo-3.10.0-229.el7.x86_64.rpm <br>Preparing...                          ################################# [100%]<br>Updating / installing...<br>   1:kernel-debuginfo-3.10.0-229.el7  ################################# [100%]<br><br># rpm -q kernel-debuginfo<br>kernel-debuginfo-3.10.0-229.el7.x86_64<br><br># crash -s<br><br>crash> sys<br>      KERNEL: /usr/lib/debug/lib/modules/3.10.0-229.el7.x86_64/vmlinux<br>    DUMPFILE: /dev/crash<br>        CPUS: 2<br>        DATE: Mon Nov  2 12:41:58 2015<br>      UPTIME: 00:13:18<br>LOAD AVERAGE: 0.37, 0.37, 0.18<br>       TASKS: 122<br>    NODENAME: localhost.localdomain<br>     RELEASE: 3.10.0-229.el7.x86_64<br>     VERSION: #1 SMP Thu Jan 29 18:37:38 EST 2015<br>     MACHINE: x86_64  (2790 Mhz)<br>      MEMORY: 2 GB<br><br>-- <br><div class="gmail_signature"><div dir="ltr">BKS<br></div></div>
</div></div>