Unmount Ceph OSD disks as part of destroy
Change-Id: Ic0b0f5efb12eab58e7872b30611a39640dc44cc2 Closes-Bug: #1629224
This commit is contained in:
parent
80c4d7e401
commit
c9e4e3d907
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Unmount Ceph OSD disks as part of 'kolla-ansible destroy'
|
@ -47,6 +47,11 @@ fi
|
|||||||
echo "Creating a fstab backup..."
|
echo "Creating a fstab backup..."
|
||||||
sudo cp /etc/fstab /etc/fstab_backup
|
sudo cp /etc/fstab /etc/fstab_backup
|
||||||
|
|
||||||
|
echo "Unmounting Ceph OSD disks"
|
||||||
|
for mount in $(mount | awk '/\/var\/lib\/ceph/ { print $3 }'); do
|
||||||
|
umount $mount
|
||||||
|
done
|
||||||
|
|
||||||
echo "Removing ceph references from fstab..."
|
echo "Removing ceph references from fstab..."
|
||||||
sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab
|
sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user