summaryrefslogtreecommitdiff
path: root/docker/ceph
diff options
context:
space:
mode:
authorwangwei <wangwei@navercorp.com>2019-04-15 19:13:47 +0900
committerwangwei <wang.wei@navercorp.com>2019-04-16 06:40:00 +0000
commitea14e33bc694b8a3befda6cf751d4a2032b98c4a (patch)
tree48782044a954b7bbbb3e45ebd5d042e81b6a8f20 /docker/ceph
parent1c397a9b19343bfe129795ac85e19b0213b02726 (diff)
downloadkolla-ea14e33bc694b8a3befda6cf751d4a2032b98c4a.tar.gz
kolla-ea14e33bc694b8a3befda6cf751d4a2032b98c4a.zip
Fix the problem of osd initialization failed
When deploying osd, if the user does not use the extra block partition, the kolla will automatically partition the disk and then clean up the data on the disk partition. Sometimes the disk partition will not be updated, there will be an error not finding the partition. This commit fixes the problem. Change-Id: I14708f38614dcb75268c2f460ae3d921748c2d10 Closes-bug: #1824787 (cherry picked from commit ddab09fdd8d7c08ce8db70948ea12571bb4267a8)
Diffstat (limited to 'docker/ceph')
-rw-r--r--docker/ceph/ceph-osd/extend_start.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/ceph/ceph-osd/extend_start.sh b/docker/ceph/ceph-osd/extend_start.sh
index eafd3d290..e73e4d95f 100644
--- a/docker/ceph/ceph-osd/extend_start.sh
+++ b/docker/ceph/ceph-osd/extend_start.sh
@@ -38,6 +38,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
sgdisk --zap-all -- "${OSD_BS_DEV}"
sgdisk --new=1:0:+100M --mbrtogpt -- "${OSD_BS_DEV}"
sgdisk --largest-new=2 --mbrtogpt -- "${OSD_BS_DEV}"
+ partprobe || true
sgdisk --zap-all -- "${OSD_BS_DEV}"2
fi