On 07/08/2014 05:06 AM, Yitao Jiang wrote: > hi, cephers > > i am new here , and lanunched a ceph single node with mon, mds and > osds, belows is ceph.conf. I want using ipv4 with mon deamon, but it > still using IPV6 > > *ceph.conf* > ------------------------------------------------------- > [global] > auth_service_required = none > filestore_xattr_use_omap = true > auth_client_required = none > auth_cluster_required = none > fsid = 8e25e277-ca31-4095-ba15-390d0e18ac96 > ms bind ipv6 = false > > [mds.cephnode1] > host = cephnode1 > > [osd.1] > devs = /dev/sdd1 > host = cephnode1 > > [osd.0] > devs = /dev/sdb1 > host = cephnode1 > > [osd.2] > devs = /dev/sdc1 > host = cephnode1 > > [osd.3] > devs = /dev/sde1 > host = cephnode1 > > [mon] > debug ms = 90 > debug mon = 90 > debug paxos = 90 > debug auth = 90 > mon host = cephnode1 > > [mon.cephnode1] > host = cephnode1 > mon addr = 192.168.129.101:6789 <http://192.168.129.101:6789> > > [osd] > osd_mount_options_xfs = rw,noatime # default mount option is "rw,noatime" > filestore_xattr_use_omap = true > osd_mkfs_options_xfs = -f # default for xfs is "-f" > osd_mkfs_type = xfs > osd_journal_size = 1000 > > [root at cephnode1 ~]# netstat -tlanp > Active Internet connections (servers and established) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > tcp 0 0 0.0.0.0:6800 <http://0.0.0.0:6800> > 0.0.0.0:* LISTEN 2115/ceph-mds > tcp 0 0 0.0.0.0:22 <http://0.0.0.0:22> > 0.0.0.0:* LISTEN 1682/sshd > tcp 0 0 127.0.0.1:25 <http://127.0.0.1:25> > 0.0.0.0:* LISTEN 2319/master > tcp 0 52 192.168.129.101:22 <http://192.168.129.101:22> > 192.168.129.1:64117 <http://192.168.129.1:64117> ESTABLISHED > 34056/sshd > tcp 0 0 192.168.129.101:22 <http://192.168.129.101:22> > 192.168.129.1:60586 <http://192.168.129.1:60586> ESTABLISHED > 26165/sshd > tcp 0 0 192.168.129.101:22 <http://192.168.129.101:22> > 192.168.129.1:61368 <http://192.168.129.1:61368> ESTABLISHED > 28363/sshd > tcp 0 0 :::22 :::* > LISTEN 1682/sshd > tcp 0 0 ::1:25 :::* > LISTEN 2319/master > *tcp 0 0 ::1:6789 :::* > LISTEN 1831/ceph-mon * > [root at cephnode1 ~]# lsof -n -i > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > sshd 1682 root 3u IPv4 11295 0t0 TCP *:ssh (LISTEN) > sshd 1682 root 4u IPv6 11297 0t0 TCP *:ssh (LISTEN) > *ceph-mon 1831 root 12u IPv6 183099 0t0 TCP [::1]:smc-https > (LISTEN)* > ceph-mds 2115 root 4u IPv4 183252 0t0 TCP *:6800 (LISTEN) > master 2319 root 12u IPv4 14053 0t0 TCP 127.0.0.1:smtp (LISTEN) > master 2319 root 13u IPv6 14055 0t0 TCP [::1]:smtp (LISTEN) > sshd 26165 root 3r IPv4 87694 0t0 TCP > 192.168.129.101:ssh->192.168.129.1:60586 <http://192.168.129.1:60586> > (ESTABLISHED) > sshd 28363 root 3r IPv4 95159 0t0 TCP > 192.168.129.101:ssh->192.168.129.1:61368 <http://192.168.129.1:61368> > (ESTABLISHED) > sshd 34056 root 3r IPv4 112628 0t0 TCP > 192.168.129.101:ssh->192.168.129.1:64117 <http://192.168.129.1:64117> > (ESTABLISHED) > [root at cephnode1 ~]# > ?? > ?[root at cephnode1 ~]# ifconfig > eth0 Link encap:Ethernet HWaddr 00:0C:29:EC:49:43 > inet addr:192.168.129.101 Bcast:192.168.129.255 > Mask:255.255.255.0 > inet6 addr: fe80::20c:29ff:feec:4943/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:7622 errors:0 dropped:0 overruns:0 frame:0 > TX packets:3376 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:704584 (688.0 KiB) TX bytes:646180 (631.0 KiB) > > eth1 Link encap:Ethernet HWaddr 00:0C:29:EC:49:4D > inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0 > inet6 addr: fe80::20c:29ff:feec:494d/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:23039 errors:0 dropped:0 overruns:0 frame:0 > TX packets:5451 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:13628600 (12.9 MiB) TX bytes:384156 (375.1 KiB)? > > [root at cephnode1 ~]# ping cephnode1 > PING cephnode1 (192.168.129.101) 56(84) bytes of data. > 64 bytes from cephnode1 (192.168.129.101): icmp_seq=1 ttl=64 time=0.060 ms > 64 bytes from cephnode1 (192.168.129.101): icmp_seq=2 ttl=64 time=0.052 ms > > ?[root at cephnode1 ~]# hostname --fqdn > cephnode1 > > [root at cephnode1 ~]# cat /etc/centos-release > CentOS release 6.5 (Final) > [root at cephnode1 ~]# uname -ar > Linux cephnode1 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC > 2014 x86_64 x86_64 x86_64 GNU/Linux > [root at cephnode1 ~]# ceph --version > ceph version 0.80.1 (a38fe1169b6d2ac98b427334c12d7cf81f809b74) > > Do u have any ideas ? Am i misconfigure ceph.conf ? Thanks in advance.? > The monmap probably still says that the monitor should bind to ::1 Monitors look at the monmap instead of their configuration. Wido > --- > Thanks, > Yitao(?? ?) > jiangyt.github.io <http://jiangyt.github.io> > > > _______________________________________________ > ceph-users mailing list > ceph-users at lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Wido den Hollander Ceph consultant and trainer 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on