[Crash-utility] crashdc: problem when running crash in kexec environment for SLES11

Louis Bouchard louis.bouchard at hp.com
Thu Oct 1 14:06:54 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,

Bernhard Walle a écrit :
> 
> I don't think so. I just tried to reproduce the problem here with
> openSUSE 11.1 (I have no SLES). In my case, I also got the "killed", but
> it was too less memory. I changed the reservation to be 256 MiB for the
> crashkernel, and now it works.
> 

For info, I'm doing the dev on an i686 VMware guest for now.

Bernhard found the SLES11 problem : memory was too tight to allow
crash/gdb to run.

I increased the mem reservation with the following :

crashkernel=256M-:128M at 16M

and got crash to run my commands. I have a smaller problem now. I'm
issueing the following commands to crash :

> !echo "### Crash Context Information" >> /var/crash/2009-09-25-11:31/crash-data-200909251134.txt
> !echo "crash> sys" >> /var/crash/2009-09-25-11:31/crash-data-200909251134.txt
> sys >> /var/crash/2009-09-25-11:31/crash-data-200909251134.txt
> !echo -n `date`;echo "### Preserved Kernel Ring Buffer"
> !echo "### Preserved Kernel Ring Buffer" >> /var/crash/2009-09-25-11:31/crash-data-200909251134.txt
> !echo "crash> log" >> /var/crash/2009-09-25-11:31/crash-data-200909251134.txt
> log >> /var/crash/2009-09-25-11:31/crash-data-200909251134.txt

I did include /bin/echo in the KDUMP_REQUIRED_PROGRAMS variable, but
crash still returns :

> crash: cannot open pipe: echo "### Crash Context Information" >> /root/var/crash/2009-10-01-15:51/crash-data-200910011552.txt
> crash: cannot open pipe: echo "crash> sys" >> /root/var/crash/2009-10-01-15:51/crash-data-200910011552.txt
> crash: cannot open pipe: echo -n `date`;echo "### Preserved Kernel Ring Buffer"
> crash: cannot open pipe: echo "### Preserved Kernel Ring Buffer" >> /root/var/crash/2009-10-01-15:51/crash-data-200910011552.txt

So it looks like the ! to shell out the "echo "... command doesn't work,
most probably because of the limited commands in the kexec environment.

Now I could try to chroot crash execution, but if I could find the
single command to add to KDUMP_REQUIRED_PROGRAMS to work around this, I
would prefer.

Can I beg for your deep knowledge another time ? ;-)

Kind regards and thanks for your precious help,

- --
Louis Bouchard, Linux Support Engineer
Team lead, EMEA Linux Competency Center,
Linux Ambassador, HP

HP Services                       1 Ave du Canada
HP France                         Z.A. de Courtaboeuf
louis.bouchard at hp.com             91 947 Les Ulis
http://www.hp.com/go/linux        France
http://www.hp.com/fr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrEt3kACgkQDvqokHrhnCzkGACfSTCD2GEzn+o06QM4p6w6Fnl2
a8AAniPNimmltKUzlqAFxwMNwIjzt4gs
=5vIn
-----END PGP SIGNATURE-----




More information about the Crash-utility mailing list