Detaching a datastore or storage device from multiple ESXi 5.0 hosts

Using the PowerCLI

To detach a storage device using PowerCLI:

  1. Review the VMware Contributed Sample Code disclaimer, and deploy the community-supported PowerCLI script available atAutomating Datastore/Storage Device Detachment in vSphere 5.
  2. Ensure that you have already unmounted the desired datastore. For more information, see Unmount VMFS or NFS Datastoresin the vSphere 5 Documentation Center.
  3. List all datastores and their attached hosts by running the command:

    Get-Datastore | Get-DatastoreMountInfo | Sort Datastore, VMHost | FT –AutoSize

    You see an output similar to:

  4. Select the appropriate Datastore and record the name beneath the Datastore column, and confirm that the Mountedcolumn contains the value False for all hosts.
  5. Detach the devices from all hosts using the command:

    Get-Datastore datastore name| Detach-Datastore

    Where datastore name is the name of the Datastore recorded in Step 3.

    You see an output similar to:

    Detaching LUN naa.5000144f52145699 from host esx01.vmw.local...
    Detaching LUN naa.5000144f52145699 from host esx02.vmw.local...
    Detaching LUN naa.5000144f52145699 from host esx03.vmw.local...

https://www.247rack.com/dashboard/knowledgebase/44/Detaching-a-datastore-or-storage-device-from-multiple-ESXi-50-hosts.html

时间: 2024-10-13 12:29:28

Detaching a datastore or storage device from multiple ESXi 5.0 hosts的相关文章

How to Properly Remove Datastore or LUN from ESXi 5.x hosts

This post might be sounds simple that removing datastore from ESXi host but it is not actually simple as it sounds. VMware Administrators might think that right-click the datastore and unmounting. It is not only the process to remove LUN from ESXi ho

kvm初体验之七:attach usb storage device to a VM

1. virsh attach-disk vm1 /dev/sdb sdc 将host上的/dev/sdb挂载到vm1的/dev/sdc上 2. virsh detach-disk vm1 sdc 将vm1上的/dev/sdc卸载

fastdfsV5.0.5 服务端storage报错 response status 17 != 0

您好!我再使用fastdfsV5.0.5版本服务器在报错: ERROR - file: tracker_proto.c, line: 48, server: 127.0.0.1:23000, response status 17 != 0 请问是什么原因引起的呢? 我使用客户端版本是fastdfs_client_java._v1.25

Virtualization of iSCSI storage

This invention describes methods, apparatus and systems for virtualization of iSCSI storage. Virtual storage isolates the clients from the management of physical storage resources. In this invention, each physical storage device supports multiple log

Docker 1 12新功能探索(4) 1分钟创建集群

在这篇文章里面我们将会通过创建一个极其简单的3个节点的集群来学习一下docker swarm 模式的使用方法.这个1.12版本中最引人关注的部分到底使用的感觉如何.因为没有在大型的生产环境中进行严格的比较,单从研究性质或者小规模的集群的创建的感觉来说和kubernetes的集群创建不相上下,使用方便,在准备妥当的情况下,手速快的朋友1分钟之内完全能够创建完毕. 事前确认 [[email protected] ~]# docker info |egrep 'Manager|Version' WAR

Resource Access Based on Multiple Credentials

A collection of multiple?user?credentials?each associated with one of multiple different users is obtained at a device, and one or more of the multiple?user credentials?are verified. A determination is made as to whether access to a resource is permi

High availability with the Distributed Replicated Block Device

The 2.6.33 Linux? kernel has introduced a useful new service called the Distributed Replicated Block Device (DRBD). This service mirrors an entire block device to another networked host during run time, permitting the development of high-availability

Linux and the storage ecosystem

Linux is the Swiss Army knife of file systems, and it also offers a wide variety of storage technologies for both desktops and servers. Beyond the file system, Linux incorporates world-class NAS and SAN technologies, data protection, storage manageme

PatentTips - Controlling TSC offsets for multiple cores and threads

BACKGROUND Many processors include a time stamp count (TSC) counter which is typically implemented as a counter that increments at a fixed rate. Some known TSC counters are clocked at a bus clock rate and a multiplier value is added each bus clock cy