All of lore.kernel.org
 help / color / mirror / Atom feed
* Help regarding renaming of vmcore-incomplete to vmcore
@ 2017-05-02  7:19 Dumslicer Halo
  2017-05-08  1:41 ` Atsushi Kumagai
  0 siblings, 1 reply; 4+ messages in thread
From: Dumslicer Halo @ 2017-05-02  7:19 UTC (permalink / raw)
  To: kexec

Hi I am a university student, and have made some changes to
makedumpfile to produce a gzipped output of core dump. The issue I'm
facing is that the output i get from makedumpfile (after it completes
successfully) is vmcore-incomplete.gzip.

But this file is not being renamed to vmcore.gzip (even thought the
dump the complete as I verified it by loading into CRASH utility). Can
someone please point out to me the changes I should make to solve this
bug (or  can point to the code where this renaming is done).

Thanks and Regards,

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Help regarding renaming of vmcore-incomplete to vmcore
  2017-05-02  7:19 Help regarding renaming of vmcore-incomplete to vmcore Dumslicer Halo
@ 2017-05-08  1:41 ` Atsushi Kumagai
  2017-05-12  9:18   ` Dumslicer Halo
  0 siblings, 1 reply; 4+ messages in thread
From: Atsushi Kumagai @ 2017-05-08  1:41 UTC (permalink / raw)
  To: Dumslicer Halo; +Cc: kexec

Hello,

>Hi I am a university student, and have made some changes to
>makedumpfile to produce a gzipped output of core dump. The issue I'm
>facing is that the output i get from makedumpfile (after it completes
>successfully) is vmcore-incomplete.gzip.
>
>But this file is not being renamed to vmcore.gzip (even thought the
>dump the complete as I verified it by loading into CRASH utility). Can
>someone please point out to me the changes I should make to solve this
>bug (or  can point to the code where this renaming is done).

makedumpfile doesn't have such renaming mechanism, it just name the dump
as user specify. I guess "vmcore-incomplete" you said is came from kexec-tools.
For example, kexec-tools of RHEL7 generate the code below for dump-capture kernel:

   110     echo "kdump: saving vmcore"
   111     $CORE_COLLECTOR /proc/vmcore $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore-incomplete || return 1
   112     mv $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore-incomplete $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore
   113     sync

$CORE_COLLECTOR is makedumpfile, so the code generate "vmcore-incomplete"
by makedumpfile and rename it to vmcore by mv.
If you want "vmcore.gzip", you should just specify vmcore.gzip for
makedumpfile.


Thanks,
Atsushi Kumagai


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help regarding renaming of vmcore-incomplete to vmcore
  2017-05-08  1:41 ` Atsushi Kumagai
@ 2017-05-12  9:18   ` Dumslicer Halo
  2017-05-18  7:58     ` Atsushi Kumagai
  0 siblings, 1 reply; 4+ messages in thread
From: Dumslicer Halo @ 2017-05-12  9:18 UTC (permalink / raw)
  To: Atsushi Kumagai; +Cc: kexec

I can't find this file in my system? Can you help me with it?

On 8 May 2017 at 07:11, Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> wrote:
> Hello,
>
>>Hi I am a university student, and have made some changes to
>>makedumpfile to produce a gzipped output of core dump. The issue I'm
>>facing is that the output i get from makedumpfile (after it completes
>>successfully) is vmcore-incomplete.gzip.
>>
>>But this file is not being renamed to vmcore.gzip (even thought the
>>dump the complete as I verified it by loading into CRASH utility). Can
>>someone please point out to me the changes I should make to solve this
>>bug (or  can point to the code where this renaming is done).
>
> makedumpfile doesn't have such renaming mechanism, it just name the dump
> as user specify. I guess "vmcore-incomplete" you said is came from kexec-tools.
> For example, kexec-tools of RHEL7 generate the code below for dump-capture kernel:
>
>    110     echo "kdump: saving vmcore"
>    111     $CORE_COLLECTOR /proc/vmcore $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore-incomplete || return 1
>    112     mv $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore-incomplete $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore
>    113     sync
>
> $CORE_COLLECTOR is makedumpfile, so the code generate "vmcore-incomplete"
> by makedumpfile and rename it to vmcore by mv.
> If you want "vmcore.gzip", you should just specify vmcore.gzip for
> makedumpfile.
>
>
> Thanks,
> Atsushi Kumagai
>

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Help regarding renaming of vmcore-incomplete to vmcore
  2017-05-12  9:18   ` Dumslicer Halo
@ 2017-05-18  7:58     ` Atsushi Kumagai
  0 siblings, 0 replies; 4+ messages in thread
From: Atsushi Kumagai @ 2017-05-18  7:58 UTC (permalink / raw)
  To: Dumslicer Halo; +Cc: kexec

>I can't find this file in my system? Can you help me with it?

In the first place, I don't know how you got core dump and what
kind of environment you tested with, so it's difficult to give
pointed advice.

If you explain what you did in order from first in detail,
I could be of your help.

Thanks,
Atsushi Kumagai

>On 8 May 2017 at 07:11, Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> wrote:
>> Hello,
>>
>>>Hi I am a university student, and have made some changes to
>>>makedumpfile to produce a gzipped output of core dump. The issue I'm
>>>facing is that the output i get from makedumpfile (after it completes
>>>successfully) is vmcore-incomplete.gzip.
>>>
>>>But this file is not being renamed to vmcore.gzip (even thought the
>>>dump the complete as I verified it by loading into CRASH utility). Can
>>>someone please point out to me the changes I should make to solve this
>>>bug (or  can point to the code where this renaming is done).
>>
>> makedumpfile doesn't have such renaming mechanism, it just name the dump
>> as user specify. I guess "vmcore-incomplete" you said is came from kexec-tools.
>> For example, kexec-tools of RHEL7 generate the code below for dump-capture kernel:
>>
>>    110     echo "kdump: saving vmcore"
>>    111     $CORE_COLLECTOR /proc/vmcore $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore-incomplete || return 1
>>    112     mv $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore-incomplete $_mp/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore
>>    113     sync
>>
>> $CORE_COLLECTOR is makedumpfile, so the code generate "vmcore-incomplete"
>> by makedumpfile and rename it to vmcore by mv.
>> If you want "vmcore.gzip", you should just specify vmcore.gzip for
>> makedumpfile.
>>
>>
>> Thanks,
>> Atsushi Kumagai
>>
>
>_______________________________________________
>kexec mailing list
>kexec@lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/kexec


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-18  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02  7:19 Help regarding renaming of vmcore-incomplete to vmcore Dumslicer Halo
2017-05-08  1:41 ` Atsushi Kumagai
2017-05-12  9:18   ` Dumslicer Halo
2017-05-18  7:58     ` Atsushi Kumagai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.