Hi Alfredo
this was fixed by adding these lines in ceph.conf
Br.
Umar
On Tue, Dec 17, 2013 at 8:05 PM, Alfredo Deza <alfredo.deza@xxxxxxxxxxx> wrote:
On Mon, Dec 16, 2013 at 10:57 PM, Umar Draz <unix.co@xxxxxxxxx> wrote:How is it the same? ceph-deploy will want to run from the same
> HI Don,
>
> Well the result is same even after
>
> ceph-deploy new kvm2
>
directory where that ceph.conf gets created.
Can you share some logs to show us what is going on?
It definitely looks like you missed a step or two in the process.
Maybe starting over would be better so you don't trip over
something you previously skipped.
> Br.
>
> Umar
>
>
> On Tue, Dec 17, 2013 at 2:35 AM, Don Talton (dotalton) <dotalton@xxxxxxxxx>
> wrote:
>>
>> [kvm2][WARNIN] kvm2 is not defined in `mon initial members`
>>
>>
>>
>> The above is why. When you run ‘ceph-deploy new’, pass it all the machines
>> you intend to use as mons, eg
>>
>>
>>
>> ‘ceph-deploy new mon1 mon2 mon3’
>>
>>
>>
>> Or alternately, you can modify the ceph.conf file in your bootstrap
>> directory. And the mon and the IP, you’ll see where. Do not use the mon’s
>> FQDN, only the shortname.
>>
>>
>>
>>
>>
>> From: ceph-users-bounces@xxxxxxxxxxxxxx
>> [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Umar Draz
>> Sent: Monday, December 16, 2013 2:28 PM
>> To: ceph-users@xxxxxxxx
>> Subject: mon add problem
>>
>>
>>
>> Hi,
>>
>>
>>
>> I am try to add mon host using ceph-deploy mon create kvm2, but its not
>> working and giving me an error.
>>
>>
>>
>> [kvm2][DEBUG ] determining if provided host has same hostname in remote
>>
>> [kvm2][DEBUG ] get remote short hostname
>>
>> [kvm2][DEBUG ] deploying mon to kvm2
>>
>> [kvm2][DEBUG ] get remote short hostname
>>
>> [kvm2][DEBUG ] remote hostname: kvm2
>>
>> [kvm2][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
>>
>> [kvm2][DEBUG ] create the mon path if it does not exist
>>
>> [kvm2][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-kvm2/done
>>
>> [kvm2][DEBUG ] create a done file to avoid re-doing the mon deployment
>>
>> [kvm2][DEBUG ] create the init path if it does not exist
>>
>> [kvm2][DEBUG ] locating the `service` executable...
>>
>> [kvm2][INFO ] Running command: initctl emit ceph-mon cluster=ceph id=kvm2
>>
>> [kvm2][INFO ] Running command: ceph --cluster=ceph --admin-daemon
>> /var/run/ceph/ceph-mon.kvm2.asok mon_status
>>
>> [kvm2][ERROR ] admin_socket: exception getting command descriptions:
>> [Errno 2] No such file or directory
>>
>> [kvm2][WARNIN] monitor: mon.kvm2, might not be running yet
>>
>> [kvm2][INFO ] Running command: ceph --cluster=ceph --admin-daemon
>> /var/run/ceph/ceph-mon.kvm2.asok mon_status
>>
>> [kvm2][ERROR ] admin_socket: exception getting command descriptions:
>> [Errno 2] No such file or directory
>>
>> [kvm2][WARNIN] kvm2 is not defined in `mon initial members`
>>
>> [kvm2][WARNIN] monitor kvm2 does not exist in monmap
>>
>> [kvm2][WARNIN] neither `public_addr` nor `public_network` keys are defined
>> for monitors
>>
>> [kvm2][WARNIN] monitors may not be able to form quorum
>>
>> root@kvm1:/home/umar/ceph-cluster# ceph-deploy mon create kvm2
>>
>>
>>
>>
>>
>> would you please help me how to solve this problem?
>>
>>
>>
>> Br.
>>
>>
>>
>> Umar
>
>
>
>
> --
> Umar Draz
> Network Architect
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
Umar Draz
Network Architect
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com