In CentOS 7,
In Step 16, http://ceph.com/docs/master/install/manual-deployment/,
The /etc/init.d/ceph script fails with no error messages unless the file
/var/lib/ceph/mon/{node name}sysvinit exists.
The procedure as documented worked on an Ubuntu distribution but would not
start on the CentOS 7 distribution.
The documentation implies that this is only necessary to start the cluster on
reboot of the node, but the service would not start using the init script
without the file being created.
sudo sh -x /etc/init.d/ceph start mon.ceph07
...
+ cluster=ceph
+ '[' -e /var/lib/ceph/mon/ceph-ceph07/upstart ']'
+ '[' -e /var/lib/ceph/mon/ceph-ceph07/sysvinit ']'
+ '[' -z '' ']'
+ return 1
+ continue
+ '[' start = start -a /usr/bin '!=' . ']'
+ '[' mon.ceph07 = '' ']'
+ echo mon.ceph07
+ grep -q '^osd$'
+ exit 0
[ceph@ceph07 ~]$ sudo ls -l /var/lib/ceph/mon/ceph-ceph07
total 4
-rw-r--r--. 1 root root 0 Aug 8 16:47 done
-rw-r--r--. 1 root root 77 Aug 8 16:47 keyring
drwxr-xr-x. 2 root root 80 Aug 8 16:47 store.db
[ceph@ceph07 ~]$ sudo touch /var/lib/ceph/mon/ceph-ceph07/sysvinit
[ceph@ceph07 ~]$ sudo ls -l /var/lib/ceph/mon/ceph-ceph07
total 4
-rw-r--r--. 1 root root 0 Aug 8 16:47 done
-rw-r--r--. 1 root root 77 Aug 8 16:47 keyring
drwxr-xr-x. 2 root root 80 Aug 8 16:47 store.db
-rw-r--r--. 1 root root 0 Aug 9 07:06 sysvinit
[ceph@ceph07 ~]$ sudo sh -x /etc/init.d/ceph start mon.ceph07
...
+ '[' -e /var/lib/ceph/mon/ceph-ceph07/upstart ']'
+ '[' -e /var/lib/ceph/mon/ceph-ceph07/sysvinit ']'
+ host=ceph07
+ echo '=== mon.ceph07 === '
=== mon.ceph07 ===
+ return 0
...
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html