Resolves: bz808299

Copy comments from the bz:
In rhel7 onwards, we will require dump target filesystem to be mounted in first kernel so that kdump can make use of same mount options instead of trying to come up with its own mount options. This should make mounting that file system safer. Also it reduces complexity in kdump code.

That will mean one needs to put an entry for the dump file system in /etc/fstab
so that after reboot when kdump service starts, it can find the dump target and build initramfs instead of failing.
This commit is contained in:
Dave Young 2012-08-31 10:05:37 +08:00
parent d965a9e105
commit ffc5ece53b
2 changed files with 19 additions and 10 deletions

View File

@ -17,6 +17,9 @@ For most configurations, you can simply review the examples provided
in the stock /etc/kdump.conf. in the stock /etc/kdump.conf.
.B NOTE: .B NOTE:
For filesystem dump the dump target must be mounted before building
kdump initramfs.
kdump.conf only affects the behavior of the initramfs. Please read the kdump.conf only affects the behavior of the initramfs. Please read the
kdump operational flow section of kexec-kdump-howto.txt in the docs to better kdump operational flow section of kexec-kdump-howto.txt in the docs to better
understand how this configuration file affects the behavior of kdump. understand how this configuration file affects the behavior of kdump.

View File

@ -324,6 +324,11 @@ for any reason the init process is started on the root file system, only a
simple copying of the vmcore from /proc/vmcore to /var/crash/$DATE/vmcore will simple copying of the vmcore from /proc/vmcore to /var/crash/$DATE/vmcore will
be preformed. be preformed.
For both local filesystem and nfs dump the dump target must be mounted before
building kdump initramfs. That means one needs to put an entry for the dump
file system in /etc/fstab so that after reboot when kdump service starts,
it can find the dump target and build initramfs instead of failing.
Raw partition Raw partition
Raw partition dumping requires that a disk partition in the system, at least Raw partition dumping requires that a disk partition in the system, at least
@ -336,14 +341,15 @@ to commit this change to your kdump initrd.
Dedicated file system Dedicated file system
Similar to raw partition dumping, you can format a partition with the file Similar to raw partition dumping, you can format a partition with the file
system of your choice, leaving it unmounted during normal operation. Again, system of your choice, Again, it should be at least as large as the amount
it should be at least as large as the amount of memory in the system. Assuming of memory in the system. Assuming it should be at least as large as the
/dev/sda3 has been formatted ext4, specify 'ext4 /dev/sda3' in kdump.conf, amount of memory in the system. Assuming /dev/sda3 has been formatted ext4,
and a vmcore file will be copied onto the file system after it has been specify 'ext4 /dev/sda3' in kdump.conf, and a vmcore file will be copied
mounted. Dumping to a dedicated partition has the advantage that you can dump onto the file system after it has been mounted. Dumping to a dedicated
multiple vmcores to the file system, space permitting, without overwriting partition has the advantage that you can dump multiple vmcores to the
previous ones, as would be the case in a raw partition setup. Restart the file system, space permitting, without overwriting previous ones, as would
kdump service via '/sbin/systemctl restart kdump.service' to commit this change to be the case in a raw partition setup. Restart the kdump service via
'/sbin/systemctl restart kdump.service' to commit this change to
your kdump initrd. Note that for local file systems ext4 and ext2 are your kdump initrd. Note that for local file systems ext4 and ext2 are
supported as dumpable targets. Kdump will not prevent you from specifying supported as dumpable targets. Kdump will not prevent you from specifying
other filesystems, and they will most likely work, but their operation other filesystems, and they will most likely work, but their operation
@ -368,8 +374,8 @@ once the mount is properly configured, specify it in kdump.conf, via
'nfs nfs-server.example.com:/dump'. The server portion can be specified either 'nfs nfs-server.example.com:/dump'. The server portion can be specified either
by host name or IP address. Following a system crash, the kdump initrd will by host name or IP address. Following a system crash, the kdump initrd will
mount the NFS mount and copy out the vmcore to your NFS server. Restart the mount the NFS mount and copy out the vmcore to your NFS server. Restart the
kdump service via '/sbin/systemctl restart kdump.service' to commit this change to kdump service via '/sbin/systemctl restart kdump.service' to commit this change
your kdump initrd. to your kdump initrd.
Remote system via ssh/scp Remote system via ssh/scp