On 12/09/13 at 04:45pm, Zhi Zou wrote:
Description of problem:
Kdump can dump the vmcore to remote nfs target if kdump was
configred by using nfs dump and nfs target was mounted before
building kdump initramfs. But if we use hostname to configure
nfs dump, Though the kdump service will start successfully, dump
will fail because there isn't a /etc/hosts file in initramfs.
Resolution:
copy /etc/hosts to initramfs.
I think it would be useful if we install /etc/hosts to kdump initramfs.
But what I concern is when the host ip changed in /etc/hosts, a rebuild
wouldn't be triggered, and in 2nd kernel, mount nfs server would fail.
Moreover, this seems like a dracut issue. dracut can mount nfs in
initramfs and it does need /etc/hosts to look up for static configured
hostname.
Signed-off-by: arthur <zzou(a)redhat.com>
---
mkdumprd | 1 +
1 file changed, 1 insertion(+)
diff --git a/mkdumprd b/mkdumprd
index 6de1755..d18882a 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -520,6 +520,7 @@ do
if [ "$config_opt" = "nfs" ]; then
add_dracut_module "nfs"
+ add_dracut_arg "--install" "/etc/hosts"
ssh dump is in the same situation here.
Thanks
WANG Chao
fi
add_mount "$config_val"
mkdir_save_path_fs $config_val
--
1.8.4.2
_______________________________________________
kexec mailing list
kexec(a)lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/kexec