Where is the original corefile stored in coreos?

398 views
Skip to first unread message

zhengli...@gmail.com

unread,
Dec 20, 2015, 11:11:26 PM12/20/15
to CoreOS User
Hi,

I used command "coredumpctl -o xxx.coredump dump" which is able to dump the original corefile, which maybe very large. But on production env., we may need to clean the disk which stores corefile periodicly. I am wondering where coreos stores the original corefile? In /var/lib/systemd/coredump, there only exists the zipped .xz file which is small, not the original one.

Thanks,
Zhenglin

zhengli...@gmail.com

unread,
Dec 23, 2015, 2:50:33 AM12/23/15
to CoreOS User
Anyone helps?

Stephan Z.

unread,
Dec 23, 2015, 3:48:25 AM12/23/15
to zhengli...@gmail.com, CoreOS User
Well, if it is compressed, uncompress the .xz file? I am not sure there are actually uncompressed original files.

- Stephan

Anyone helps?
--
You received this message because you are subscribed to the Google Groups "CoreOS User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coreos-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

zhengli...@gmail.com

unread,
Dec 23, 2015, 7:58:08 AM12/23/15
to CoreOS User, zhengli...@gmail.com
But I compared the uncompressed one from the .xz file with the coredumpctl dumped one, they are absolutely not the same core file.I think the uncompressed original files must be stored somewhere.

anton....@coreos.com

unread,
Jan 5, 2016, 11:05:57 AM1/5/16
to CoreOS User, zhengli...@gmail.com
Dear Zhenglin,

When you run "coredumpctl -o xxx.coredump dump" it dumps only first matching coredump. If you wish to dump specific core you have to use following command:

coredumpctl dump %SYSTEMD_MATCH% -o newdump


Please run "coredumpctl info %SYSTEMD_MATCH%" before dump to make sure you dump correct corefile.

In addition I've just compared corefiles which were extracted both ways ("xzcat coredump.xz > dump1" and "coredumpctl dump") and they are identical.

Let me know if you have any further questions.

Regards,
Anton

zhengli...@gmail.com

unread,
Jan 5, 2016, 8:54:14 PM1/5/16
to CoreOS User, zhengli...@gmail.com
Hi Anton,

Does coreos have mechanism to delete all the corefiles periodicly?

Thanks,
Zhenglin

Brandon Philips

unread,
Jan 6, 2016, 12:08:02 AM1/6/16
to zhengli...@gmail.com, CoreOS User
Zhenglin- By default systemd only uses 10% of the disk for coredumps. If you wish to change that see: http://www.freedesktop.org/software/systemd/man/coredump.conf.html

zhengli...@gmail.com

unread,
Jan 6, 2016, 12:18:41 AM1/6/16
to CoreOS User, zhengli...@gmail.com
Very helpful, thanks all for the help.
Reply all
Reply to author
Forward
0 new messages