Rename mgr
This commit is contained in:
parent
d0ed1b50d7
commit
0126736a76
1 changed files with 2 additions and 0 deletions
22
ceph-mgr-create-start
Executable file
22
ceph-mgr-create-start
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
name=$(hostname)
|
||||
|
||||
CEPH_PATH=/var/lib/ceph
|
||||
MGR_PATH=$CEPH_PATH/mgr/ceph-$name
|
||||
|
||||
if [ -e "$MGR_PATH" ]; then
|
||||
echo "$MGR_PATH exists - aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir "$MGR_PATH"
|
||||
chown ceph:ceph "$MGR_PATH"
|
||||
touch "$MGR_PATH/sysvinit"
|
||||
|
||||
ceph auth get-or-create mgr.$name \
|
||||
mon 'allow profile mgr' \
|
||||
osd 'allow *' \
|
||||
mds 'allow *' > "$MGR_PATH/keyring"
|
||||
|
||||
/etc/init.d/ceph start mgr.$name
|
||||
Loading…
Add table
Add a link
Reference in a new issue