Created
March 28, 2024 00:25
-
-
Save pojntfx/cd2bd1cc51d5ee7c2b802ef75bf90e36 to your computer and use it in GitHub Desktop.
Shut down all NBD clients on a Linux host
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
#!/bin/bash | |
sudo su -c 'for file in /dev/nbd*; do nbd-client -d $file & done; wait' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment