|
|
@ -12,7 +12,7 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
#manually bring up osd
|
|
|
|
#manually bring up osd
|
|
|
|
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_dir" | cut -d'_' -f2)
|
|
|
|
osd_id=$(echo "$osd_dir" | cut -d'_' -f2)
|
|
|
|
docker run -d --rm --net=ceph --hostname "$HOSTNAME" --privileged -v /ceph/"$osd_name"/etc/ceph:/etc/ceph -v /ceph/"$osd_name"/var/lib/ceph:/var/lib/ceph -v /dev:/dev -e OSD_ID="$osd_id" --name "$osd_name" docker.io/ceph/daemon:latest-nautilus osd_ceph_volume_activate
|
|
|
|
docker run -d --rm --net=ceph --hostname "$HOSTNAME" --privileged -v /ceph/"$osd_name"/etc/ceph:/etc/ceph -v /ceph/"$osd_name"/var/lib/ceph:/var/lib/ceph -v /dev:/dev -e OSD_ID="$osd_id" --name "$osd_name" docker.io/ceph/daemon:latest-nautilus osd_ceph_volume_activate
|
|
|
|
done
|
|
|
|
done
|