Merge "Unmount Ceph OSD disks as part of destroy"
This commit is contained in:
commit
3371152960
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Unmount Ceph OSD disks as part of 'kolla-ansible destroy'
|
@ -37,6 +37,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…
Reference in New Issue
Block a user