mirror of https://github.com/ceph/go-ceph
micro-osd.sh: Use ipv4 address for 'mon addr' configuration
'mon addr' config option expects value in the following format[1]: <ip-addr>:<port> Extract host ipv4 address and mention it with default 6789 port as 'mon addr' config option value. [1] https://docs.ceph.com/en/latest/rados/configuration/mon-config-ref/#minimum-configuration Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
parent
7476da2582
commit
cd007bcbd0
|
@ -41,6 +41,7 @@ MIRROR_ID="m"
|
|||
RGW_ID="r"
|
||||
S3_ACCESS_KEY=2262XNX11FZRR44XWIRD
|
||||
S3_SECRET_KEY=rmtuS1Uj1bIC08QFYGW18GfSHAbkPqdsuYynNudw
|
||||
HOST_IP=$(getent ahostsv4 "${HOSTNAME}" | grep STREAM | head -n 1 | awk '{print $1}')
|
||||
|
||||
FSID="$(uuidgen)"
|
||||
export CEPH_CONF=${DIR}/ceph.conf
|
||||
|
@ -67,7 +68,7 @@ chdir = ""
|
|||
mon cluster log file = ${LOG_DIR}/mon-cluster.log
|
||||
mon data = ${MON_DATA}
|
||||
mon data avail crit = 0
|
||||
mon addr = ${HOSTNAME}
|
||||
mon addr = ${HOST_IP}:6789
|
||||
mon allow pool delete = true
|
||||
|
||||
[osd.0]
|
||||
|
|
Loading…
Reference in New Issue