diff options
| author | Mauricio Lima <mauriciolimab@gmail.com> | 2016-03-28 14:09:23 -0400 |
|---|---|---|
| committer | Mauricio Lima <mauriciolimab@gmail.com> | 2016-04-01 16:00:17 -0400 |
| commit | 7f2dd73dcc51cf307c4fa6614898f471d73862a4 (patch) | |
| tree | 5a57e56ae3ffd9fa01ca0aa4011e35c082560bcf /tools | |
| parent | 834b5eff5c1e3768fdc829128cae0b0955420bcd (diff) | |
| download | kolla-7f2dd73dcc51cf307c4fa6614898f471d73862a4.tar.gz kolla-7f2dd73dcc51cf307c4fa6614898f471d73862a4.zip | |
Add a step to clean all ceph references in fstab
After run cleanup-containers script, was necessary to
clear references to the ceph in fstab file manually
Change-Id: I264e6644d5d569a9b56115ea31b15589b093c3f9
Closes-Bug: #1562991
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/cleanup-host | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host index 1fc0c7aed..5bb357c4a 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -26,3 +26,9 @@ ip -o link show | awk -F': ' '/vxlan/{print $2}' | while read -r ifname ; do echo "Removing vxlan interface $ifname on the host" ip link delete $ifname type vxlan done + +echo "Creating a fstab backup..." +sudo cp /etc/fstab /etc/fstab_backup + +echo "Removing ceph references from fstab..." +sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab |
