github.com/swiftstack/proxyfs@v0.0.0-20201223034610-5434d919416e/ci/ansible/tasks/files/usr/bin/resetswift (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  /usr/bin/unmount_and_stop_pfs
     5  echo "Resetting Swift drives..."
     6  rm -rf /srv/?/node/d?/*
     7  echo "Resetting Swift logs..."
     8  sudo find /var/log/swift -type f -exec truncate {} --size 0 \;
     9  /usr/bin/start_and_mount_pfs "$@"