Created
October 27, 2016 10:57
-
-
Save teddyking/ea7da74f696671907f2b5b74d5ca4a7c to your computer and use it in GitHub Desktop.
AUFS hang on umount of loop device cleanup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -x -e | |
| ps aux | grep namespaced | grep -v grep | awk '{print $2}' | xargs -n1 kill -9 || true | |
| umount /root/workspace/4.4-loop-umount-hang-test/mnt/container-2 || true | |
| umount /root/workspace/4.4-loop-umount-hang-test/diff/container-2 || true | |
| umount /root/workspace/4.4-loop-umount-hang-test/mnt/container-1 || true | |
| umount /root/workspace/4.4-loop-umount-hang-test/diff/container-1 || true | |
| rm -rf /root/workspace/4.4-loop-umount-hang-test || true | |
| rm -rf /tmp/pivot-* | |
| echo "Mounts:" | |
| cat /proc/self/mounts | grep aufs || true | |
| echo "Loopback devices:" | |
| losetup -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment