Hi Liuchang0812,
Thank you for replying the thread.
I have corrected this issue. This was due to incorrect ownership of the
/var/lib/ceph. It was under root and I have changed it to ceph ownership
to resolve this.
However, I am seeing a new error while preparing the osd's. Any idea
about this?
=======
[osd-ceph2][INFO ] Running command: sudo /bin/ceph --cluster=ceph osd
stat --format=json
[osd-ceph2][WARNIN] No data was received after 300 seconds, disconnecting...
[ceph_deploy.osd][DEBUG ] Host osd-ceph2 is now ready for osd use.
=======
Full log
=======
[root@admin-ceph mycluster]# ceph-deploy osd prepare
osd-ceph2:/var/local/osd0
[ceph_deploy.conf][DEBUG ] found configuration file at:
/root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.37): /usr/bin/ceph-deploy osd
prepare osd-ceph2:/var/local/osd0
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] disk :
[('osd-ceph2', '/var/local/osd0', None)]
[ceph_deploy.cli][INFO ] dmcrypt : False
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] bluestore : None
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : prepare
[ceph_deploy.cli][INFO ] dmcrypt_key_dir :
/etc/ceph/dmcrypt-keys
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf :
<ceph_deploy.conf.cephdeploy.Conf instance at 0x25df878>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] fs_type : xfs
[ceph_deploy.cli][INFO ] func : <function osd
at 0x25d2b90>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] zap_disk : False
[ceph_deploy.osd][DEBUG ] Preparing cluster ceph disks
osd-ceph2:/var/local/osd0:
[osd-ceph2][DEBUG ] connection detected need for sudo
[osd-ceph2][DEBUG ] connected to host: osd-ceph2
[osd-ceph2][DEBUG ] detect platform information from remote host
[osd-ceph2][DEBUG ] detect machine type
[osd-ceph2][DEBUG ] find the location of an executable
[ceph_deploy.osd][INFO ] Distro info: CentOS Linux 7.3.1611 Core
[ceph_deploy.osd][DEBUG ] Deploying osd to osd-ceph2
[osd-ceph2][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph_deploy.osd][DEBUG ] Preparing host osd-ceph2 disk /var/local/osd0
journal None activate False
[osd-ceph2][DEBUG ] find the location of an executable
[osd-ceph2][INFO ] Running command: sudo /usr/sbin/ceph-disk -v prepare
--cluster ceph --fs-type xfs -- /var/local/osd0
[osd-ceph2][WARNIN] command: Running command: /usr/bin/ceph-osd
--cluster=ceph --show-config-value=fsid
[osd-ceph2][WARNIN] command: Running command: /usr/bin/ceph-osd
--check-allows-journal -i 0 --cluster ceph
[osd-ceph2][WARNIN] command: Running command: /usr/bin/ceph-osd
--check-wants-journal -i 0 --cluster ceph
[osd-ceph2][WARNIN] command: Running command: /usr/bin/ceph-osd
--check-needs-journal -i 0 --cluster ceph
[osd-ceph2][WARNIN] command: Running command: /usr/bin/ceph-osd
--cluster=ceph --show-config-value=osd_journal_size
[osd-ceph2][WARNIN] populate_data_path: Preparing osd data dir
/var/local/osd0
[osd-ceph2][WARNIN] command: Running command: /sbin/restorecon -R
/var/local/osd0/ceph_fsid.16899.tmp
[osd-ceph2][WARNIN] command: Running command: /usr/bin/chown -R
ceph:ceph /var/local/osd0/ceph_fsid.16899.tmp
[osd-ceph2][WARNIN] command: Running command: /sbin/restorecon -R
/var/local/osd0/fsid.16899.tmp
[osd-ceph2][WARNIN] command: Running command: /usr/bin/chown -R
ceph:ceph /var/local/osd0/fsid.16899.tmp
[osd-ceph2][WARNIN] command: Running command: /sbin/restorecon -R
/var/local/osd0/magic.16899.tmp
[osd-ceph2][WARNIN] command: Running command: /usr/bin/chown -R
ceph:ceph /var/local/osd0/magic.16899.tmp
[osd-ceph2][INFO ] checking OSD status...
[osd-ceph2][DEBUG ] find the location of an executable
[osd-ceph2][INFO ] Running command: sudo /bin/ceph --cluster=ceph osd
stat --format=json
[osd-ceph2][WARNIN] No data was received after 300 seconds, disconnecting...
[ceph_deploy.osd][DEBUG ] Host osd-ceph2 is now ready for osd use.
=======
On 02/12/2017 10:23 AM, liuchang0812 wrote:
Hi, Vince
What's your Ceph's version ?
` ceph --version`
2017-02-11 19:10 GMT+08:00 Vince <vince@xxxxxxxxxxxxxx>:
Hi,
We are getting the below error while trying to create monitor from the admin
node.
ceph-deploy mon create-initial
====
[osd-ceph1][INFO ] Running command: ceph --cluster=ceph --admin-daemon
/var/run/ceph/ceph-mon.osd-ceph1.asok mon_status
[osd-ceph1][ERROR ] admin_socket: exception getting command descriptions:
[Errno 2] No such file or directory
====
I couldn't see /var/run/ceph/ceph-mon.osd-ceph1.aso in the monitor server.
See the full output
==========
[osd-ceph1][DEBUG ] connected to host: osd-ceph1
[osd-ceph1][DEBUG ] detect platform information from remote host
[osd-ceph1][DEBUG ] detect machine type
[osd-ceph1][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO ] distro info: CentOS Linux 7.3.1611 Core
[osd-ceph1][DEBUG ] determining if provided host has same hostname in remote
[osd-ceph1][DEBUG ] get remote short hostname
[osd-ceph1][DEBUG ] deploying mon to osd-ceph1
[osd-ceph1][DEBUG ] get remote short hostname
[osd-ceph1][DEBUG ] remote hostname: osd-ceph1
[osd-ceph1][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[osd-ceph1][DEBUG ] create the mon path if it does not exist
[osd-ceph1][DEBUG ] checking for done path:
/var/lib/ceph/mon/ceph-osd-ceph1/done
[osd-ceph1][DEBUG ] create a done file to avoid re-doing the mon deployment
[osd-ceph1][DEBUG ] create the init path if it does not exist
[osd-ceph1][INFO ] Running command: systemctl enable ceph.target
[osd-ceph1][INFO ] Running command: systemctl enable ceph-mon@osd-ceph1
[osd-ceph1][INFO ] Running command: systemctl start ceph-mon@osd-ceph1
[osd-ceph1][INFO ] Running command: ceph --cluster=ceph --admin-daemon
/var/run/ceph/ceph-mon.osd-ceph1.asok mon_status
[osd-ceph1][ERROR ] admin_socket: exception getting command descriptions:
[Errno 2] No such file or directory
[osd-ceph1][WARNIN] monitor: mon.osd-ceph1, might not be running yet
[osd-ceph1][INFO ] Running command: ceph --cluster=ceph --admin-daemon
/var/run/ceph/ceph-mon.osd-ceph1.asok mon_status
[osd-ceph1][ERROR ] admin_socket: exception getting command descriptions:
[Errno 2] No such file or directory
[osd-ceph1][WARNIN] monitor osd-ceph1 does not exist in monmap
[ceph_deploy.mon][INFO ] processing monitor mon.osd-ceph1
root@osd-ceph1's password:
root@osd-ceph1's password:
[osd-ceph1][DEBUG ] connected to host: osd-ceph1
[osd-ceph1][DEBUG ] detect platform information from remote host
[osd-ceph1][DEBUG ] detect machine type
[osd-ceph1][DEBUG ] find the location of an executable
[osd-ceph1][INFO ] Running command: ceph --cluster=ceph --admin-daemon
/var/run/ceph/ceph-mon.osd-ceph1.asok mon_status
[osd-ceph1][ERROR ] admin_socket: exception getting command descriptions:
[Errno 2] No such file or directory
==========
_______________________________________________
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