Return-path: Received: from mx1.redhat.com ([66.187.233.31]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1JrCgp-00030M-Us for kexec@lists.infradead.org; Wed, 30 Apr 2008 13:49:44 +0000 Date: Wed, 30 Apr 2008 09:49:16 -0400 From: Neil Horman Subject: Re: kexec/ kdump setup problem Message-ID: <20080430134916.GA1233@hmsendeavour.rdu.redhat.com> References: <481702DA.3000009@in.ibm.com> <20080430001738.GA28606@hmsendeavour.rdu.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Mrunal Gawade Cc: Neil Horman , kexec@lists.infradead.org, "Sachin P. Sant" On Tue, Apr 29, 2008 at 07:14:36PM -0700, Mrunal Gawade wrote: > Hi, > > I just checked /sys/kernel/kexec_crash_loaded file after giving the kexec -p > command for loading panic kernel. And the value was 1. So it was loaded > successfully. I then crashed kernel and it hanged. I rebooted manually and > checked the value in the file again and it was "0". So across reboot it got > reset. So if I assume that the kernel loading was successful, the question > remains if it got loaded successfully at the designated space 65M@16M. How > do I know that? I am running SUSE 2.6.25 on a VMWare workstation. Does > running on VM could change any thing such as memory layout or anything > related to panic handling? > As Sachin mentioned, kexec_crash_loaded gets reset accross reboots. As for use on a VMWare guest, its behavior is anyones guess. Best thing I could think to do would be to add earlyprintk to the kdump kernel command line, and watch the serial console for mesages about where you're hanging (see Documentations/kernel-parameters.txt for details about earlyprintk). Neil > You specified taking a look at the /sys/kernel/kexec_crash_loaded file. Is > there a central document which documents all these error resolving > guidelines? Also I checked in the /var/log/messages and there is no message > related to this printed over there. > > > Thank you, > Mrunal > > On Tue, Apr 29, 2008 at 5:17 PM, Neil Horman wrote: > > > On Tue, Apr 29, 2008 at 03:40:13PM -0700, Mrunal Gawade wrote: > > > Thanks Sachin. > > > > > > The value over there is a "0" which means I have a failure. How do I > > > diagnose what is the problem? I was able to load a normal kernel and > > then > > > use "e" option to reboot into it. But crash dump kernel seemed to be > > giving > > > problem always. > > > > > > > > > Thank you, > > > Mrunal > > > > > > > check /var/log/messages, to see if there is any message there. It > > wouldn't hurt > > to enable debugging in the kexec binary either, although if the load is > > actually > > failing, I would think you would get something on stderr. First guess > > would be > > that you don't have a crashkernel area specified on your command line (or > > you > > do, and its reservation failed, which also will show up in the logs most > > likely) > > > > Neil > > > > > On Tue, Apr 29, 2008 at 4:13 AM, Sachin P. Sant > > wrote: > > > > > > > Mrunal Gawade wrote: > > > > > > > > > After I execute this command. Should I expect any prompt that kernel > > > > > loaded successfully? > > > > > > > > > Check the /sys/kernel/kexec_crash_loaded file. Value "1" means > > success. > > > > > > > > Thanks > > > > -Sachin > > > > > > > > > > > > > _______________________________________________ > > > kexec mailing list > > > kexec@lists.infradead.org > > > http://lists.infradead.org/mailman/listinfo/kexec > > > > > > -- > > /*************************************************** > > *Neil Horman > > *Software Engineer > > *Red Hat, Inc. > > *nhorman@redhat.com > > *gpg keyid: 1024D / 0x92A74FA1 > > *http://pgp.mit.edu > > ***************************************************/ > > -- /*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *nhorman@redhat.com *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec