Had anyone able to successful run bash script to reclaim storage from SAN on ESXi 5.1?
Here is script I got from this web https://kallesplayground.wordpress.com/2014/04/03/storage-reclamation-part1/
Getting this error message ./reclaim_storage.sh: cd: line 11: can't cd to /vmfs/volumes/mb-view-xtio-00:"
It was not able to cd in directory through the for loop
Any advice? Thank you. Steve
The "ls" adds a ":" to the end of your path. That is why the "cd" fails
That is from the echo line. If I do this then it should not give me echo line with :
for datastore in `ls /vmfs/volumes/view-xtio*`
for i in 10 20 30 40 50 60 70 80 90 95
cd $datastore; vmkfstools -y $i >> /vmfs/volumes/vmax/scripts/logs/reclaim_storage.log