Allocation of automated data store

I am trying to determine if there is an automated method to invoke the discovery of a NFS or SAN data store.  Ideally, it would be a CLI or command scriptable which could be run to pick up a new volume, create a VMFS file system and assign a name to the data store.    No idea if something like that exists, or if all data storage must be allocated to the hand?

Yep, you definitely can automate this process with the vSphere API, just present your LUN that it's FC/iSCSI or NFS and take action appropriate depending on the type of storage you are presented.

Here are some of the useful methods that can be useful when you try to automate this process:

RescanAllHba

QueryAvailableDisksForVmfs

CreateVmfsDatastore

CreateNasDatastore

You also want to carefully go over the document SDK: Getting Started with vSphere SDK - Update for SDK 4.1 release if you are new to VMware API/SDK and you can post in the developer community if you have any other questions.

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

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".

Tags: VMware

Similar Questions

  • Find Select or search the allocated space of vCAC Database data store

    Hello

    I need to declare the data store space allocated by the store of data and market.

    In the attachment is the vCAC display where values are visible.

    Homepage > Infrastructure > reservations > Reservations

    Does anyone know where to find in the database?

    SELECT DISTINCT D.Name, SUM(E.MaxCapacity) AS Reserviert, SUM(B.StorageAllocated) AS Verwendet
    FROM [vCAC].[dbo].[HostReservation] A, [vCAC].[dbo].[HostReservationToStorageStats] B, [vCAC].[dbo].[HostToStorage] C, [vCAC].[dbo].[HostStorageReservationPolicy] D,[vCAC].[dbo].[HostReservationToStorage] E
    WHERE A.HostReservationName = 'RES-Default' AND A.HostReservationID = B.HostReservationID AND A.HostReservationID = E.HostReservationID AND B.HostToStorageID = C.HostToStorageID AND C.HostStorageReservationPolicyID = D.HostStorageReservationPolicyID AND C.HostToStorageID = E.HostToStorageID AND D.Name = 'Gold'
    GROUP BY D.Name;
    
  • 0 blocks free PTR - cannot create new files on the data store

    We have been experiencing problems trying to power on virtual machines. When attempting to power on virtual machines, we see the error "cannot extend the pagefile from 0 KB to 2097152 KB".

    We checked the .vswp file are created in the folder of the Virtual Machine on the data store. Connection to the ESXi host, we have seen the following in vmkernel.log error message:

    (2016 01-16 T 21: 19:40.556Z cpu1:4971732) WARNING: Res3: 6984: "freenas-6-ds": [rt 3] No. Space - has not found enough resources after the second pass! (requis_:_1,_trouvé_:_0) 2016-01 - 16 T 21: 19:40.556Z cpu1:4971732) Res3: 6985: "freenas-6-ds": [rt 3] resources t 0, e 0, PN 16, BM 0, b 0, RCs u 0, i 0, 4031 nf, pe 0, 0 2016-01-16 T 21 oe: 19:40.556Z cpu1:4971732) WARNING: SwapExtend: 683: impossible to extend the pagefile from 0 KB to 2097152 KB.

    This was surprising given that we have about 14 TB of space available on the data store:

    [root@clueless:~] df h

    Size of filesystem used available use % mounted on

    VMFS-5 20.0 T 5.4 T 14.6 T/vmfs/volumes/freenas-six-ds 27%

    However, when we use "dd" to write a 20 GB file, we would get "no space left on device:

    [root@clueless:/vmfs/volumes/55a00d31-3dc0f02c-9803-025056000040/deleteme] dd if = / dev/urandom of = deleteme bs = 1024 count = 2024000

    DD: writing "deleteme": no space is available on the device

    263734 + 0 records in

    out 263733 + 0 reviews

    [root@clueless:/vmfs/volumes/55a00d31-3dc0f02c-9803-025056000040/deleteme] ls - lh deleteme

    -rw - r - r - 1 root root 19 Jan 255,1 M 01:02 deleteme

    We checked that we have free inodes:

    The ramdisk name system include in reserved Coredumps used Maximum reserved free use pic free maximum allocated Inodes used Inodes Inodes Mount Point

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    root of true true 32768 KiB 32768 KiB KiB KiB 99% 99% 9472 4096 3575 176 176.

    true true etc 28672 KiB 28672 KiB 284 KiB 320 KiB 99% 99% 4096 1024 516/etc

    Choose true true 0 KiB KiB 0 KiB KiB 0 100% 0% 8 1024 8192 32768 / opt

    var true true 5120 KiB 49152 484 516 99% 90% 8192 384 379 KiB KiB KiB / var

    tmp false false 2048 KiB 262144 KiB 20 KiB 360 KiB 99% 99% 8 256 8192/tmp

    false false hostdstats KiB 310272 KiB 3076 KiB 3076 KiB 99 0% 0% 8192 32 5/var/lib/vmware/hostd/stats


    We believe that our cause is due to have 0 free blocks of PTR:

    [root@clueless:/vmfs/volumes/55a00d31-3dc0f02c-9803-025056000040] vmkfstools Pei - v 10/vmfs/volumes/freenas-six-ds.

    System file VMFS-5, 61 extending on 1 partition.

    File system label (if applicable): freenas-six-ds

    Mode: public TTY only

    Capacity 21989964120064 (blocks of files 20971264 * 1048576), 16008529051648 (15266923 blocks) prevail, max supported size of the 69201586814976 file

    Volume creation time: Fri Jul 10 18:21:37 2015

    Files (max / free): 130000/119680

    Blocks of PTR (max / free): 64512/0

    Void / blocks (max / free): 32000/28323

    The secondary blocks of Ptr (max / free): 256/256

    Drop blocks (approve/used/approve %): 0/5704341/0

    Blocks of PTR (approve/used/approve %): 64512/0/0

    Void / blocks (approve/used/approve %): 3677/0/0

    Size of volume metadata: 911048704

    UUID: 55a00d31-3dc0f02c-9803-025056000040

    Logical unit: 55a00d30-985bb532-BOI.30-025056000040

    Partitions split (on 'lvm'):

    NAA.6589cfc0000006f3a584e7c8e67a8ddd:1

    Instant native is Capable: YES

    OBJLIB-LIB: ObjLib cleaned.

    WORKER: asyncOps = 0 maxActiveOps = 0 maxPending = 0 maxCompleted = 0

    When we turn off a virtual machine, it will release 1 block of PTR and we would be able to on another VM / create the 20 GB file using "dd". Once we reached 0 free blocks of PTR, we are unable to create new files.

    Can anyone give any suggestions on how we may be able to clear the blocks PTR? We have already tried to restart all services of management on all ESXi hosts connected.

    FreeNAS is not running on a virtual machine.

    We solved the problem by finding a lot PTR blocks have been used by many of our models of virtual machine. Remove the disk models solved the problem.

  • Cluster data store

    Currently we have a number of data warehouses VMStore_Live1 at 8, recently we had a data store to fill and this due to a problem with some of the virtual machines running in our direct environment.

    I had a thought on the use of cluster data store so storage DRS would be used between data warehouses, we are currently using NetApp, would be one of your recommend using cluster data store? or is there some catch with this?

    We have a host with DRS and HA cluster, but at the moment we have just warehouses of separate data which manually migrate us vm.

    Yes,

    We have two modes:

    1 manual load balancing

    2. automatic load balancing

    We do not have partially automated our way to BLAH DRS cluster.

    Note that: automated initial investment is excluded in both modes: DTS generates a recommendation of initial investment which still requires a manual confirmation.

  • Get the size of the file for a particular file in a data store

    I was wondering if it was possible to get the size of a particular file on a data store. It seems that this should be trivial, but I'm new to PowerCLI and I see not all the properties of size when I invoke the cmdlet:

    PS fs:------> Get-ChildItem "somefile" * | Get-Member

    TypeName: VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreFolderImpl

    Name MemberType definition

    ----              ----------   ----------

    Method of ConvertToVersion T ConvertToVersion [T])

    Equals method Boolean Equals (System.Object, obj)

    GetHashCode method int GetHashCode()

    Type of the method GetType GetType()

    IsConvertableTo method bool IsConvertableTo (type toType)

    String the ToString ToString() method

    PSChildName NoteProperty System.String PSChildName = XXXXXXXXXXXXXXXXX

    PSDrive NoteProperty VMware.VimAutomation.ViCore.Cmdlets.Provider.DatastoreProvider.DatastoreDriveInfo PS...

    PSIsContainer NoteProperty System.Boolean PSIsContainer = True

    PSParentPath NoteProperty System.String PSParentPath=VMware.VimAutomation.Core\VimDatastore::\XXXXXXXXXXXXXX

    PSPath NoteProperty System.String PSPath=VMware.VimAutomation.Core\VimDatastore::\XXXXXXXXXXXX

    PSProvider NoteProperty System.Management.Automation.ProviderInfo PSProvider=VMware.VimAutomation.Core\VimDa...

    Datastore property {get ;} VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore data store

    DatastoreFullPath property System.String DatastoreFullPath {get ;}

    DatastoreId property System.String DatastoreId {get ;}

    FolderPath property System.String FolderPath {get ;}

    FullName property System.String FullName {get ;}

    Property ItemType ItemType of VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreItemType...

    System.Nullable'1 [[System.DateTime LastWriteTime, mscorlib, Version = 4.0.0.0 property, Culture = neutral, publ...

    Property System.String name {get ;}

    UID property System.String Uid {get ;}

    Faik, you must use the SDK API to find this HostDatastoreBrowser of information, i.e.

    .

    See for example Re: using SearchDatastore_Task

  • 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é

  • Complete data store during data transfer

    Hi all

    I'm having a serious problem with the ability to store data, if I transferred a huge amount of data to a virtual machine through SSH. The data store has a total capacity of 511 GB. During the process of transfer of the virtual machine stops, just when the data store is full. So the only solution is to detach other virtual machines from the data store, but it is not enough.

    We are using VMware ESX 3.5 and virtual machine is Ubuntu Server. Here is the configuration of the virtual machine:

    Memory: 1024 MB

    Processors: 1

    HardDisk1: 6 GB

    HardDisk2: 52GB

    HardDisk3: 230GB

    HardDisk4: 256 GB

    Storage distribution and capacity for the VM:

    # df h
    Size of filesystem used Avail use % mounted on
    / dev/map/vg00-VG00_ROOT
    3.4 G 2.6 G 621M 81%.
    No 495M 220K 495M 1% / dev
    No 500M 500M 0 0% / dev/shm
    No 500M 524K 500M 1% / var/run
    No 500M 500M 0 0% / var/lock
    No 500M 0 500 M 0% / lib/init/rw
    / dev/map/vg01-VG01_home
    5.4 G M 276, 4.8 G 6% / Home
    / dev/map/vg00-VG00_TMP
    1008M 34 M 924M 4% / tmp
    / dev/map/vg00-VG00_LOG
    1008M 53 M 904M 6% / var/log
    / dev/sda1 122 M 118 M 0 100% / Boot
    / dev/map/VG02-VG02_home_dpto
    479G 219 G 236 G 49% / home-Dept.

    HardDisk3 and HardDisk4 are mapped in a (VG02-VG02_home_dpto) LVM volume and its free space is 236 GB. Space free Dtx200: 4, 56 GB. I don't understand why. The problem may be caused by automatic generation VMDK:

    * ficheros00.platform.core.vmdk-> 6 GB

    * ficheros00.platform.core_1.vmdk-> 54 GB

    * ficheros00.platform.core_2.vmdk-> 241 GB

    * ficheros00. Platform.Core.-000002.vmdk-> 24 GB

    * ficheros00. Platform.Core_2 - 000001.vmdk-> 166 GB

    The first time, I got 20G of free space of the data store removing some residual VMs. Then I tried to copy a folder of 15 GB through the network by SSH from another server in files. It was the occupation during the first use: (just to compare)

    * ficheros00.platform.core.vmdk-> 6 GB

    * ficheros00.platform.core_1.vmdk-> 54 GB

    * ficheros00.platform.core_2.vmdk-> 241 GB

    * ficheros00. Platform.Core.-000002.vmdk-> 10 GB

    * ficheros00. Platform.Core_2 - 000001.vmdk-> 164 GB

    It seems 000002.vmdk and 00002.vmdk develop during the transfer of files, but they do not consolidate data. I don't know whether this is a normal behavior. I think that space used for ficheros00.platform.core-000002.vmdk-> 24 GB and ficheros00.platform.core_2 - 000001.vmdk-> 166 GB should be included in the ficheros00.platform.core_2.vmdk - > 241 GB and end of data transfer that they should disappear themselves.

    We calculate the initial free space before allocating hard disks of the virtual machine.

    In this data store, we currently have 2 VM:

    [root@hp585-01 eva4400:-02] # du-sh ficheros00.platform.core./
    472G ficheros00.platform.core

    [root@hp585-01 eva4400:-02] # du-sh lucus01.labo.core_1/
    36G lucus01.labo.core_1

    Any help would be appreciated. Thank you very much.

    Best regards

    Harry.

    Log files, I see that capture files two instant belong to basic disks on the two different data stores on this host ESXi 3.5 Update 3. In any case with being thick implemented basic disks, you should be able to delete snapshots in the snapshot with off the virtual machine Manager. If the virtual machine is still on when you delete the snapshots, you need more disk space for another, temporary snapshot (snapshot to help consolidate)

    When you have removed before snapshots, you did this with the virtual machine power on or power off?

    Turn off the virtual machine will be to free up disk space (the .vswp file is deleted) and merge data from snapshot (with only a single snapshot per virtual disk) in basic disks should not require additional disk space.

    Because the Snapshot Manager doesn't show pictures anymore after the failure of the attempt, you will need to create a new snapshot (to activate the button 'Clear all') and hit use 'delete all '. Because of the size of snapshots, it may require some time to merge data in basic disks, so be patient, even if the GUI user expires!

    André

    PS: Please check that the second VM on the data store does not work on snapshots too, who could fill the data store so that you remove snapshots of the virtual machine in question!

  • ESXi data store set to a maximum of 35 GB?

    Hello, I have ESXi installed as a virtual VM Workstation 9 machine and connected with vSphere.  If my laptop has 196 GB of free space, why my ESXi data store is set to a maximum of 35 GB?  I can increase 100 GB?

    How much space is allocated in vmware workstation to esxi virtual machine?

    probably of 35 GB

  • Help adding extensions to a VMFS data store

    Hello people,

    I am working on some automation for creation of data store and must be able to add extensions to a data store.  The initial creation of data store works well enough at this point, but I'm a little puzzled about how to add additional extensions.  In my example, I am using the navi cli to make the LUN UID off the coast of the Bay of EMC, then format it correctly for the canonical name the host for the creation of data store.

    I read a little about the extendvmfsdatastore here , but I am not able to separate the part "add the measure" of "questioning the existing data store and remove references to pass."  If someone has an extract whose orders must be performed and the text to pass to the .extendvmfsdatastore method, I'd be very happy.  I know measure in several data stores fall into disgrace with VMware, but I can't migrate 10TB data storage immediately.

    Thanks in advance!

    Brent

    omitted variable section

    **********************

    to connect-viserver $VC - https protocol-$VC_USER the username-password $VC_PASSWORD

    Import-CSV C:\PowerShell\VNX_buildout\TEST-DSCreate\Test_DSCreate.csv | {Foreach}
    $LUN = $_.alu
    Naviseccli-address = $UID $VNX_ADDRESS-User $password-VNX_USER_NAME $VNX_PASSWORD-scope 0 lun-list-l $LUN - uid. out-string
    $UID = $UID. Replace (":", "")
    $POS = $UID. IndexOf("6006")
    $UID = $UID. Remove (0, $pos)
    $CN = $UID. Substring (0.32)
    $CN = "naa. $CN ".
    write-host "CN = $CN - Array MONDAY = $LUN"
    New data store - VMHost $ESX_HOST-name $_ .datastr-path $CN - Vmfs-confirm: $false
    DataSet datastore store-$_.datastr - storageiocontrolenabled $true

    # Add the extensions of vmhbax:C:T:L or naa.xxx or?
    }

    I have reviewed the procedure I used, seems that there is an easier way to do it.

    You can try this version of the script?

    $esxName = "MyEsx"
    $tgtDSName = "MyDS"
    $freeLUN = "naa.6005076801801a34d000000000000078"
    
    $esx = Get-VMHost -Name $esxName
    $dsToBeExtended = Get-Datastore -Name $tgtDSName -VMhost $esx $dsSystem = Get-View $esx.ExtensionData.ConfigManager.DatastoreSystem
    $available = $dsSystem.QueryAvailableDisksForVmfs($dsToBeExtended.ExtensionData.MoRef)
    $lun = $available | where {$_.CanonicalName -eq $freeLUN}
    if($lun){
        $options = $dsSystem.QueryVmfsDatastoreExtendOptions($dsToBeExtended.ExtensionData.MoRef,$lun.DevicePath,$true)
        $dsSystem.extendVmfsDatastore($dsToBeExtended.ExtensionData.MoRef, $options[0].Spec)
    }
    

    If the LUN that you pass the $freeLUN variable is not free, the script will not call the extendVmfsDatastore method

  • Kickstart: Local data store destroyed do not reinstall it

    I noticed that when I reinstall ESXi 5 on a server already built, the previous local data store is not destroyed.

    I said to make a 'install' and 'overwritevmfs '.

    install - firstdisk = mptsas, local - overwritevmfs

    in the upper part of the kickstart but the store of previous local data remains.

    I tried to use clearpart

    clearpart - alldrives - overwritevmfs

    Yet the local data store of the previous generation, as well.

    Part of my process of kickstart is to rename the store local data (datastore1) to a meaningful name that includes the hostname so if I reinstall, the data store rename fails (since there is no datastore1 on the 2nd install).  Also, I need to know the name of the data store, as I'm checking out the files ' / ' when installing (via oem.tgz) and move before the first reboot in the section post % (or they will be gone). The only persistent location is the local data store. This also effects kickstart for resettlement syslog that goes to the local data store as well.

    Suggestions on how do I delete a data store local existing during the installation (unless you delete the RAID and re-create)?

    -JC

    I wrote the following script to rename the local old data store ESXi 5.0 using Primo-kickstart script:

    _____________________________________________________________________

    AcceptEULA

    #clearpart - firstdisk = cciss, local - all - overwritevmfs # removes all partitions on local drive (for G1 blade servers) but will not erase the label VMFS

    clearpart - firstdisk = hpsa, local - all - overwritevmfs # removes all partitions on local drive (for G6 blade servers) but will not erase the label VMFS

    install - firstdisk = hpsa, local - overwritevmfs

    rootpw SECRET

    reset

    % include/tmp/networkconfig

    % pre - interpreter = busybox

    # extract information network startup

    VMK_INT = "vmk0".

    VMK_LINE = $(localcli réseau ip interface ipv4 get | grep "${VMK_INT}")

    IPADDR = $(echo "${VMK_LINE}" | awk '{print $2}")

    NETMASK = $(echo "${VMK_LINE}" | awk '{print $3}")

    GATEWAY = $(esxcfg-route | awk '{print $5}')

    DNS = "10.130.0.21,10.130.0.22."

    Hostname = $(nslookup "${IPADDR}" | grep adresse | awk '{print $4}')

    echo ' network - bootproto = static - addvmportgroup = false - device = vmnic0 - ip = ${IPADDR} - netmask = ${MASK} - gateway = ${GATEWAY} - nameserver = ${DNS} - hostname = ${HOSTNAME} "> / MC

    p/networkconfig

    firstboot % - interpreter = busybox

    # Extract the host name of the host number

    # Example: HC - moon01.tapkit .net = ' 01, sc - moon02.tapkit .net = ' 02, sc - moonNN.tapkit .net = 'NN ',.

    HL ='hostname-s | WC-c"

    hostNum = $(nom d'hôte-s | cut-c'expr $hl-2'-'expr $hl-1')

    # Rename the local data store to something more meaningful

    # Find the current local data store NAME (exclude all the SAN HSV200 data store)

    DatastoreName = "$(liste étendue d'esxcli stockage vmfs |) grep ' esxcli - trainer = csv - format-param = fields = "Device, model" list of basic storage device | grep - v "HSV200". grep - v "Device". cut - d-f1' | AWK '{print $1}')'

    NewDataStoreName = "datastore$ hostNum.

    # Rename the data store

    Vim - cmd hostsvc/datastore/rename $DatastoreName $NewDataStoreName

    # copy % first startup script newspapers to persistent data store

    CP /var/log/hostd.log "/ vmfs/volumes/$NewDataStoreName/firstboot-hostd.log".

    CP /var/log/esxi_install.log "/ vmfs/volumes/$NewDataStoreName/firstboot-esxi_install.log".

    # Needed for configuration changes that cannot be performed in esxcli (thank you VMware)

    reset

    _____________________________________________________________________

    I hope this helps...

    A big thank you to William Lam for his great contribution: http://www.virtuallyghetto.com/2011/07/automating-esxi-5x-kickstart-tips.html

    Gilles Marcil

  • "External I/O load detected on a data store" on LUN in vSphere Client version 4.1.0 build 345043

    Hello

    I have an ESX environment into a cluster of BL460G6 and 4 VMware ESXi, 4.1.0 installation 348481 in it.

    I have active DRS and the parameter ' level of automation of Migration: "="fully automated ".

    If I open the 'Home' = > 'Inventory' = > 'Warehouses', I have 26 MON, but only 9 in "mode healty", everyone has the following Alerts tab "alarms":

    Name:                                                                                    Description:

    Default alarm "Workload external I/O detected on a data store" which triggers if an external I/O workload is detected on a data store.

    Default alarm 'Use of data on the disk store' to monitor the use of disk data store.

    If I open "Alarm settings" on the "load external I/O detected on a data store" and choose the tab 'Triggers', the event carries the name according to 'vim.event.NonVIWorkloadDetectedOnDatastoreEvent', but I do not see what is coursing the alarm.

    What can I do to remove this alert? Is this a hardware issue on my LUN that generated this alert? (If Yes, what can I do about it?)

    Kind regards

    Carl-Marius

    You must have an Enterprise license.

    Then check in the properties of the data store to see if the IGCS flag is set.

    For NOTTM there is a column in the list of data store where you can see if if on acceleration or not.

    André

  • get the history of use of data store

    When you go to the performance tab from a data store that you can see the allocation graph and space used on a range of time.

    How to access these statistics via powercli?

    Get-stattype-entity * does not return all the types of stat for data warehouses

    the point of this is I'm trying to script a report that shows the percentage of data in the last 7 days store

    for example, 80%, 81%, 82%, 82%, 82%, 83% and 83%

    A quick glance at my post called statistical data store

  • ESXi 4.1 VSphere and size of the file on the data store

    Hello

    I'm new to VMWare and have been reading on maximum configuration for virtual machines and

    Warehouses of data in this forum.

    If I have a computer virtual (Server Win2K8 R2) that in the future may reach 2 TB is true while

    I need to create a data store on the SAN network with a block size of 8 MB, so it can accommodate

    the increase in the size of the virtual machine?

    What is a correlation one between the size of the VM and the VM file size?

    Example: If the Win2K8 server reaches 1 TB, the size of the VM file also to 1 TB?

    And finally, if the maximum of 2 TB is reached on the Win2K8 server how to add

    more space for my VM?

    Thank you

    VM3434

    If I have a computer virtual (Server Win2K8 R2) that in the future may reach 2 TB is true while

    I need to create a data store on the SAN network with a block size of 8 MB, so it can accommodate

    the increase in the size of the virtual machine?

    Fix

    What is a correlation one between the size of the VM and the VM file size?

    Example: If the Win2K8 server reaches 1 TB, the size of the VM file also to 1 TB?

    There are two types of vmdk (the VM disk):

    • thickness: file is allocated in advance... so in your case, the file is already a file of 2 TB
    • thin: file is dynamic and reach the size max

    See also: http://communities.vmware.com/docs/DOC-10854

    And finally, if the maximum of 2 TB is reached on the Win2K8 server how to add

    more space for my VM?

    You can't... 2 TB is the max disk size.

    You can add more drives.

    André

  • Cannot add a new data store

    Let me preface this post by saying that I am an extreme noob to VMWare... Have only used MS HyperV in the past but looking to oust most of my hardware with VMWare on the recommendation of a colleague.

    On the problem.

    I have a server Dell PowerEdge 2900 with 32 GB of RAM and 8 TB of disk space.

    I installed ESXi yesterday and you can see my original data store, called "datastore1", which is only 325 GB.

    I try to add a new data store, but when I go to 'Add storage' in vSphere, select ' disk/LUN", the list is empty.

    I know I'm missing something, but don't know where to look.  What should I do to add a new datasore and subsequently more storage to my VMWare environment?

    DRM for all help!

    To add a data store storage must be allocated to the vSphere server.  There is also a size limit of 2 TB less 512 bytes per LUN for a vSphere.   Try a few small LUN and see if they appear as available when you add a data store.   I have included a link pdf maximum configuration for vSphere 4.1

    http://www.VMware.com/PDF/vSphere4/R41/vsp_41_config_max.PDF

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

    Twitter: http://twitter.com/mittim12

  • out of space on a data store, have great cliché to commit

    Through a series of automated tasks and bad luck, here's where I'm stuck.  looking for advice on the best way to fix it.

    ESXi server with the local data store

    A server (Blackberry server, not quite important and have a good backup, worst case I could rebuild without too much pain)

    • Slim 30 GB put in service

    Server B (Production and Production Exchange server file server):

    • 2 virtual drives

      • Drive hard 1: 80 GB thin provisioned

      • Hard drive: 500 GB 2 thick put into service

        • There is somehow a snapshot on this disk which is 196GB (which has a few things needed for this topic)

        • VSphere client does not show that there is a snapshot, but the navigation data store, it's there

    I am running very low on space (30GB free) on the data store.  I have a 1 TB NAS device (it is the NFS case) but it's mostly full with other backups of VMs whose only good backup from Server B that I would prefer not wipe.

    This snapshot will commit with what little free space?  If so, how given that vsphere client shows that there is no snapshot?

    Looking for pros for a good solution/order issues in.  I am of course headed out of town for a week and I hope the 30 GB I have free will last while I went, but will keep you informed along the way.

    In my opinion, there should not be any need a lot of additional disk space for deleting a snapshot on a thick disc put into service. To remove the snapshot, create another cliché on the virtual machine, and then open the Snapshot Manager and select "clear all". This will engage all snapshots on the basic disk, no matter whether they are displayed in the Snapshot Manager. Due to the size of the deletion my take several hours (depending on your speed of storage)

    With one snapshot, you have, it's no problem, but if there were several snapshots, you need to be careful, depending on the version/version of ESX (i) installed. Make sure you don't miss disk space during the validation process of the snapshot, because for example many changes to a thin provisioned VM. To be on save her side, you should do the deletion either while the virtual machine is not used much or - even better - while the virtual machine is turned off.

    André

Maybe you are looking for