diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/cleanup-host | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host index 59d463b22..392b92fee 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -47,6 +47,11 @@ fi echo "Creating a 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..." sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab |
