On 01/04/15 at 01:21pm, Dave Young wrote:
On 12/31/14 at 02:23pm, Minfei Huang wrote:
> On 12/29/14 at 04:10pm, Dave Young wrote:
> > On 12/15/14 at 11:20am, Minfei Huang wrote:
> > > Currently kdump doesn't support ipv6 nfs/ssh dump. Ipv6 is the latest
version
> > > of the Internet Protocal. So it is a significant feture for kdump to
enhance
> > > to support ipv6.
> > >
> > > Since dracut has supported ipv6 now, it is easy to change the kdump code
to
> > > support ipv6. Just need pass the right _ip_opts to the second kernle. What
is
> > > the main difference in userspace bettwen ipv4 and ipv6 is the ip address
format.
> > > For ipv6 nfs dump:
> > > if ipv6 address type is link scope, /etc/kdump.conf should be edited
like
> > > "nfs [fe80::5054:ff:fe48:ca80%eth0]:/mnt"
> > > else /etc/kdump.conf should be edited like "nfs
[2001:db8:0:f101::2]:/mnt"
> > > For ipv6 ssh dump
> > > if ipv6 address type is link scope, /etc/kdump.conf should be edited
like
> > > "ssh root at fe80::5054:ff:fe48:ca80%eth0"
> > > else /etc/kdump.conf should be edited like "ssh root at
2001:db8:0:f101::2"
> > >
> > > What this patch do is:
> > > a): Modify kdump_setup_currect_net to handle ipv6 configuration in
> > > /etc/kdump.conf correctly. Get the ipv6 address from
/etc/kdump.conf
> > > is more complicated than ipv4 because the difference
configuration
> > > format mentioned above.
> > > b): Based on the ip address type, using corresponding ip address as
HOST_IP
> > > in second kernel.
> > >
> > > Note:
> > > 1): Currntly only f19 support remount a nfs target in ipv6. If using
in
> > > f20, you can comment out "mount -o remount,rw $_mp || return
1"
> > > in kdump.sh line 105.
> >
> > It is from previous testing from Arthur, is above still valid?
> This patch's comment is copied from the orignal ipv6 patch which posted
> by Arthur. oh, maybe I would re-write it.
Previously Arthur see a nfs bug that `mount -o remount,rw` fails for nfs in Fedora.
You can do a simple verification, hopefully it has been fixed.
Thank you for reviewing.
I will verify the issue and modify the commit log accordingly.
> >
> > > 2): If Using static ipv6 address and configuring nfs/ssh with hostname
of
> > > remote target, MUST add a ipv6 DNS in ifcfg-devname.
> >
> > Can we detect this and error out in case no such DNS? if not possible maybe we
> > should document it in kdump howto to suggest user to add it in ifcfg.
> >
> > >
> > > How to create a ipv6 enviromnet.
> > > 1): Reserving two beaker machine with family fedora.
> > > 2): Choosing a beaker machine as a nfs/ssh server and delete it's
ipv4 address
> > > by "ip address del ipv4-address dev nicname"
> > > 3): Configuring the /etc/kdump.conf like mentioned above.
> > >
> > > Signed-off-by: Minfei Huang <mhuang(a)redhat.com>
Thanks
Dave