VMware Cloud Community
LeoKurzKDA
Contributor
Contributor
Jump to solution

Remove Datastores in vSphere 6.7

Hello,

I'm about to retire an old storage system. All the datastores are evacuated, storage-clusters removed. According to the best-practices, if you want to use powershell, you should use the "Detach-Datastore" commandlet. But there is no such commandlet in the latest PowerCLI anymore. There also is no "unmount-datasore". I still asume you have to detach the LUNs before unpersenting them to avoid APD issues, but I don't want to do this all by hand as there are quite a lot LUNs and paths.

Any idea?

Regards

__Leo

Reply
0 Kudos
1 Solution

Accepted Solutions
Lalegre
Virtuoso
Virtuoso
Jump to solution

Hi,

Here i recommend you to use these two resources from two members of the communities:

View solution in original post

Reply
0 Kudos
3 Replies
Lalegre
Virtuoso
Virtuoso
Jump to solution

Hi,

Here i recommend you to use these two resources from two members of the communities:

Reply
0 Kudos
Nawals
Expert
Expert
Jump to solution

Here is the powercli script to unmount and detached multiple datastores.

Unmount and Detach Multiple Datastores from VMware ESXi Hosts

NKS Please Mark Helpful/correct if my answer resolve your query.
Reply
0 Kudos