From ddab09fdd8d7c08ce8db70948ea12571bb4267a8 Mon Sep 17 00:00:00 2001 From: wangwei Date: Mon, 15 Apr 2019 19:13:47 +0900 Subject: 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 --- docker/ceph/ceph-osd/extend_start.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'docker') diff --git a/docker/ceph/ceph-osd/extend_start.sh b/docker/ceph/ceph-osd/extend_start.sh index 158ee74a3..68c0a28d6 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 -- cgit v1.2.3