2019-09-26 21:46:49 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
fsid=0a464092-dfd0-11e9-b903-002590e526e8
|
|
|
|
|
2019-09-27 13:51:56 +00:00
|
|
|
../src/ceph-daemon rm-cluster --fsid $fsid --force
|
2019-09-26 21:46:49 +00:00
|
|
|
|
2019-09-27 14:50:40 +00:00
|
|
|
cat <<EOF > c
|
|
|
|
[global]
|
|
|
|
log to file = true
|
|
|
|
EOF
|
|
|
|
|
2019-09-26 21:46:49 +00:00
|
|
|
../src/ceph-daemon bootstrap \
|
2019-09-27 16:41:32 +00:00
|
|
|
--mon-id a \
|
|
|
|
--mgr-id x \
|
2019-09-26 21:46:49 +00:00
|
|
|
--fsid $fsid \
|
|
|
|
--mon-ip 10.3.64.23 \
|
2019-09-27 14:50:40 +00:00
|
|
|
--config c \
|
2019-09-26 21:46:49 +00:00
|
|
|
--output-keyring k \
|
2019-09-27 19:55:24 +00:00
|
|
|
--output-config c
|
2019-09-26 21:46:49 +00:00
|
|
|
chmod 644 k c
|
|
|
|
|
2019-09-27 16:41:32 +00:00
|
|
|
# mon.b
|
|
|
|
../src/ceph-daemon deploy --name mon.b \
|
|
|
|
--fsid $fsid \
|
|
|
|
--mon-ip 10.3.64.27 \
|
|
|
|
--keyring /var/lib/ceph/$fsid/mon.a/keyring \
|
2019-09-27 14:50:40 +00:00
|
|
|
--config c
|
2019-09-27 16:41:32 +00:00
|
|
|
|
|
|
|
# mgr.b
|
|
|
|
bin/ceph -c c -k k auth get-or-create mgr.y \
|
|
|
|
mon 'allow profile mgr' \
|
|
|
|
osd 'allow *' \
|
|
|
|
mds 'allow *' > k-mgr.y
|
|
|
|
../src/ceph-daemon deploy --name mgr.y \
|
|
|
|
--fsid $fsid \
|
|
|
|
--keyring k-mgr.y \
|
2019-09-27 14:50:40 +00:00
|
|
|
--config c
|
2019-09-27 16:41:32 +00:00
|
|
|
|
|
|
|
|
2019-09-26 21:46:49 +00:00
|
|
|
bin/ceph -c c -k k -s
|