|
|
@ -4,7 +4,7 @@ docker pull docker.io/ceph/daemon:latest-octopus
|
|
|
|
|
|
|
|
|
|
|
|
#start client
|
|
|
|
#start client
|
|
|
|
cd client
|
|
|
|
cd client
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
|
|
|
|
cd -
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ shopt -s nullglob
|
|
|
|
for role_dir in /ceph/m*; do
|
|
|
|
for role_dir in /ceph/m*; do
|
|
|
|
role_name=$(basename "$role_dir")
|
|
|
|
role_name=$(basename "$role_dir")
|
|
|
|
cd "$role_name"
|
|
|
|
cd "$role_name"
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
|
|
|
|
cd -
|
|
|
|
cd -
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
@ -23,11 +23,11 @@ done
|
|
|
|
for osd_dir in /ceph/osd_*; do
|
|
|
|
for osd_dir in /ceph/osd_*; do
|
|
|
|
osd_name=$(basename "$osd_dir")
|
|
|
|
osd_name=$(basename "$osd_dir")
|
|
|
|
osd_id=$(echo "$osd_name" | cut -d'_' -f2)
|
|
|
|
osd_id=$(echo "$osd_name" | cut -d'_' -f2)
|
|
|
|
|
|
|
|
|
|
|
|
#create temporary docker-compose.yml
|
|
|
|
#create temporary docker-compose.yml
|
|
|
|
sed "s/%OSD_ID%/$osd_id/g" osd/docker-compose.yml > docker-compose.yml
|
|
|
|
sed "s/%OSD_ID%/$osd_id/g" osd/docker-compose.yml > docker-compose.yml
|
|
|
|
|
|
|
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
|
|
|
|
|
|
|
|
|
|
|
|
#remove temporary docker-compose.yml
|
|
|
|
#remove temporary docker-compose.yml
|
|
|
|
rm docker-compose.yml
|
|
|
|
rm docker-compose.yml
|
|
|
|