I am trying to delete close to a hundred snapshots left over from a migration using SVM-DR.
I have built a file called snaplist that contains:
vserver volume snapshot
Then i run a while loop to go through the file:
while read vserv vol snap
do
ssh -n admin@cluster "set adv -c off ; volume snapshot delete -vserver $vserv -volume $vol -snapshot $snap -force true"; sleep 3; done < snaplist
I get this error when io try to run it:
" is an invalid value for field "-foreground <true|false>"
Valid choices in this command's context: true, false
" for parameter "-foreground". A future release may
require "-foreground" to be specified before the value.
I can't seem to figure where that's coming from! I'm sure it's something stupid I'm missing!
Any help would be appreciated!