Create mon + permissions
This commit is contained in:
parent
61a5d3174e
commit
db09531983
2 changed files with 16 additions and 1 deletions
12
ceph-create-mon
Executable file
12
ceph-create-mon
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue