17 lines
415 B
Bash
Executable file
17 lines
415 B
Bash
Executable file
#!/bin/sh
|
|
|
|
monkey=$(mktemp)
|
|
monmap=$(mktemp)
|
|
|
|
ceph auth get mon. -o $monkey
|
|
ceph mon getmap -o $monmap
|
|
|
|
mkdir /var/lib/ceph/mon/ceph-$(hostname)
|
|
ceph-mon -i $(hostname) --mkfs --monmap $monmap --keyring $monkey
|
|
chown -R ceph:ceph /var/lib/ceph/mon/ceph-$(hostname)
|
|
|
|
# Fix broken permissions on Debian
|
|
chown ceph:ceph /var/run/ceph/
|
|
|
|
# Starting with monit
|
|
/opt/ungleich-tools/monit-ceph-create-start mon.$(hostname)
|