diff options
author | 2015-10-28 07:59:27 +0000 | |
---|---|---|
committer | 2015-10-28 07:59:27 +0000 | |
commit | 5d0f138cdbbd5459984c41eaa05dfaa7c074167e (patch) | |
tree | 43104cb39f0999c36813b3324afc42abe623f406 /deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh | |
parent | 2e27389414987ec721f31ab75d415bb5a5ceaa99 (diff) | |
parent | dcd8ebd9d8da04c91650f596ae78f92115f8a97b (diff) |
Merge "cinder volume space is too small"
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh')
-rw-r--r-- | deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh b/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh new file mode 100644 index 00000000..9670da12 --- /dev/null +++ b/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh @@ -0,0 +1,6 @@ +size=`df /var | awk '$3 ~ /[0-9]+/ { print $4 }'`; +if [[ $size -gt 2000000000 ]]; then + echo -n 2000000000000; +else + echo -n $((size * 1000)); +fi |