Skip to content

Instantly share code, notes, and snippets.

@mstrzele
Created March 7, 2016 14:50
Show Gist options
  • Save mstrzele/57b88e0d390a5be04cb3 to your computer and use it in GitHub Desktop.
Save mstrzele/57b88e0d390a5be04cb3 to your computer and use it in GitHub Desktop.
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