The loopback device is created for ceph osd. If the directory
${storage_data_dir} has been mounted when create disk, we should
umount ${storage_data_dir} instead of ${storage_data_dir}/drives/sdb1.
Change-Id: Ie9fe81c820c485dab9f049cf5a81c02424925728
Closes-Bug: #1689089
| ... | ... |
@@ -712,7 +712,7 @@ function create_disk {
|
| 712 | 712 |
# Create a loopback disk and format it to XFS. |
| 713 | 713 |
if [[ -e ${disk_image} ]]; then
|
| 714 | 714 |
if egrep -q ${storage_data_dir} /proc/mounts; then
|
| 715 |
- sudo umount ${storage_data_dir}/drives/sdb1
|
|
| 715 |
+ sudo umount ${storage_data_dir}
|
|
| 716 | 716 |
sudo rm -f ${disk_image}
|
| 717 | 717 |
fi |
| 718 | 718 |
fi |