From ea14e33bc694b8a3befda6cf751d4a2032b98c4a Mon Sep 17 00:00:00 2001 From: wangwei Date: Mon, 15 Apr 2019 19:13:47 +0900 Subject: [PATCH] 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) --- docker/ceph/ceph-osd/extend_start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/ceph/ceph-osd/extend_start.sh b/docker/ceph/ceph-osd/extend_start.sh index eafd3d290b..e73e4d95f0 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