diff options
| author | wangwei <wangwei@navercorp.com> | 2019-04-15 19:13:47 +0900 |
|---|---|---|
| committer | wangwei <wangwei@navercorp.com> | 2019-04-15 19:13:47 +0900 |
| commit | ddab09fdd8d7c08ce8db70948ea12571bb4267a8 (patch) | |
| tree | 08e7e0b7831231382d693b51f6e65a1687f46f0f | |
| parent | 32693b83385c3b76ba0edf7e426bb110c6c335ae (diff) | |
| download | kolla-ddab09fdd8d7c08ce8db70948ea12571bb4267a8.tar.gz kolla-ddab09fdd8d7c08ce8db70948ea12571bb4267a8.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
| -rw-r--r-- | docker/ceph/ceph-osd/extend_start.sh | 1 |
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 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 |
