Removal of LUNS in a data store

I installed a new volume of virtual disk of three 2 TB (RAID5) SAS drives on our HP SAN. So I have 4TB as the disk capacity that LUN. Now I was ignorant of the fact that the maximum size of a data store for ESXi 4.1 2 TB - 512 bytes. So when I added this new 4 TB LUN to a store of data on ESXi 4.1.0, only 1.64 TB has been appearing as available as against 4 TB or 3.64 to capacity. Now, I want to delete this new LUN of this data store and return to the utility of HP storage to recreate smaller i.e. two 2 TB LUN management. However, the problem I have is, I don't know how to remove this new LUN in the data store to which I added this without losing data or a data store. In my case, I had a data store 300 GB to 1.09 and I added this new 1.64 TB LUN to this Datastore.But I want to delete this LUN data store. Thank you, Clément

I'm afraid there is no way taken in charge to remove a measure from a data store. If you want to use the entire disk space, you must destroy the entire data store.

André

Tags: VMware

Similar Questions

  • get support scsi LUNS for the data store?

    I've been delving into the different classes available to HostSystem.queryHostConnectionInfo () and none of the properties appear to contain the id of naa I see when I look at LUNS on an HBA.  How do you get to LUN support for a data store?

    Figured it out.  For anyone else who wants to know:

    I created two actions, one to return a hash of the id of naa-online data store object and another action to return a hash of the naa-online drive scsi id

    // actions
    //getDatastoresKeyedByLUN
    var o_diskHash = new Properties();
    
    for each (var scsiDisk in u_host.config.storageDevice.scsiLun)
    {
      //System.log("-> LUN: " + scsiDisk.canonicalName);
      for each (var dataStore in u_host.datastore)
      {
      if (dataStore.info.hasOwnProperty("extent"))
      {
      for each (var scsiDiskPartition in dataStore.info.vmfs.extent)
      {
      if (scsiDiskPartition.diskName == scsiDisk.canonicalName)
      {
      o_diskHash.put(scsiDisk.canonicalName, dataStore);
      }
      }
      }
      }
    }
    
    return o_diskHash;
    
    // getScsiDisksKeyedByLUN
    var o_diskHash = new Properties();
    
    for each (var scsiDisk in u_host.config.storageDevice.scsiLun)
    {
      o_diskHash.put(scsiDisk.canonicalName, scsiDisk);
    }
    
    return o_diskHash;
    
    // in workflow
    for each (var can in dstoreMap.keys)
    {
      System.log(dstoreMap.get(can).name + "(" + lunMap.get(can).canonicalName + ")");
    
    }
    
  • Detach a lun using the data store name?

    All (or Luc lol)

    I am wanting to use the disc to detach function, but instead of passing naa.id, I wish I could pass the name of a data store already disassembled data store to get the id of the naa. I would also like to pass a list of hosts, rather than to all guests who tied it.  I watched Alan functions but its going to each host rather than being able to move from a specific host.

    I took a slap at him earlier, but I'm a little confused on how to do it.

    http://www.lucd.info/2011/11/25/LUN-juggling-in-vSphere-5/

    Any help?

    With a small change to the functions of Alan, you can use a parameter of VMHost.

    In there, you specify one or more ESXi servers where the data store must be dismounted and detached.

  • LUN in the data store

    someone knows how to get the Datastore LUN capacity... pls

    You will need to get the MOR of a data store and you will be able to extract the ability as well as other attributes presented in the property: http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.Datastore.Summary.html

    You can also take a look at this health check of VMware script that retrieves information about the data among other things store in your infrastructure to your ESX/ESXi hosts and vCenter: http://communities.vmware.com/docs/DOC-9420

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

  • Procedure to remove the LUNS

    I want to remove a LUN of vSphere data store: it is best to remove the LUN of vSphere first, and then rescan all host bus adapters, or remove the logic of the GUI of manufacturers of storage unit number (in my case HP) and then rescan the HBAs in vSphere, or is - not important?

    See you soon

    That's how I would do it.

    1) power off and vMotion virtual all computers, you must first on the LUN.

    (2) remove the LUN of vSphere

    (3) rescan HBAS

    4) enter your San and delete logic unit number (if you want to make a real reformatting/removal of it)

  • How to create LUNS target the same data store?

    In vnx5100, we created two partitions (MON) to be shared separately with 2 VM machines for clustering

    The question here is, that I have assigned the size of the LUN to a new data storage. And when I created ROW for a virtual machine, I had to choose the target LUN, but I wasn't able to see the unit number logic I'm looking for (the one that I have allocated for the storage of data, I created).

    The question here is:

    Why the logic unit number assigned to the storage is not displayed in the list?

    Do we need to create a LUN for the data store and a separate LUN target in Vsphere with the same size of the LUN in VNX?

    What is the target LUN in VMware (vsphere client)?

    Kind regards

    To a RDM and VMFS data store, you must create/submit two LUNS for ESXi hosts. What is stored on the VMFS data store is only the RDM mapping file (this will be created at the time wherever you add the raw LUN to a virtual machine), who shows up with the size of the RDM LUN, but requires no available disk space on the data (as a few bytes) store.

    André

  • What is a relationship between the data store and LUN?

    Hello

    I added 3 LUNS to a data store, but I can't list them since the MOB data store. Could someone tell me how to do it.

    Thanks in advance.

    Lee

    LUNS was formatted as VMFS and created a data store? If not, it will not be displayed. You can search for available LUNS that can be used to create a VMFS with QueryAvailableDisksForVmfs volume

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    If you find this information useful, please give points to "correct" or "useful".

  • Configuration of San - data store have more than 1 LUN

    Hello

    We look at our San configuration for improvements. Our San has about 10 TB total.

    We currently have 6 LUN 1.5 TB all which are enclosed in 1 store 10 TB data

    It was suggested that we should NOT combine multiple LUNS in a data store for the reason if 1 LUN goes wrong then the entire data store is non-refundable.

    Although our SAN LUNS are created on top of raid 6 and are therefore a bit 'protected' by councils LUN 1 data store is interesting

    Does anyone have ideas to share?

    Thank you

    Tom D

    I would say that having a single data store, regardless of the underlying storage architecture is probably not a good idea.  Although this configuration is authorized you can paint yourself in a corner fairly quickly.

    1. one wonders about the maximum number of VMDK you should have by the data store.  http://communities.VMware.com/message/944120  Basically the more s VMDK on the SCSI data store more blocking of activity taking place on the disk, causing performance problems.  Each VMware engineer, I've talked about seems to stay around the VMDK 20 a range of data store, but that could change with vSphere.

    2 - How this data store backup and how long does it take?  What happens during a restore scenario?  10 TB is plenty of space and could take some time for the backup.  If you push it on tape and you must always restore the together 10 to it could take weeks or months.  This space by breaking into warehouses of smaller data gives you smaller segments of data that you can restore in case of disaster.

    3 - the number of data warehouses you have is very important if you are always looking to implement the Site Recovery Manager.  SRM relies on your storage device to replicate data between the sites.  There could be serious consequences on the rate of change of the data for a single LUN 10TB.  If you are moving in several data stores that it will make it easier to handle your recovery plan.

    Apart from the considerations above of VMware. I guess 7 performance LUNS in RAID-6 is not so great.  You have a lot of protection, but you pay for it with capacity and performance.  If you went to 10 stores of data and the LUN 10 you can change RAID settings at each data store to optimize performance, protection, and capacity.  For example 4 LUN RAID-10 high performance DB apps and 6 LUNS to RAID-5 for the ability.  With smaller LUN and data warehouses a disk or LUN failure will affect only a smaller set of services rather than your entire data center.

    In short, unless there is a really compelling reason to go with a single store of 10 TB database, I recommend you to change your architecture.

  • Collecting data store information

    Hi all

    I need to produce a report of all data stores that will include the name of datstore, the capacitygb, the freespacegb and the NAA.  That's what I came with, but it works simply forever.   Any suggestions?

    $datastores = get-Datastore.
    Where-Object {$_.ExtensionData.Info.GetType ().} Name - eq "VmfsDatastoreInfo"}
    $report = @)


    {Foreach ($d in $datastores)

    $temp = new-Object - TypeName PSObject-property @ {}
    Name = $d.Name
    CapacityGB = $d.CapacityGB
    FreeSpaceGB = $d.FreeSpaceGB
    NAA = Get-Scsilun - Datastore $d | Select canonicalname
    }
    $report += $temp
    }

    $report | Export-Csv h:\Documents\AllScripts\test3.csv

    The cmdlet Get-ScsiLun can take a long time, it isn't the fastest cmdlet around.

    If you have only 1 LUN in a data store, you can do something like this to get the same result

    Get-Datastore | where {$_.Type -eq "VMFS"} |Select Name,CapacityGB,FreeSpaceGB,@{N="NAA";E={$_.ExtensionData.Info.Vmfs.Extent | Select -ExpandProperty DiskName}} |Export-Csv c:\report.csv -NoTypeInformation -UseCulture
    

    If there are more than 1 LUN by the data store, the script needs a little change.

    Get-Datastore | where {$_.Type -eq "VMFS"} |Select Name,CapacityGB,FreeSpaceGB,@{N="NAA";E={[string]::Join(',',($_.ExtensionData.Info.Vmfs.Extent | Select -ExpandProperty DiskName)}} |Export-Csv c:\report.csv -NoTypeInformation -UseCulture
    
  • How to maintain the availability of the data store after the upgrade to ESXi 5.1 with the new IP address and the naming convention?

    How can we maintain access to the presented LUNS and VMFS data store after we improve the ESX in ESXi with the new naming convention and the new model of IP addressing?

    My back-end SAN EMC Clariion is VNX

    Thanks in advance.

    How are the hosts connected to storage systems. With FC HBA for example, there is basically nothing you need to do since the WWN will remain the same and so LUN presentation of the zoning on the switch and storage system does not need to be reconfigured.

    André

  • Deletion of the data store

    Hello

    I deleted a data on a cluster through a host store. The data store is not longer available on all hosts, but it still appears on home / inventory / data warehouses.

    The hosts are in 4.1.0 (build 260 247), the vCenter is 4.1.0 Build 258 902.

    The data store has been 200 GB and used on 10 hosts, all with the same version.

    The "Delete" option is not available on the data (by clicking right on) store, the data store is no longer visible on the hosts.

    How can I clean the records of data store on the inventory of the data store?

    Thank you very much in advance for your answers.

    KB http://kb.vmware.com/kb/1026661 explains the process of how to remove the vCenter Server DB data store in a case like this.

    André

  • How to add a logic unit with an existing data store number

    I have a logic unit number I replicated from a SAN at a data center in a SAN to another data center. I want to map this LUN to a cluster of ESX 4 and use the store of existing data on the LUN to recover the virtual machines it contains. What is the best way to do it? Guests will see the existing data store, when I rescan HBAS or y at - it a trick to add a data store existing cluster?

    It's a separate LUN on a different SAN mapped to another set of hosts. Once I have a new analysis for the new LUNS and data warehouses, store data on this LUN will display in the list of data stores to then browse data warehouses and register virtual machines on it?  Or still do I add storage and first select the existing data store?

    Given that the hosts did not see the original LUN before, the data store should appear just after the new analysis.

    André

  • remove the Cluster data store data store

    I have an infrastructure with vCenter and ESXi 4 5.5 I have a data cluster store in SAN with 8 Mon, I need to remove 3 Lun (to be used for other purposes) what is the appropriate procedure

    to remove the Lun (end then to destroy)? Thank you

    Do you want the LUN to use for purpose of non-vSphere? If so, you can just storage vMotion virtual machines since associated LUN data warehouses that you want to decommission (or simply putting the data store in maintenance mode, in this way, that the virtual machines will automatically be migrated). Cleaning after the data store, move the data store from the cluster data store, and then delete the VMware environment data store as described here: best practices: how to properly remove a unit number logic of a host ESX - VMware vSphere Blog - VMware Blogs

  • Can I remove this data store?

    Hello guys,.

    I free up space in a storage, and for that to work correctly, I followed the following steps:

    1. I created a new data store in other containers for storage.

    2 - I did a migration of storage of the old data store to the new.

    3 - remove the old VMDATA.

    At this point, I glued, because the old data store is not empty... West a strange folder inside, but I don't know if I can remove it, as you can see in the image below.

    VMDATA.GIF

    The question is: can I remove this data store? The showing on the photo, UID is the same UID of the LUN I want deleted.

    I use VMWARE ESXi 5.1 Enterprise Edition Plus.

    Kind regards

    Roberto

    files and folder in dotted lines are normally for the metadata of the data store itself.

    so, you can delete the data without any problem store.

    BTW. If you delete a data store and it is still used by a virtual machine the delet-job will be cancelled. There is a small security bit set

  • Failed to create data store on LUN ISCSI

    Get the following error when attempting to create a new data store after a new installation of ESXi 5.5U2.

    Location:

    • UCS B200 servers using the VIC-1280 map and
    • Interfaces ISCSI connected directly from the fabric of interconnection to the NetApp FAS2552 with TwinAx cables
    • MTU is set for extended frames (9000) on the interface of NetApp, vNIC for ISCSI vKernel vSwitch and group interface ports
    • During the initial setup of the vSwitches, I forgot the MTU setting Port and interfaces group wouldn't even ping, so all the MTU setting are good
    • ISCSI connection is green and LUN created and present storage warehouses are considered as available on the ESX Server to create a data store (sizes 1 TB and 2 TB tested times)
    • The NetApp storage have been created as a thin provisioned and thick provisioned - neither works and gets the same error

    Any ideas would be very useful. Technical support has not yet responded.

    Thanks in advance.

    DM

    OK, after working with NetApp and VMware on a conference call (after both made each other) bottom line "fix" was to remove the iSCSI port bindings, remove broken paths, remove the vSwitches and rebuild again.

    1. create vKernel vSwitch with appropriate port group

    2. set the MTU to 9000 on the port group and vSwitch

    3. create the bindings for each interface iSCSI Port

    4 re-scan

    5 successfully create the data store

    Oddly enough, I had to repeat this process 3 times for one of the blades, but it worked the first time for 3 other involved blades.

    VMware technical support did provide the following as a look at the LUN of the CLI:

    1. / vmfs/devices/disks cd

    ls-l

    We see and out of all the available discs

    Identify the Lun Naa.xxxxxxxx

    2. run the Naa.xxxxx reported in step 2

    partedUtil getptbl /vmfs/devices/disks/naa.xxxxxxx

    If there is a partition, you might see something similar to

    1 63 2249099 131 128 > 1 is the partition number

    or

    You can see and error, if error please contact technical support

    3. If there is partition, you can delete

    partedUtil remove /vmfs/devices/disks/naa.xxxxxxx 1

    NOTE: This process did not work, but is still useful nonetheless. It could work if the LUN has been used by another operating system and need cleaning. But my situation was all greenfield.

Maybe you are looking for