Re: CentOS 7 and ipv4 is trying to bind ipv6

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

 



> Op 6 mei 2017 om 20:00 schreef Peter Maloney <peter.maloney@xxxxxxxxxxxxxxxxxxxx>:
> 
> 
> I was testing ceph in a centos 7 VM, just so I could support someone
> that wants to use CentOS 7, and I ran into a problem... What am I doing
> wrong?
> 
> First I tried just without any ipv6 changes, and the eth0 had an ipv6
> address, but it still didn't work. I think it looked the same but didn't
> save the output.
> 

Odd, this shouldn't happen. Can you post your ceph.conf and tell which Ceph version you are testing with?

Btw, I always recommend to use IPv6. Why use the future of Storage and the legacy of IP? ;)

Wido

> 
> Then I disabled IPv6 via sysctls, rebooted, and tried again:
> 
> > root@centos7-ceph:~ # /usr/bin/ceph-mon -f --cluster ceph --id centos7-ceph --setuser ceph --setgroup ceph
> > 2017-05-06 07:13:34.801245 7feea4cb7600 -1 accepter.accepter.bind unable to bind to [fe80::4c30:18ff:fe6c:7b2b]:6789: (22) Invalid argument
> > 2017-05-06 07:13:34.801278 7feea4cb7600 -1 accepter.accepter.bind was unable to bind. Trying again in 5 seconds 
> > ^C
> > root@centos7-ceph:~ # ip a
> > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
> >     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> >     inet 127.0.0.1/8 scope host lo
> >        valid_lft forever preferred_lft forever
> > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> >     link/ether 4e:30:18:6c:7b:2b brd ff:ff:ff:ff:ff:ff
> >     inet 10.3.0.89/16 brd 10.3.255.255 scope global eth0
> >        valid_lft forever preferred_lft forever
> > root@centos7-ceph:~ # ip l
> > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1000
> >     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
> >     link/ether 4e:30:18:6c:7b:2b brd ff:ff:ff:ff:ff:ff
> > root@centos7-ceph:~ # sysctl -a | grep ipv6.*abled
> > sysctl: reading key "net.ipv6.conf.all.stable_secret"
> > net.ipv6.conf.all.seg6_enabled = 0
> > sysctl: reading key "net.ipv6.conf.default.stable_secret"
> > net.ipv6.conf.default.seg6_enabled = 0
> > sysctl: reading key "net.ipv6.conf.eth0.stable_secret"
> > net.ipv6.conf.eth0.seg6_enabled = 0
> > sysctl: reading key "net.ipv6.conf.lo.stable_secret"                                                                                                                                         
> > net.ipv6.conf.lo.seg6_enabled = 0
> 
> Then I tried disabling ipv6 via the kernel cmdline, and also left the
> sysctls the way they were:
> 
> > root@centos7-ceph:~ # /usr/bin/ceph-mon -f --cluster ceph --id centos7-ceph --setuser ceph --setgroup ceph
> > 2017-05-06 07:17:29.890929 7fc2bec5b600 -1 accepter.accepter.bind unable to create socket: (97) Address family not supported by protocol
> > 2017-05-06 07:17:29.890963 7fc2bec5b600 -1 unable to bind monitor to [fe80::4c30:18ff:fe6c:7b2b]:6789/0
> 
> Also I tried config:
> >
> > ms bind ipv6 = false
> >
> 
> Which didn't do anything.
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux