Datastore Mount/Unmount Detach/Attach functions

简介:

A set of functions to allow you to unmount/mount and detach/attach datastores from multiple hosts.

 

List all datastores and their mount/detach status by passing your datastore object(s) into the Get-DatastoreMountInfo advanced function as shown below:

 

List.jpg

 

To unmount a datastore pass your datastore object(s) to the Unmount-Datastore advanced function as seen below, this will unmount the datastore from all attached hosts:

 

Unmount.jpg

 

Once unmounted you will then be able to detach the datastore from the hosts using the Detach-Datastore cmdlet as shown below:

 

Detach.jpg


Script download

https://communities.vmware.com/servlet/JiveServlet/download/18008-1-78898/DatastoreFunctions.txt

 

Forward from

https://communities.vmware.com/docs/DOC-18008

本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1983749如需转载请自行联系原作者


520feng2007

相关文章
|
10月前
|
存储 运维 Java
Unable to open socket file: target process not responding or HotSpot VM not loaded
在说问题之前,还是那句话,linux 系统一切皆文件。之所以这个错误,那肯定是某些文件有问题。经过查阅相关资料了解到如下: 1.java进程在启动时,在%TEMP%/hsperfdata_%USERNAME%路径下创建进程的临时文件。 %TEMP% 在windows系统中表示 windows的临时目录。一般在C:\Users\用户名\AppData\Local\Temp %TEMP% 在linux 系统中,一般在/tmp目录下
3281 0
|
11月前
|
前端开发 JavaScript
[Bugfix]it looks like you called `mount()` without a global document being loade
jest测试react组件时尝试获取mount组件报错,并无法进行测试,解决过程记录。
63 1
My Lead route attach and detach issue
My Lead route attach and detach issue
69 0
My Lead route attach and detach issue
|
数据库 网络协议 SQL