Thanks guys. This looks really helpful, but still I can't pass through the step 
"ceph-deploy mon create-initial" in the Quick Start build. I saw a line in the 
log file it's trying to run command "sudo initctl emit ceph-mon cluster=ceph 
id=v3", and the monitor did not been started. Instead, I used "sudo ceph-mon -i 
v3" to start the monitor,

[v3][DEBUG ] locating the `service` executable...
[v3][INFO  ] Running command: sudo initctl emit ceph-mon cluster=ceph id=v3
[v3][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon 
/var/run/ceph/ceph-mon.v3.asok mon_status
[v3][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No 
such file or directory
[v3][WARNIN] monitor: mon.v3, might not be running yet
[v3][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon 
/var/run/ceph/ceph-mon.v3.asok mon_status
[v3][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No 
such file or directory
[v3][WARNIN] monitor v3 does not exist in monmap
[ceph_deploy.mon][INFO  ] processing monitor mon.v3
[v3][DEBUG ] connected to host: v3
[v3][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon 
/var/run/ceph/ceph-mon.v3.asok mon_status
[v3][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No 
such file or directory
[ceph_deploy.mon][WARNIN] mon.v3 monitor is not yet in quorum, tries left: 5
[ceph_deploy.mon][WARNIN] waiting 5 seconds before retrying
...

, and then I created keys by "sudo ceph-create-keys -i v3". It seemed monitor 
was created successfully. I continued to create /var/local/osd0 and 
/var/local/osd1 as my OSDs, and run "ceph-deploy osd prepare v3:/var/local/osd0 
v3:/var/local/osd1", this step was also fine. But when I tried to activate OSDs 
with "ceph-deploy osd activate v3:/var/local/osd0 v3:/var/local/osd1", it 
failed, and I saw those two osd0 and osd1 marked as down and out. 

I am trying to use "sudo ceph-osd -n osd.0" "sudo ceph-osd -n osd.1" and I saw 
those two osds are marked as up and in. But when I run "ceph health", it shows 
that the system is in "creating" state, not "clean+active".

I am really confused with ceph-deploy, what it did for me? If I want to set up 
ceph without it, what are the normal steps I need to walk through? I tried to 
follow Installation(Manual) in the document. But I can't fully understand what 
does in fact happen there. Any helps are really appreciated!

Zhe

-----Original Message-----
From: Mark Kirkwood [mailto:mark.kirkw...@catalyst.net.nz] 
Sent: Friday, June 13, 2014 10:30 PM
To: Gregory Farnum; Zhe Zhang
Cc: ceph-users@lists.ceph.com
Subject: Re: [ceph-users] Run ceph from source code

I compile and run from the src build quite often. Here is my recipe:

$ ./autogen.sh
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var 
--with-radosgw $ time make $ sudo make install $ sudo cp src/init-ceph 
/etc/init.d/ceph $ sudo cp src/init-radosgw /etc/init.d/radosgw $ sudo chmod 
755 /etc/init.d/radosgw $ sudo cp src/upstart/* /etc/init $ sudo cp udev/* 
/lib/udev/rules.d/

Regards

Mark

On 14/06/14 10:07, Gregory Farnum wrote:
> I don't know anybody who makes much use of "make install", so it's 
> probably not putting the init system scripts into place. So make sure 
> they aren't there, copy them from the source tree, and try again?
> Patches to fix are welcome! :)
> -Greg
> Software Engineer #42 @ http://inktank.com | http://ceph.com
>
>
> On Fri, Jun 13, 2014 at 1:41 PM, Zhe Zhang <zhe_zh...@symantec.com> wrote:
>> Hello, there,
>>
>>
>>
>> I am trying to run ceph from source code. configure, make and make 
>> install worked fine. But after done these steps, I can't see the 
>> binary files in /etc/init.d/. My current OS is Centos6.5. I also 
>> tried Ubuntu 12.04, the same issue occurred which said "unknown job 
>> ceph..." when I tried to use upstart to run monitors and osds. How should I 
>> start ceph with source code?
>> basically I hope I could modified the code and run it from there.
>>
>>
>>
>> Zhe
>>
>>
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@lists.ceph.com
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to