| Summary: | kdump; problems | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Paige Thompson <paigeadele> |
| Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | can't get kdump to work | ||
|
Description
Paige Thompson
2014-08-29 18:43:18 UTC
tried this with no luck: windowlicker ~ # cat /etc/local.d/kdump.start #!/bin/bash kexec -p /boot/kernel-genkernel-x86_64-3.16.1-gentoo initrd=/boot/initramfs-genkernel-x86_64-3.16.1-gentoo --append="root=/dev/mapper/root single irqpoll maxcpus=1 reset_devices" windowlicker ~ # cat /proc/cmdline BOOT_IMAGE=/kernel-genkernel-x86_64-3.16.1-gentoo root=/dev/mapper/root ro iommu=pt iommu=1 pci-stub.ids=1002:68b8,1002:aa58 crashkernel=2G@0 windowlicker ~ # I also tried 2048M earlier no luck with that either, I guess I can try crashkernel=999M and see what it does 512M max. also I read the doc a little more... makes a bit more sense alright so 512M .... loaded, checked for loaded, triggered sysrq... /dev/mapper/root vfs panic no busybox shell I'm vaguely familiar with this issue..... not really... it usually says it can't find /dev/mapper/root and drops to busy box shell :P scren cap http://i.imgur.com/GE08a3K.png I really want to believe... - I need a different kernel / initramfs because this one is too big. I mean sure it can fit 100M compressed ramdisk into 512M but where does it uncompress to? Maybe I'm wrong about that? I mean with 64M it still tried, no error and didn't even boot the kernel probably because it couldn't fit enough I really dont know I guess I'll have to look at the code... when I have time right now I am behind on actual real non "exploratory" work and its really late... - I really shouldn't be concerned with this since I have 64GB of RAM to play with will check back later notes: The syntax is: crashkernel=<range1>:<size1>[,<range2>:<size2>,...][@offset] range=start-[end] 'start' is inclusive and 'end' is exclusive. For example: crashkernel=512M-2G:64M,2G-:128M This would mean: 1) if the RAM is smaller than 512M, then don't reserve anything (this is the "rescue" case) 2) if the RAM size is between 512M and 2G (exclusive), then reserve 64M 3) if the RAM size is larger than 2G, then reserve 128M I think probably the thing to do would be to try to build another kernel/initramfs for the recovery just so I know for sure its the right size and all. - I'll look into how genkernel / grub and initramfs work more closely, to find out what parameters are needed (if not the kernel command line parameters) to get it to drop to a busybox shell - I'll see if theres any of this that the genkernel maintainer(s) might be interested in - I'll see if I can contact the editors of this Gentoo Wiki page since the information is a bit misleading. -Arch has a nice init / systemd wrapper it looks like, maybe that would be useful in the form of a package. I think along with a genkernel that produces a tiny kernel/initramfs in addition to one that produces a kernel / initramfs with debugging info and necesarry options enabled the two could be kinda complimentary. - Honestly I've wondered in the past how I can just get gentoo to drop to a busybox shell by default without giving it a root= parameter... more interesting stuff to investigate. |