Created
March 7, 2016 14:50
-
-
Save mstrzele/57b88e0d390a5be04cb3 to your computer and use it in GitHub Desktop.
This file contains 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
pkill -KILL tgtd && for id in $(cinder list --all-tenants | awk -F '[[:blank:]]*\\|?[[:blank:]]+' '{ if ($4 == "error_deleting") print $2 }'); do lvremove -f /dev/cinder/volume-${id}; done && service tgtd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment