Re: How to specify kernel version when restart kdump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> -----Original Messages-----
> From: wuzhouhui <wuzhouhui14@xxxxxxxxxxxxxxxx>
> Sent Time: 2019-03-29 10:06:06 (Friday)
> To: "centos mailing list" <centos@xxxxxxxxxx>
> Cc: 
> Subject: Re:  How to specify kernel version when restart kdump
> 
> > -----Original Messages-----
> > From: "Gianluca Cecchi" <gianluca.cecchi@xxxxxxxxx>
> > Sent Time: 2019-03-28 16:59:19 (Thursday)
> > [...]
> > The command line fo CentOS 6 clearly misses the kernel version to build
> > initrd file for, so the correct command should be:
> > 
> > /sbin/mkdumprd -d -f
> > "/boot/initrd-2.6.32-642.13.1.el6.x86_64kdump.img"  2.6.32-642.13.1.el6.x86_64
> > 

Unfortunately, I encountered a new issue when mkdumprd for a kernel different
from running. The phenomenon is mkdumprd cannot break following loop in
function depsolve_modlist(), in /sbin/mkdumprd:

 348         while [ -n "$TMPINMODS" ]
 349         do
 350            for i in $TMPINMODS
 351            do
 352               mname=`basename $i | sed -e's/\.ko//'`
 [...]
 407                 TMPINMODS=$TMPTMPMODS
 408            done
 409         done
 410         MODULES=$TMPOUTMODS

and $TMPINMODS is vhost_net.ko when issue occurs. The reason is mkdumprd set
$TMPINMODS by lsmod in running kernel. But there is a new depends of vhost_net
in newer kernel and $TMPINMODS doesn't include it, so mkdumprd stuck in previous
while loop.

Is there a solution exists?

> I test it and it works for me, although prints some harmless warnings.
> 
> Thanks
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux