Script

Unmount datastore

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 it status.

 

 

3 thoughts on “Unmount datastore

  1. 美国就是用航母来全世界炫耀,我们再不建航母就要被它吃掉了,就是山寨的也好啊,以后等我们技术成熟了,也不就可以造了,相信中国人会有那么一天要雄起来的

Leave a Reply

Your email address will not be published. Required fields are marked *