ungleich-tools/ceph-mon-create-start
Nico Schottelius d2fdb82730 Rename
2018-02-15 23:11:29 +01:00

13 lines
261 B
Bash
Executable file

#!/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)