From 67c7d0b9519c1fd9e3e0ac108a4c451baeb42557 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 31 May 2019 07:48:20 -0400 Subject: [PATCH] osa: add tool to cleanup host This tool will contain more things eventually but for now it'll just cater for a list of things to clean up in environments with low disk space. Change-Id: I84568f4de20c6c38c96e7a4c1fcad6d5c949d205 --- openstack-ansible/cleanup_host.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 openstack-ansible/cleanup_host.sh diff --git a/openstack-ansible/cleanup_host.sh b/openstack-ansible/cleanup_host.sh new file mode 100644 index 0000000..e978f48 --- /dev/null +++ b/openstack-ansible/cleanup_host.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# This script reclaims space on a host that might +# be low on disk space by getting rid of logs and +# extra data. + +find /openstack/log/ -type f | xargs -n1 truncate -s0