Fix pid dir permissions for ceph mon
This commit is contained in:
parent
dc191f6fe5
commit
bfe5e19c08
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ fname=$1
|
||||||
ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph
|
ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph
|
||||||
touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit
|
touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit
|
||||||
|
|
||||||
|
# Fix broken permissions
|
||||||
|
chown ceph:ceph /var/run/ceph/
|
||||||
|
|
||||||
# Starting with monit, if available
|
# Starting with monit, if available
|
||||||
if [ -e /etc/monit ]; then
|
if [ -e /etc/monit ]; then
|
||||||
/opt/ungleich-tools/monit-ceph-create-start mon.$(hostname)
|
/opt/ungleich-tools/monit-ceph-create-start mon.$(hostname)
|
||||||
|
|
Loading…
Reference in a new issue