This commit is contained in:
Nico Schottelius 2018-02-15 23:11:29 +01:00
commit d2fdb82730
2 changed files with 8 additions and 8 deletions

13
ceph-mon-create-start Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
if [ $# -ne 1 ]; then
echo "$0 initial-key-file"
exit 1
fi
fname=$1
ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph
touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit
/etc/init.d/ceph start mon.$(hostname)