Unmount datastore

Posted Leave a commentPosted in Script

Was at VMUGDK the other day listen to Paudie O’Riordan to one of his great session on storage troubleshooting – He was talking about how to remove datastores safely and this script that I’ve created for our storage team earlier this year came to mind.   The script reli on William Lam‘s powershell module which can be found here http://blogs.vmware.com/vsphere/2012/01/automating-datastore-storage-device-detachment-in-vsphere-5.html The script has four options; list, unmount detach and all – The first three is self explanatory and the latter simply does all three, first it unmounts the datastore, then it detaches the datastore and lastly it list the datastore to verify […]