Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (9 sloc) 398 Bytes
#!/bin/bash
# ------------------------------------------------------------------------ #
# Removes all voluems physically from the disk which are in 'purged' state #
# ------------------------------------------------------------------------ #
for f in `echo "list volume" | bconsole | grep Purged | cut -d ' ' -f6`; do
echo "delete volume=$f yes" | bconsole;
rm -rf /mnt/nas/$f;
done
exit 0
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.