Data date store creation time?

Hello. It is possible to know a store of date data creation time?

Thank you in advance!

As I know the data store object has no property of creation date.

But you can use the events, condition you keep these quite a long time.

This simple script will show you the datastorename and the date of its creation.

Get-VIEvent -Start (Get-Date).AddMonths(-2) -MaxSamples 99999 | ` where{$_.GetType().Name -eq "VMFSDatastoreCreatedEvent"} | ` Select @{N="Name";E={$_.Datastore.Name}},CreatedTime,UserName

You can play with the Start parameter to change the time to go back.

The MaxSamples parameter must be filled by a large number, otherwise he may not get all the events for the interval. This of course depends on the activity in your vSphere environment.

Tags: VMware

Similar Questions

  • Server data store will automatically get updated when the new file (with the same name) is placed in the landing area


    Hi guys,.

    The data store server-side will get automatically updated when a new file with the same name is loaded in the landing area?

    for example

    1 data store created for server-side get the file named UK.xls (he has 5 rows)

    2 snapshot created for the above data store

    3. created with the snapshot process

    After that if I remove 2 lines from the same file and load again to the landing (with the same name). So by re-running the process will take the last file OR do I need to reload the file in the data store every time when there is a change in the file. We also tried with option to work but the last file was not picking up.

    Any help will be really appreciated.

    Please lets us know your updates.

    Please advice

    Thank you

    VT

    Hello

    When you create a snapshot, you create a snapshot whose task (provided that you use a data store server-side) can be run from a job. To refresh the data, run the snapshot in a job task. If you create a task at the time the snapshot and the processes that use it, they will automatically connect and will be 'upstream' data through the snapshot in the process. You can then choose whether it would be appropriate to write the snapshot or not (for the effectiveness of performance if you want to do the straight through processing) by activating or deactivating the bucket of data staged that the snapshot written to. The snapshot in the work task means that the data is refreshed.

    For the work of design to the Director, you can refresh the snapshot by running again it manually in the context menu.

    Kind regards

    Mike

  • The amount available on the disc to keep to the data store

    Guys,

    I have a vm (called MachineA) machine that has a total of 125 GB when we built it (50 GB on disc 1, then 75 on hard drive 2). Our data store that time had about 132 GB of free space.

    Suddenly, MachineA to stop with the error of the newspaper "redo" described in the link:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1002103

    in any case, we have deleted a snapshot and ISO a bit in our data store. The machine could start again after the release of space.

    We had over 20 shots on this machine (just built too) but immediate production.

    So the question is why have I about 131 GB of free space and got the problem described above?  Thanks for your time.

    TNT

    VMware snapshots do not work like instant SAN.  When you snapshot of a virtual machine, he freezes the base disk and creates a delta file that lists all the changes (much like a sql transaction log).  Changes more, the file gets.  (Database servers really make a delta file grow quickly, too.)  You should only use a snapshot for a few days, space allowing, then validation/remove it or go back, as the files will be larger than basic disks and consume space in the data store until the system crashes.

  • root properties in the connected data store: error when accessing the date/time storage

    When you browse the properties my connected data store I get an error message when you try to read the value of the property of 'storage date/time': object doesn't support this property or method.

    Here is a minimal example:

    Dim oMyDataStore, MyProperty, oMyProperties
    Set oMyDataStore = Navigator.ConnectDataStoreByParameter ("TOC", "" & "C:\Program Files (x 86) \National 2012\Examples\Data\Example_data.tdm" & "" ')
    Set oMyProperties = oMyDataStore.RootElements (1). Properties
    For each MyProperty in oMyProperties
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value "")
    Next

    Why can I not access this particular property by default?

    Hi Phex,

    for the date/time properties, an object called UsiTimeDisp is returned. This object allows to that extend features of service as access to each part separately (day, year, hour, seconds,...) of your date/time value. If you want to print the value of time with MessageBoxDisp, you can use the VariantDate this object property.

    Your code might look like this then:

    Dim oMyDataStore, MyProperty, oMyProperties
    Set oMyDataStore = Navigator.ConnectDataStoreByParameter ("TOC", "" & "C:\Program Files (x 86) \National 2012\Examples\Data\Example_data.tdm" & "" ')
    Set oMyProperties = oMyDataStore.RootElements (1). Properties
    For each MyProperty in oMyProperties
    MyProperty.DataType = eTime Then
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value. ' ") VariantDate)
    On the other
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value "")
    End If
    Next

    I hope this helps.

    Good day

    Eva

  • Time range of statistical performance data store

    When I look at the performance of the data store tab in the performance monitor what time slot is used to generate the statistics?

    Hi Michael,

    The time slot is for 24 hours.

  • Time zone and date of creation of PDF

    Hello

    I have two questions which I would like to please your help:

    -Can the date of the creation of a pdf file be changed? What is strong evidence that the document was born in effect on that date? I should specify that the document was created with the pages mac application, and the date of creation has been consulted by checking the properties of the document on the adobe reader software.

    -I am located in France/Paris GMT + 1, will be the creation date poster/converted in my local time zone (GMT + 1) or is it possible that the document seems to have been created later it should be because the creator or sender (later than the sender said) was in a different time zone?

    Thank you for your help

    The date of the creation of a PDF document can be easily changed by using Adobe Acrobat or many other third-party PDF viewers. There is no hard proof when in fact the file was created.

  • Script in time of latency list vm e/s and the data store the virtual machine is on

    Hello.  We have a vsphere 5.0 environment and we live a latency of IO heavy.  I'm looking for powercli script will get the latency of i/o for each virtual machine and get the data store name, to what it is now.  We will access our storage on optical fiber.  I'm trying to get a good overview of the latency of IO in a nice view in a csv file.  I found what could be a good basis to https://communities.vmware.com/thread/304827?start=0 & tstart = 0 , but I'm not sure how to get the name of the data store in the table and I think that it is written to the nfs in any case storage.  Thanks in advance for any info\advice!

    Try the next version, it includes the average latency time read/write for the virtual machine and PAHO are / s average for the virtual machine.

    Since the CSV has a row for each data store, the values for the virtual machine are repeated.

    I also added the host name

    $vmName = "VM*"
    
    $stat = "datastore.totalReadLatency.average","datastore.totalWriteLatency.average",  "datastore.numberReadAveraged.average","datastore.numberWriteAveraged.average"$entity = Get-VM -Name $vmName$start = (Get-Date).AddHours(-1)
    
    $dsTab = @{}Get-Datastore | Where {$_.Type -eq "VMFS"} | %{  $key = $_.ExtensionData.Info.Vmfs.Uuid  if(!$dsTab.ContainsKey($key)){    $dsTab.Add($key,$_.Name)  }  else{    "Datastore $($_.Name) with UUID $key already in hash table"  }}
    
    Get-Stat -Entity $entity -Stat $stat -Start $start |Group-Object -Property {$_.Entity.Name} | %{  $vmName = $_.Values[0]  $VMReadLatency = $_.Group |    where {$_.MetricId -eq "datastore.totalReadLatency.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $VMWriteLatency = $_.Group |    where {$_.MetricId -eq "datastore.totalWriteLatency.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $VMReadIOPSAverage = $_.Group |    where {$_.MetricId -eq "datastore.numberReadAveraged.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $VMWriteIOPSAverage = $_.Group |    where {$_.MetricId -eq "datastore.numberWriteAveraged.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $_.Group | Group-Object -Property Instance | %{    New-Object PSObject -Property @{      VM = $vmName      Host = $_.Group[0].Entity.Host.Name      Datastore = $dsTab[$($_.Values[0])]      Start = $start      DSReadLatencyAvg = [math]::Round(($_.Group |           where {$_.MetricId -eq "datastore.totalReadLatency.average"} |          Measure-Object -Property Value -Average |          Select -ExpandProperty Average),2)      DSWriteLatencyAvg = [math]::Round(($_.Group |           where {$_.MetricId -eq "datastore.totalWriteLatency.average"} |          Measure-Object -Property Value -Average |          Select -ExpandProperty Average),2)      VMReadLatencyAvg = [math]::Round($VMReadLatency,2)      VMWriteLatencyAvg = [math]::Round($VMWriteLatency,2)      VMReadIOPSAvg = [math]::Round($VMReadIOPSAverage,2)      VMWriteIOPSAvg = [math]::Round($VMWriteIOPSAverage,2)    }  }} | Export-Csv c:\report.csv -NoTypeInformation -UseCulture
    
  • ESXi: creation of data store

    has obtained ESXi installed 5.1.

    have a couple of questions regarding the creation of a data store. My VM will reside on a synology 1512 +. the NAS has active windows and NFS file system.

    When I create the data store by using NFS, I just enter the IP address of the NAS and shared folder path (mount point)?

    I need to create a store of data by VM?

    can I import my existing virtual machines after that the data store is created?

    TIA

    No, you can have several VM in a single warehouse NFS. Simply storage vMotion virtual machine on your newly commissioned data store.

  • Cloning of VM/TIME to the different data store

    Hi all

    I am working out scripts excellent clone of Ruben garcia and one thing I'm trying to add is to have the VAPP created on a different data store.

    # Clone and move virtual machines
    {foreach ($vm to $vms)
    $vm = $vm | Get-opinion
    $vmname = $cloneName + "»" + $vm.name "
    . \LcloneVM $vm.name - cloneName '$vmname' - «$PortGroup» PortGroup
    Get-vm-name $vmname | Move-vm-destination $vapp;
    The virtual machine are getting cloned and then inserted in the passed TIME as a parameter name, but I can't understand how do to have the VAPP will be created on a data store that I specify. At this time the vApp is created on the same data store where the linked clones. Can I travel after from the user interface by using the migrate command but I want if possible to automate it.
    I thought that the next line should work but the VAPP fails when creating, so the move-vm command fails later.
    # Create VAPP
    $vapp = $host_name | VAPP-new-name "$cloneName" - data store "ThinDiskTesting"

    I am at a loss to what im doing wrong

    Post edited by: BrianRTS - difficulty of setting in the form

    You can specify the data store where you want to create linked clone delta files.

    This requires a slight modification to the script of Ruben

    # Generate specs for clone
    $cloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec $cloneSpec.Snapshot = $sourceVM.Snapshot.CurrentSnapshot $cloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec $cloneSpec.Location.DiskMoveType = [Vmware.Vim.VirtualMachineRelocateDiskMoveOptions]::createNewChildDiskBacking $cloneSpec.Location.Datastore = (Get-Datastore -Name $tgtDatastoreName).ExtensionData.MoRef
    

    Ownership of the data store is used to indicate where the clone should be placed.

    Or you want to create the clones, then move them?

  • Question about the creation of cluster data store

    I'm running vSphere 5.1 and want to enable storage Drs before as I have create the cluster data store, I was reading through VMware vSphere 5.1, but don't see any confirmation when I add data to the cluster storage, the virtual machines using these storage of data is not affected.

    Can anyone confirm that the addition of a data to a data cluster store store has no impact on virtual machines running?

    Thank you.

    Can anyone confirm that the addition of a data to a data cluster store store has no impact on virtual machines running?

    You can add and remove data warehouses in a cluster of data with VMS running store.

  • Recommendations for "Standby" host / creation of an additional data store / system partition

    My ESXI host 5.0, as well as several virtual machines in the data store, resides on a drive of 500 GB of aging.

    I have a disc of 2 TB to spare I would partition to as a standby host and an another data store containing the virtual machine, whose thinking is that when the 500 GB drive goes down, I can boot from the 2 TB drive and the new.

    I'm looking for suggestions for the best option to implement.  Thoughts include:

    1. A new installation of ESXI on 2 TB drive and restore the configuration from a backup "vicfg-cfgbackup" of the host of 500 GB
      1. have two partitions VFMS, one, a "backup" of the current data store containing the VM on the 500 GB drive and the second is a "general" datastore ~1.5TB that I can use for a volume of FreeNAS; or,
      2. have a bigger VMFS partition
    2. Partition my drive from 2 TB to allow later installation of ESXI; and two partitions VFMS (one of the same size as on the 500 GB drive and the second using the remaining space available), or a single VMFS partition

    Proceed to option (1) would result in two disks with ESXI hosts on a machine, but probably, because they are not clones, the UUID must be different so there is no problems with the discs being active.  I just need to set the BIOS to boot from the correct disk.  I understood this correctly, and if so, are there other potential problems with this approach?  The process of installing ESXI allows multiple VMFS created on the a drive, or this work manually through the command line interface, or the vSphere client

    The second approach is possible, and would I partition the same drive the 500 GB (IE several partitions of LinuxNative, a systemPartition, a vmkDiagnostic and a vmfs partition), with an additional partition VFMS (or a large VMFS partition)?  Or is it not possible to install ESXI on a disk with partitions that must be kept.  From what I've seen, it seems that if the Setup program detects that the drive has [a] [s] of data store, then the option is provided for the upgrade, so maybe it's possible to install ESXI on a disc with pone or warehouses of VMFS more data on the disk...

    Or maybe there is a third option that would be best.

    Any advice?

    Hi Ray,

    If you have just a 500 GB drive in your host 5.0 store the ESXi and your VMX/VMDK virtual machines then why not just do the following.

    1. Remove the 500 GB drive
    2. Insert the 2 TB drive
    3. Install ESXi 5.5U2 (or 5.0, if you still need a compatibility it provides) and partition your drive from 2 TB to choose from including data storage you want.
    4. Turn off and add the 500 GB drive (or place it in a networked PC or in a basket usb)
    5. Power and copy the vmx/vmdk files of the 500 GB to your new store of data and add virtual machines to the inventory
    6. Now periodically instant and take backups of your virtual machines to your 500 GB drive (by placing it in a USB port or network caddy/PC)

    What's an option 3?

    Concerning

    Chris

  • Too many data stores appearing during the creation of Prot Grp

    I have a problem when you create a new protection group in SRM 4.1.

    Background:

    I am trying to protect only 2 virtual machines (vmsql 1 and vmsql2) that are on the same data store (datastore5). However when I run the new protection Group Wizard, srm trying to protect the 2 vms above on datastore5 AND 4 other data warehouses (and their virtual machines).

    This "behavior" is usually because a virtual machine was a 'link' to another store of data EG one or more of its VMDK resides on other data warehouses or he has a link to CD with an iso on a different data store.

    I checked the 'change settings' vmsql1 & 2 and all their VMDK (and RDM) are on datastore5 and there is no CD of iso connection.

    I went through datastore5 and the only files / folders on datastore5 for vmsql1 & 2 (except hidden for distributed switch folders).

    I looked at the other VMS (I don't want to protect) to see if they have all the settings for CD or vmdk linking them to datastore5 and there is nothing obvious.

    So my question is... Whats connecting these other 4 data warehouses to datastore5?

    I: vc restarted on both sites, rebooted srm on the two sites, reanalyses berries from srm on both sites and re-analyzed VC (in two places), data warehouses also led lsof and ls - la on the esx hosts, but nothing unusual turns

    More info: vmsql1 and vmsql2 have been passed to datastore5 recently - off voltage and storage-vmotioned on datastore5

    ESX 4.1 U2, VC 4.1U2, IBM XIV

    Hello

    No doubt those LUNS are part of the same group of coherence on the storage array.

    When MRS. detects a consistency group, it places all of its LUNS in the same group of data store.

    Michael.

  • Creation of data store in ESXi 5 using the CLI

    Hi all

    I tried to create script to store data on a local drive to ESXi 5. I found lots of instructions for 4.1 whereby you use partedUtil to initialize the disk first and then use the vmkfstools command to create the vmfs volume and then use the command vmfs_create to vim - cmd to create the data store. However, version 5, I could only (virtually ghetto) where they don't use vmkfstools followed partedUtil and did not use vim - cmd vmfs_create. Someone can tell me if that's all that is required, or do I still need to use vmfs_create.

    Kind regards

    Vlad

    Vlad,

    You don't need to use vim - cmd vmfs_create option, the command vmkfstools appearing on my blog, which is used to create the VMFS volume, which in turn provides you with a VMFS data store. Vim - cmd did essentially the same thing if you do not use the vmkfstools command

  • Error of creation of data store

    Hello world!

    I have a funny problem with a server, ESX4 U1: I have an HP MSA2000 FC array connected via a brocade switch to a cluster of 4 hosts ESX4. When I try to present a table logic unit number is larger than 2 TB to and hosts, the available size of the data store resulting is only 260 GB! If this LUN is smaller then 2 TB, everything is ok, and the data store using the entirety of the LUN. I've attached screenshots of my attempts to store data of 3,4 and 5 TB lun size.

    Someone has seen this? Any suggestions?

    Thanks for any help!

    Maximum supported LUN size is 2 TB minus 512 b. This means creating several volumes less than 2 TB each.

    ---

    MCSA, MCTS Hyper-V, VCP 3/4, VMware vExpert

    http://blog.vadmin.ru

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

Maybe you are looking for

  • Connect my Mac and my new TV wireless

    I have a KDL-46EX710, and I would like to connect my Mac to my new TV (watch movies, photos and music listening). Is it possible to connect wirelessly? Thank you!

  • Netflix icon disappeared.

    For some reason, my Netflix icon on my desktop is gone (I perhaps accidentally deleted).  I went on the site and file/send to / desktop shortcut.  The icon appeared... but when I clicked it, error message: application not available.  What is going on

  • What is c:\...ehvid?

    When I run McAfee scan my computer missed to this folder for HOURS and hours and most of the time will not even finish the scan.  What is - this and how I take care of the problem?

  • SUSPECTED MALWARE ROOTKIT SLOW PC

    My HP PC (Windows 7-32 bit, browser IE 10) runs slowly and often in place. I ran RogueKill on her cleaning tool, and in the process tab, it comes back with: Status [NoKill}  Type Proc.Svhost PID 9612 name svchost.exe C:\Windows\System32\svchost.exe p

  • I have a problem with the Java Console is disabled in Mozilla Firefox.

    Original title: Microsoft asked Firefox to disable the Java Console. Why? Next to the Java Console in the folder extensions on Firefox, there is a note that says that Microsoft asked us to disable this extension and more information. When I click on