Rename
This commit is contained in:
parent
db09531983
commit
d2fdb82730
2 changed files with 8 additions and 8 deletions
|
@ -2,13 +2,12 @@
|
||||||
|
|
||||||
# Creates the initial keys
|
# Creates the initial keys
|
||||||
|
|
||||||
fname=/tmp/monkey
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "$0 initial-key-file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
fname=$1
|
||||||
|
|
||||||
ceph-authtool --create-keyring "$fname" --gen-key -n mon.
|
ceph-authtool --create-keyring "$fname" --gen-key -n mon.
|
||||||
ceph-authtool "$fname" --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow'
|
ceph-authtool "$fname" --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow'
|
||||||
|
|
||||||
cat "$fname"
|
|
||||||
|
|
||||||
# ensure mon has persistent storage!
|
|
||||||
ceph-mon --mkfs -i $(hostname) --keyring /tmp/monkey
|
|
||||||
touch /var/lib/ceph/mon/ceph-server3/
|
|
|
@ -7,6 +7,7 @@ fi
|
||||||
|
|
||||||
fname=$1
|
fname=$1
|
||||||
|
|
||||||
ceph-mon --mkfs -i $(hostname) --keyring "$fname"
|
|
||||||
ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph
|
ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph
|
||||||
touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit
|
touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit
|
||||||
|
|
||||||
|
/etc/init.d/ceph start mon.$(hostname)
|
Loading…
Reference in a new issue