Re: ceph-mon listens on wrong interface

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

 



Hi Andreas,

On Fri, 23 Aug 2013, Fuchs, Andreas (SwissTXT) wrote:
> Hi, we built a ceph cluster with the folling network setup
> 
> eth0 is on a management network (access for admins and monitoring tools)
> eth1 is ceph sync
> eth2 is ceph public
> 
> deployed by ceph-deploy I have the following config
> 
> [global]
> fsid = 18c6b4db-b936-43a2-ba68-d750036036cc
> mon_initial_members = ceph01, ceph02, ceph03
> mon_host = 10.100.214.11,10.100.214.12,10.100.214.13
> auth_supported = cephx
> osd_journal_size = 5000
> filestore_xattr_use_omap = true
> public_network = 10.100.214.0/24
> cluster_network = 10.100.213.0/24
> 
> the problem is now that ceph-mon is listening on eth0
> 
> netstat -lpn | grep 6789
> tcp        0      0 10.100.220.111:6789     0.0.0.0:*               LISTEN      1609/ceph-mon
> 
> where it should listen on eth0 10.100.214.x
> 
> how can I achieve this?

I assume you used ceph-deploy here?  The problem is that when you do

 ceph-deploy new ceph01 ceph02 ceph03

it is using the ceph01 etc as both the hostname to identify the instance 
(good) and looking it up via DNS to resolve the IP for the mon_host list 
(bad, in your case).  Try

 ceph-deploy new ceph01:10.100.214.x ...

or

 ceph-deploy new ceph01:ceph01.myothernetwork.foo.com ...

Or, just manually edit the ceph.conf after the 'ceph-deploy new ...' 
command to get how you want it.

sage

_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux