Create mon + permissions

This commit is contained in:
Nico Schottelius 2018-02-15 23:08:24 +01:00
commit db09531983
2 changed files with 16 additions and 1 deletions

12
ceph-create-mon Executable file
View file

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