* Ceph Manual Deployment for version 94.2
@ 2015-08-09 12:22 Walker H Haddock
2015-08-09 19:40 ` Walker H Haddock
0 siblings, 1 reply; 2+ messages in thread
From: Walker H Haddock @ 2015-08-09 12:22 UTC (permalink / raw)
To: ceph-devel
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
...
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Ceph Manual Deployment for version 94.2
2015-08-09 12:22 Ceph Manual Deployment for version 94.2 Walker H Haddock
@ 2015-08-09 19:40 ` Walker H Haddock
0 siblings, 0 replies; 2+ messages in thread
From: Walker H Haddock @ 2015-08-09 19:40 UTC (permalink / raw)
To: ceph-devel
Correction. The version of Ceph is 94.1
ceph.x86_64 1:0.94.1-0.el7.centos
________________________________________
From: ceph-devel-owner@vger.kernel.org [ceph-devel-owner@vger.kernel.org] on behalf of Walker H Haddock [whaddock@uab.edu]
Sent: Sunday, August 09, 2015 7:22 AM
To: ceph-devel@vger.kernel.org
Subject: Ceph Manual Deployment for version 94.2
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-09 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-09 12:22 Ceph Manual Deployment for version 94.2 Walker H Haddock
2015-08-09 19:40 ` Walker H Haddock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.