Skip to content

Commit 7134bc8

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fixes ceph-osd deploys with loop devices." into stable/stein
2 parents ac66f58 + e930fb3 commit 7134bc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docker/ceph/ceph-osd/extend_start.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
3939
sgdisk --new=1:0:+100M --mbrtogpt -- "${OSD_BS_DEV}"
4040
sgdisk --largest-new=2 --mbrtogpt -- "${OSD_BS_DEV}"
4141
partprobe || true
42-
sgdisk --zap-all -- "${OSD_BS_DEV}"2
42+
43+
if [[ "${OSD_BS_DEV}" =~ "/dev/loop" ]]; then
44+
sgdisk --zap-all -- "${OSD_BS_DEV}"p2
45+
else
46+
sgdisk --zap-all -- "${OSD_BS_DEV}"2
47+
fi
4348
fi
4449

4550
if [ -n "${OSD_BS_WAL_DEV}" ] && [ "${OSD_BS_BLK_DEV}" != "${OSD_BS_WAL_DEV}" ] && [ -n "${OSD_BS_WAL_PARTNUM}" ]; then

0 commit comments

Comments
 (0)