diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-04-01 20:44:25 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-04-01 20:44:25 +0000 |
| commit | 7a27826c78ba0e7427dba80b19cff3aa890cf3cb (patch) | |
| tree | 530c912922f89f84d624e57b23b008febc09f5ab | |
| parent | ad05c1846df0c7bc4998d266b32e6f333a60269e (diff) | |
| parent | 7f2dd73dcc51cf307c4fa6614898f471d73862a4 (diff) | |
| download | kolla-7a27826c78ba0e7427dba80b19cff3aa890cf3cb.tar.gz kolla-7a27826c78ba0e7427dba80b19cff3aa890cf3cb.zip | |
Merge "Add a step to clean all ceph references in fstab"
| -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 |
