Unnamed repository
Go to file
Chao Fan 86b251765e make kdump work when kernel crash after shutdown
In RHEL6, vmcore file was created if panic occurred during shutdown. This was
very useful for analyzing problems during the shutdown sequence.

However, in RHEL7, vmcore will not be created after kdump service is stopped.
This will make it very difficult to solve problems during shutodwn.

The reason why kdump fails to dump vmcore is kdump is stopped too early during
the power is off.

If add "DefaultDependencies=no" to the [Unit] of kdump.service , kdump will
not be stopped by systemd after shutdown command.

The manpage of systemd.unit about the DefaultDependencies:
If true, (the default), a few default dependencies will implicitly be created
for the unit. The actual dependencies created depend on the unit type. For
example, for service units, these dependencies ensure that the service is
started only after basic system initialization is completed and is properly
terminated on system shutdown.

The manpage about basic.target:
A special target unit covering basic boot-up.
systemd automatically adds dependencies of the types Requires= and After= for
this target unit to all services (except for those with DefaultDependencies=no).
Usually this should pull-in all mount points, swap devices, sockets, timers,
and path units and other basic initialization necessary for general purpose
daemons.

So "DefaultDependencies=no" can keep kdump not stopped too early. But to make
it start when power on, add After=basic.target will be better.
The systemd-devel mailed to me:  using DefaultDependencies=no but also
After=basic.target will make sure the service isn't started too early (but kept
until systemd's final process killing spree).

Signed-off-by: Chao Fan <cfan@redhat.com>
Acked-by: Minfei Huang <mhuang@redhat.com>
2015-06-03 21:10:34 +08:00
anaconda-addon Rename the subpackage kdump-anaconda-addon 2014-05-22 18:32:43 +08:00
.gitignore Release 2.0.8-8 2015-02-15 14:39:31 +08:00
98-kexec.rules udev-rules: Restart kdump service on cpu ADD/REMOVE events 2014-09-15 21:55:07 +08:00
dracut-kdump-capture.service Introduce kdump capture service 2014-08-05 13:13:32 +08:00
dracut-kdump-emergency.service kdump-emergency.service: executable uses absolute path 2014-08-28 13:05:56 +08:00
dracut-kdump-error-handler.service Introduce kdump error handling service 2014-08-05 13:13:32 +08:00
dracut-kdump-error-handler.sh Revert "execute kdump_post after do_default_action" 2015-04-08 15:50:16 +08:00
dracut-kdump.sh Revert "execute kdump_post after do_default_action" 2015-04-08 15:50:16 +08:00
dracut-module-setup.sh dracut-module-setup: Enhance kdump to support the bind mounted feature in Atomic 2015-04-21 10:58:30 +08:00
dracut-monitor_dd_progress monitor-dd-progress fix 2013-06-25 16:45:59 +08:00
fadump-howto.txt kdump: Add firmware-assisted dump howto document 2014-07-28 13:03:51 +08:00
kdump-dep-generator.sh kdump-dep-generator: Add kdump service dependencies on the fly 2014-04-17 11:27:31 +08:00
kdump-in-cluster-environment.txt Add fence_kdump support for generic clusters 2014-04-03 14:43:06 +08:00
kdump-lib-initramfs.sh Revert "execute kdump_post after do_default_action" 2015-04-08 15:50:16 +08:00
kdump-lib.sh Fix the warning if the target path is bind mount in Atomic 2015-04-21 10:58:00 +08:00
kdump.conf kdump.conf: renew the path section 2014-04-17 11:27:31 +08:00
kdump.conf.5 kdump.conf: renew the path section 2014-04-17 11:27:31 +08:00
kdump.service make kdump work when kernel crash after shutdown 2015-06-03 21:10:34 +08:00
kdump.sysconfig do not mount root twice 2012-07-12 11:15:35 +08:00
kdump.sysconfig.i386 Disable transparent hugepages in second kernel 2015-06-03 21:07:22 +08:00
kdump.sysconfig.ppc64 Disable transparent hugepages in second kernel 2015-06-03 21:07:22 +08:00
kdump.sysconfig.ppc64le Disable transparent hugepages in second kernel 2015-06-03 21:07:22 +08:00
kdump.sysconfig.s390x Disable transparent hugepages in second kernel 2015-06-03 21:07:22 +08:00
kdump.sysconfig.x86_64 Disable transparent hugepages in second kernel 2015-06-03 21:07:22 +08:00
kdumpctl kdump-lib: Add new function to judge the system is Atomic or not 2015-04-21 10:57:28 +08:00
kexec-kdump-howto.txt kdumpctl: adjust the boot dir if kernel is put in sub dir of /boot 2015-01-30 14:53:34 +08:00
kexec-tools-2.0.3-disable-kexec-test.patch Disable kexec_test 2012-01-21 16:56:07 +08:00
kexec-tools-2.0.7-kexec-ppc64-disabling-exception-handling-when-buildi.patch kexec/ppc64: disabling exception handling when building the purgatory 2014-09-15 21:55:02 +08:00
kexec-tools-2.0.7-kexec-ppc64-move-to-device-tree-version-17.patch kexec/ppc64: move to device tree version 17 2014-09-15 21:54:47 +08:00
kexec-tools-2.0.7-ppc64-kdump-Fix-ELF-header-endianess.patch ppc64/kdump: Fix ELF header endianess 2014-09-15 21:55:04 +08:00
kexec-tools-2.0.7-Provide-an-option-to-use-new-kexec-system-call.patch kexec: Provide an option to use new kexec system call 2014-09-10 10:44:24 +08:00
kexec-tools.spec Release 2.0.8-10 2015-04-21 11:15:50 +08:00
mkdumprd Filtered out "noauto" options in 2nd kernel fstab 2015-06-03 21:05:56 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
README README: Add a README file 2014-04-02 10:45:36 +08:00
rhcrashkernel-param rhcrashkernel-param: echo crashkernel=auto for rhel7 2012-08-20 15:01:47 +08:00
sources Release 2.0.8-8 2015-02-15 14:39:31 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00

Adding a patch to kexec-tools
=============================
There is a mailing list kexec@lists.fedoraproject.org where all the dicussion
related to fedora kexec-tools happen. All the patches are posted there for
inclusion and committed to kexec-tools after review.

So if you want your patches to be included in fedora kexec-tools package,
post these to kexec@lists.fedoraproject.org.

One can subscribe to list and browse through archives here.

https://admin.fedoraproject.org/mailman/listinfo/kexec