RE: Ceph Manual Deployment for version 94.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Correction. The version of Ceph is 94.1
ceph.x86_64 1:0.94.1-0.el7.centos

________________________________________
From: ceph-devel-owner@xxxxxxxxxxxxxxx [ceph-devel-owner@xxxxxxxxxxxxxxx] on behalf of Walker H Haddock [whaddock@xxxxxxx]
Sent: Sunday, August 09, 2015 7:22 AM
To: ceph-devel@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux