Add files via upload

This commit is contained in:
kneutron 2021-08-19 22:32:50 -05:00 committed by GitHub
parent 1e3a410aa2
commit 7bc629440b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,18 @@
#!/bin/bash
# cleanup inaccessible disks in VMM
vboxmanage list hdds > /tmp/vbox-hds-all.txt
vboxmanage list hdds |grep -B 2 'State: inaccessible' \
|egrep -v 'Parent|State|--' >/tmp/infile-vboxdel.txt
#zfs-SAS-T5-12*.vdi > /tmp/infile.txt
#set -x
while read line; do
delme=$(echo "$line" |awk '{print $2}')
echo "$delme" >> /tmp/vbox-hd-inacc-del.log
vboxmanage closemedium disk "$delme" --delete
done < /tmp/infile-vboxdel.txt
date;