CSV of VM, VMDK, LUNs, path

Hello

I'm completely stuck on this one.

I need to get a CSV report telling me these things:

Name of the VM, vmdk, LUN file name

Bonusely, add drive letter and vmhost would be cool.

you have any ideas?

It will probably work:

$vms = get - VM

$vmdisks = $vms | % {$_. Hard drives}

$Report = @)

Foreach ($vmdisk to $vmdisks)

{

$NewObject = "" | Select VMName, vmdkFileName, LUN, host

$NewObject.VMName = $vmdisk.parent

$NewObject.vmdkFileName = $vmdisk.filename

$NewObject.LUN = (get-data store $vmdisk.parent). Name

$NewObject.Host = ($vms | where-object {$_.ID - eq $vmdisk.parentid}). Host

$Report += $NewObject

}

$Report | Export-csv C:\temp\nameofcsv.csv

File name and the logical unit number may be redundant, but you will get what you are looking for.  Number of LUNS in particular is a difficult thing to find in vSphere backend translation will probably happen.

Published by:
Zsoldier

Tags: VMware

Similar Questions

  • Manually load balancing / setting of the LUN paths.

    I am wanting to manually load balance my Lun, there are 4 paths, and I want to cycle each round logic unit through the other way and back loop number. Am on vSphere 4 Update 1.

    Browsing the web I found these two articles provide the code I'm after but the two error for me.

    http://vmjunkie.WordPress.com/2009/01/29/balancing-LUN-paths-on-your-ESX-hosts-with-PowerShell/

    http://doitsmarter.blogspot.com/

    -


    1. Check with the user

    $vc = Read-Host "Please enter the name of the vCenter server:

    $uname = Read-Host "Please enter the user name to connect to vCenter server:

    $upass = Read-Host "Please enter the password that is associated:

    $clusterName = Read-Host "Please enter the name of the Cluster:

    Write-Host "Connection to the server vCenter $vc, please wait." - black BackgroundColor - ForegroundColor white

    SE connect-VIserver $vc - user $uname - password $upass | Out-Null

    ###

    1. Recover clustered ESX hosts

    $VMHosts = get-Cluster $clusterName | Get-VMHost

    1. Run through this loop for each host in the cluster

    foreach ($VMHost to $VMHosts)

    {

    $luns = @($VMHost | get-scsilun-luntype disque | where-object {$_.) {ConsoleDeviceName-like ' / vmfs/devices/drives/vml * "} | Sort-Object CanonicalName)

    $firstLUNPaths = get-ScsiLunPath $luns [0]

    $numPaths = $firstLUNPaths.Length

    $count = 0

    foreach ($lun to $luns)

    {

    If ($count - ge $numPaths)

    {

    $count = 0

    }

    $paths = get-ScsiLunPath - ScsiLun $lun

    $lun | Game-ScsiLun - MultipathPolicy fixed PreferredPath - $paths [$count]

    $count += 1

    1. Sleep 30 seconds to avoid saturation of the picture.

    Start-Sleep - 30 seconds

    }

    }

    -


    Initially, I found the script stumbled upon the $luns [0] which means the value is null or empty. I replaced vml with naa. Now, I got "one or several mandetory missing settings SCSI LUN". An error with the syntax, but I'm not able to establish that, I guess.

    Now, if I run certain commands on the command line I find I'm out usable. But by channeling the same row in a table or the variable, then the Write-Host of the content, I see "VMware.VIMAutomation.ViCore.Impl.V1" (and so on).

    Judging by the dates of the blog posts that I am of the opinion the latest PowerCLI (v4 build 264274) can return the information in a different way, I'm wrong with my assumption?

    Can you guess what will be my next question? How could I do that now?

    Any help is appreciated and rewarded (in points not beer).

    Thank you

    Darren.

    The "vml", "naa"... depends on the type of storage are your LUNs.

    The problem with this statement is that you must specify the parameter - Scsilun.

    This can be a positional parameter (without - Scsilun), but then it has to come in position 2.

    See the page Get-ScsiLunPath .

    Try the attached script.

    I changed this line and it works for me.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Having trouble getting the correct strategy of the ESXi 5.1 Compellent Lun path selection

    Here's the FCoE connections to a Compellent table. I was looking for in fact as expected on some new 5.1 ESXi hosts. I changed the default home setting "esxcli storage set - default-psp VMW_PSP_RR - ATAS VMW_SATP_DEFAULT_AA ATAS nmp. The LUN showed 2 paths, Type of storage array showed VMW_SATP_DEFAULT_AA and path selection has been set for the Round Robin.

    I finished rebuilding my hosts with ESXi 5.1 update 1 and made the same change but now the LUN show as VMW_SATP_LOCAL and fixed and I can see only one way? I do not understand why it reacts differently now. Does anyone have any suggestions?

    ~ # esxcli storage nmp ATAS list

    Description of default name PSP

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

    VMW_SATP_MSA VMW_PSP_MRU placeholder (not loaded plugin)

    VMW_SATP_ALUA VMW_PSP_MRU placeholder (not loaded plugin)

    VMW_SATP_DEFAULT_AP VMW_PSP_MRU placeholder (not loaded plugin)

    VMW_SATP_SVC VMW_PSP_FIXED placeholder (not loaded plugin)

    VMW_SATP_EQL VMW_PSP_FIXED placeholder (not loaded plugin)

    VMW_SATP_INV VMW_PSP_FIXED placeholder (not loaded plugin)

    VMW_SATP_EVA VMW_PSP_FIXED placeholder (not loaded plugin)

    VMW_SATP_ALUA_CX VMW_PSP_RR placeholder (not loaded plugin)

    VMW_SATP_SYMM VMW_PSP_RR placeholder (not loaded plugin)

    VMW_SATP_CX VMW_PSP_MRU placeholder (not loaded plugin)

    VMW_SATP_LSI VMW_PSP_MRU placeholder (not loaded plugin)

    Non-specific bays of VMW_SATP_DEFAULT_AA VMW_PSP_RR Supports active/active

    VMW_SATP_LOCAL VMW_PSP_FIXED direct support of connected devices

    Thanks for the reply. I found the problem. I had to add a rule esxcli storage nmp ATAS FCoE add - transport fcoe - ATAS VMW_SATP_DEFAULT_AA - description 'Fibre Channel over Ethernet devices' I forgot to note that I did it on the first generation and completely forgotten. Once I added this to the existing a new LUN all show type and path of the storage of table selection.

  • Balancing of LUN paths on your ESX host

    is responsive entirely functional in ESX 4 as it was experimental in 3.5?

    Hello gboskin,

    Yes RoundRobin is fully supported in ESX 4.00. You can use it with CF storage. I didn't use it in conjunction with iSCSI, because of the other mounting methods / better.

    RR can be configured through the user interface or through 'esxcli' remote and local control through SC.

    You can also choose a value of IOs when the path is starting, but be careful using RR that not all storage arrays supports this method!

    Any questions, give them to me, I will try my best to answer, and indeed points are welcome...

    Carsten U C of Cologne

    --

    Mein Blog: http://www.datenfront.de

  • Political multi-channel Fixed and enter preffered paths balance for a set of RDM Lun

    Hi all

    I was hoping that someone with some experience PowerCLI might help me with the following problem.

    Short version:

    I need to adapt this script http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/ to accept the entry of a canonical name text file...

    Long version:

    We have a number of LUNS of RDM used by Microsoft the Failover Clusters, in accordance with the recommendation from the storage provider (Dell), we need to define all teas LUN to have a multi-path of FIXED policy and want to balance these on both paths.

    I can get the canonical name for each LUN RDM using this script;

    Get-VM-Location"Cluster Name" | Get-HardDisk -DiskType "RawPhysical","RawVirtual"| SelectParent,Name,DiskType,ScsiCanonicalName
    I then manually identify the LUNS that have to be changed since the text output.  So, basically, I have a text file containing the canonical each of the RDM LUN name I need to change to fixed.

    LUNS.txt

    NAA.6000d31000331e0000000000000000c0
    NAA.6000d31000331e0000000000000000c1
    NAA.6000d31000331e0000000000000000c2
    NAA.6000d31000331e0000000000000000c3
    NAA.6000d31000331e0000000000000000c4
    NAA.6000d31000331e0000000000000000c5

    I can't run this command to set the Fixed multichannel strategy because I need the PreferredPath variable.

    Get-vmhost 'host name ' | Get-scsilun 'naa.6000d31000331e0000000000000000c0 ' | game-scsilun - multipathpolicy 'Fixed '.


    "If the MultipathPolicy parameter is set to 'Fixed', you must specify the parameter of PreferredPath."

    I can then get the paths by using this command:

    Get-vmhost 'host name ' | Get-scsilun 'naa.6000d31000331e0000000000000000c0 ' | Get-scsilunpath

    Favorite SanID state name
    ----       -----                                    -----      ---------
    FC.2000... False Active 50:00:D3:10:00:33:1e:19
    FC.2000... False Active 50:00:D3:10:00:33:1e:1 has

    Basically, I need to adapt this script (from here http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/) at the entrance to a text file of canonical names.

    # Cluster-wide LUN Path Load Balancing Script
    # Written by Justin Emerson, http://vmjunkie.wordpress.com
    # Idea originally from a PERL script I saw here:
    # This script requires the VI Toolkit version 1.5
    # NOTE: This script assumes that every LUN has the same number of paths.
    #       If you have multiple storage arrays, and they have different numbers of paths,
    #       I make no guarentees that this will work!
    # If you have an improvement to this script, please feel free to leave a comment on my blog!
    Write-Host"This script will modify the policy of all your shared LUNs on all ESX Servers"-ForegroundColorCyan
    Write-Host"in a Cluster to Fixed and select a preferred path in a round-robin fashion."-ForegroundColorCyan
    if ($args.Length -eq0) {$clusterName= Read-Host"Please enter the Cluster name"} else {$clusterName= $args[0]}
    $VMHosts= Get-Cluster$clusterName| Get-VMHost
    # Run through this loop for each host in the cluster
    foreach($VMHostin $VMHosts)
    {
        # Keep only disks of luntype "disk" to avoid any storageArrayController devices.
        # Filter to only objects where the ConsoleDeviceName starts with vml to avoid any DAS disks.
        # Note: I have tested both HP EVA and Xiotech storage and SAN LUNs always appear this way.
        # Please check if this is the same on your storage before running.
        $luns= $VMHost|get-scsilun-luntypedisk|
        where-object{$_.ConsoleDeviceName -like"/vmfs/devices/disks/vml*"}|Sort-ObjectCanonicalName
        $firstLUNPaths= Get-ScsiLunPath$luns[0]
        $numPaths= $firstLUNPaths.Length
        $count= 0
        foreach($lunin $luns)
        {
            if ($count-ge$numPaths) { $count= 0 }
            $paths= Get-ScsiLunPath-ScsiLun$lun
            $lun|Set-ScsiLun-MultipathPolicyFixed -PreferredPath$paths[$count]
            $count+= 1
            # Sleep for 30 seconds as I've heard some arrays dont like doing this too fast.
            Start-Sleep-Seconds30
        }
    }
    Any help would be greatly appreciated.
    See you soon,.
    Patrick

    Do you have something like this in mind?

    $esxName = "MyEsx" $lunFile = "./luns.txt"
    $lunNames = Get-Content $lunFile $VMHost = Get-VMHost -Name $esxName
    # Find the LUN with the least number of paths
    $leastLUNPaths = Get-ScsiLun -VmHost $VMHost -LunType disk | Sort-Object -Descending -Property {
      Get-ScsiLunPath -ScsiLun $_ | Measure-Object | Select -ExpandProperty Count} | Select -First 1 | Get-ScsiLunPath
    $numPaths = $leastLUNPaths.Length
    $count = 0 foreach ($lunName in $lunNames)
    {
      $lun = Get-ScsiLun $lunName -VmHost $VMHost  if ($count -ge $numPaths) { $count = 0 }
      $paths = Get-ScsiLunPath -ScsiLun $lun  $lun|Set-ScsiLun -MultipathPolicy Fixed -PreferredPath $paths[$count]
      $count += 1  # Sleep for 30 seconds as I've heard some arrays dont like doing this too fast.
      Start-Sleep -Seconds 30}
    
  • Maximum number of files to a vmdk format VMFS5 file

    Dear all,

    I read the VM document maximum rates of VMSX5 and it State "files by volume = approximately 130 690.

    Does it means that if I have a VMDK file that is mapped to a windows drive E file server, and the number maximum file storage inside the drive E is only 130 690?

    In fact, I am facing the problem of migrating to the new file server in a VMESX5 with a big VMDK in drive E and have now about 400 000 files in drive E. But when I copy a file (total number of files inside should be about 70,000) from the old server to network on the new file server E drive files, it copies only about 40 000 files.

    Any idea?

    It make me mad because the schedule is very tight. Should I change the VMDK lun LUN Raw? Can lun Raw overcome the limit?

    Thank you!!!

    Notmen

    That you create a virtual machine, it consists of a couple of files like virtual disk files. In ESXi each virtual disk consists of 2 files, the hard of descriptor file and the data.vmdk file (you can find these files as only a single file in the browser data store). It's so two records of the maximum files allowed.

    You use a single data store for 29 millions of files in the NTFS file system?

    Yes, comments (Windows NTFS) files are found in the file (a file on a data store) hard and do not count against the maximum crowd at all.

    André

  • Check/SAN path failover

    We use a script to check multiple paths to the storage and switch to the other path (vmhba1-> vmhba2) for the maintenance of SAN on ESX 3.x hosts which is a modified version of the script found here - " " http://vmjunkie.WordPress.com/2009/01/29/balancing-LUN-paths-on-your-ESX-hosts-with-PowerShell/ "

    In ESX4, the canonical name now is vml.xxxx and not vmhbax:x:x, so the script does not work on our ESX4 host because he shoots and sort by canonical name that he considers vmhba1 or 2.  Someone at - there a way to check the paths and failover that works in ESX3 and 4?  Given that our guests are a mixed bag of 3.x and 4.x, it makes it difficult to use our script since we run against a list hosts and get errors on hosts 4.x.  I hope there is a cmdlet that we don't know about it can audit path information.  Thanks in advance!

    The script in storage adapters released for vSphere (devices + paths) could help?

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • In the Service Console the path value preferred on vSphere?

    Hello

    We have a problem here.

    Environmental: political vSphere Host, 8 HBAs, path: fixed path of vmware, on 1,000 paths to storage

    To reduce the total number of paths we want to reconfigure our warehouses of data and reduce the number of used HBA for warehouses of test and reference using only 2 of the 8 host bus adapters. We use all the time, then put 6 of them on all our servers of vsphere for people with reduced mobility, only two remain active.

    That is why we have active and people with disabilities with the help of a script on paths of console service - it works very well.

    But after that we reduce active host bus adapters, vsphere seems to forget reset the preferred path (just checked in the GUI). We put vmhba1 and vmhba7 to be active, 0-8 (except no. 6 as is the lsi controller) should be disabled, but on most of these disabled HBA Lun remains the favorite.

    On esx 3.5 service console, we were used to:

    / usr/sbin/esxcfg-mpath - favorite - political fixed = - lun = $lun - path = $: ${lun # *------:}}

    but these options (favorite, political) seem to be outdated since vsphere, which apparently obtained these commands on the api storage?

    Can someone answer the following questions on this issue:

    1 did affect the feature if you prefer the path is one of the disabled?

    2 will be the vsphere host keeps this configuration after reboot (disabled HBA to a lun, active paths)?

    3. is there a new command to set the access path AND / OR politics (MRU, FIXED, RR) to a logical unit number?

    Thanks in advance,

    Kind regards

    Alex

    Hello

    for active/passive, please use MRU;

    as you know, when fixed in use and the LUNS mapped to multiple hosts, 1 host perhaps selects path fixed-to-controller 0 and 2nd host perhaps selects fixed path to controller 1, then the current path will change between two controllers, way stolen here;

    Binoche, VMware VCP, Cisco CCNA

  • RENAME vmdk files

    Very well. Just a job cosmetic but good to keep it clean and uniform.

    A virtual server called "newcurtis" when he was born. So, there are files such as:

    newcurtis.VMDK - virtual disk

    newcurtis_1.VMDK - LUN mapped Raw

    newcurtis_2.VMDK - LUN mapped Raw

    newcurtis_3.VMDK - LUN mapped Raw

    Then, this "newcurtis" has been renamed "Curtis" in VI Client.

    and a "Raw LUN mapped" has been added but appeared as:

    Curtis.VMDK

    Then, this "Curtis" has been renamed "curtis" in VI Client.

    and a more 'mapped Raw LUN' have been added but appeared as:

    Curtis.VMDK

    So I see "curtis.vmdk" and "Curtis.vmdk" are married. (see attachment)

    Question:

    How to rename the "newcurtis_4.vmdk" and "newcurtis_5.vmdk" to ensure consistency without affecting any level of performance OS?

    Operating system is Windows 2003 file server. and another question: how to rename them all to "newcurtis" to "curtis"?

    Thank you very much

    Eagle

    Poster has answered their own question, good job with the research and thank you to revisit the forums with the answer.

  • ESX 3.5 Update 4 - Build 153875 - LUN still accessible after removing the access

    My friends

    We have 3 ESX cluster connected to the HP EVA 6400 Storage. Some LUN used by the process of migration of virtual machines. In any case, after this process I removed and then VMware cluster.

    I've run Analyze again process and LUN disappeared! When I click in Add STORAGE LUN seem to be added.

    Display the menu of the storage adapters, LUN paths is always avaiable.

    After that I checked the errors in the journal:

    LVM: 4482: may be a snapshot: disabling access. See section resignatuting

    IPMI Message Handler: BMC returned an incorrect answer, expected netfn 5 CMD 25, had 5 35 netfn cmd

    This error occurs more than once.

    Someone help me?

    TKS!

    Hello

    Check your mentioned below, Kb may be similar problem

    http://KB.VMware.com/kb/6482648

    http://KB.VMware.com/kb/1006756

    Thank you

    Samir

    PS: If you think the answer is useful please consider rewarding points.

  • Trajectories of load balance LUNS, Where-Object error

    Greetings,

    I started to modify the script to:

    http://vmjunkie.WordPress.com/2009/01/29/balancing-LUN-paths-on-your-ESX-hosts-with-PowerShell/

    to adapt to our environment. We have our similar to VM LUN LUN labeled utility, but they do not have the same number of paths. Here are the instruction select where-object that I use:

    SNIP script:

    $luns = $VMHost | get-scsilun - luntype disc |

    WHERE-object {$_.} {ConsoleDeviceName-like ' / vmfs/devices/drives/vml * "} |

    WHERE-object {$_.} {CanonicalName as "vmhba0:0: *"} | CanonicalName sort-Object

    $firstLUNPaths = get-ScsiLunPath $lun [0]

    $numPaths = $firstLUNPaths.Length

    The script works very well on the first host in the cluster, but I get this error on each host subsequently:

    Err:

    Impossible to index in an object of type VMware.VimAutomation.Client20.Host.ScsiLunImpl.

    C:\hp\Tools\VM_Tools\Scripts\Pathing\Set_Cluster_SAN_Path_t.ps1:37 tank: 40

    + $firstLUNPaths = get-ScsiLunPath $lun [0 & lt; & lt; & lt; & lt;]

    Line 37 is:

    $firstLUNPaths = get-ScsiLunPath $lun [0]

    If I remove the part of the select statement:

    WHERE-object {$_.} {CanonicalName as "vmhba0:0: *"}

    The error disappears. Since it is part of the select statement that gets the VM LUN I really it works.

    Thanks in advance!

    Kevin

    Are you sure that $lun is a table when you get the error?

    Maybe there is only 1 object of ScsiLunImpl. Where the error index.

    You can try asking the type of the variable $lun

    $luns = $VMHost|get-scsilun -luntype disk|
    where-object {$_.ConsoleDeviceName -like "/vmfs/devices/disks/vml*"} |
    where-object {$_.CanonicalName -like "vmhba0:0:*"}|Sort-Object CanonicalName
    
    ($lun.gettype()).Name
    
    $firstLUNPaths = Get-ScsiLunPath $lun[0]
    $numPaths = $firstLUNPaths.Length
    

    He will say 'object []' when it's a table, but "ScsiLunImpl" when it comes to a single object.

    An easy way to fix this would be to make a table even when there is only 1 object

    $luns = @($VMHost|get-scsilun -luntype disk|
    where-object {$_.ConsoleDeviceName -like "/vmfs/devices/disks/vml*"} |
    where-object {$_.CanonicalName -like "vmhba0:0:*"}|Sort-Object CanonicalName)
    $firstLUNPaths = Get-ScsiLunPath $lun[0]
    $numPaths = $firstLUNPaths.Length
    
  • LUN with multiple IP addresses

    I have two questions actually. The first one being: I have a machine running OpenFiler with 3 iSCSI targets. This machine has two network cards with its own IP address. There are two ESX hosts. Currently in each, I added a new datastore VMFS among those LUNS and then added two more as extensions to this VMFS datastore. This is reflected on the hosts and all using only one of the IP addresses of the exploitation of SAN and openfiler Vmotion between two hosts. Could I take a host and add the LUNS through the second IP address and ESX still not see it as a shared storage for as each host could access the same LUN via treated separate IP and have still Vmotion works through them? If so, exactly how this would and would there be predictable performance/stability problems?

    Second, what sort of questions would be that we are facing if I place a second physical machine running OpenFiler and added the LUNS on this second box as extensions to the same data store? Theoretically, this should create the massive data store over two physical and accessible machines as a store of data shared by both ESX hosts. Thoughts?

    NOTE: I know that we can paste the two network cards in the SAN, but we had a lot of performance/stability problems when we had the machine running a linux distro standard with servile NIC and an NFS share as the data store. I also came across reliabillity issues when you try to bond in OpenFiler where I could access the web interface and then it would become randomly inaccessible and then later come back online and back. Whatever it is, we are witnessing a DRASTIC increase in performance on this unique nic with openfiler LUN iSCSI on any other scenario, we had Setup.

    In fact, Yes. Make sure that IP addresses are on different subnets for interfaces A and B:

    ESX-VMK1 192.168.100.5 = talk to SAN-NIC1 = 192.168.100.254
    ESX-VMK2 = 192.168.200.5 talk to SAN-NIC2 = 192.168.200.254

    Under NO circumstances should you use the same subnet for the multiple interfaces...

    If you have TWO ESX hosts, you can cross-available network cards so HostA 'prefer' subnet-1 and host b "prefer" subnet-2:

    ESX-A-VMK1 = 192.168.100.5 talk to SAN-NIC1 = 192.168.100.254 (preferably manually in the LUN path)
    ESX-B-VMK1 = 192.168.100.6 talk to SAN-NIC1 = 192.168.100.254

    and

    ESX-A-VMK2 = 192.168.200.5 talk to SAN-NIC2 = 192.168.200.254
    ESX-B-VMK2 = 192.168.200.6 talk to SAN-NIC2 = 192.168.200.254 (preferably manually in the LUN path)

    This arrangement gives you the bandwidth "dedicated" without losing the redundancy in case a card NETWORK goes down on one of the three hosts... If the subnet 1 becomes unusable (i.e. your D-Link switch dies) then a failover to the other switch will happen auto-magiquement.)

    If you find my comments useful, please assign points. Thank you.

    -Collin C. MacMillan

    SOLORI - Oriented Solution, LLC

    http://blog.Solori.NET

  • To better understand the SRM

    Hello

    We have 2 sites, each site, we have 4 ESX servers and on each site, we have a Clariion CX380 but everything is run by a single Virtual Center. All ESX servers are on the same VC data center. Finally, we have 2 physical sites that we have succeeded in one site.

    I know with the MRS, we need two VCs, one on each site, but we need two data centers in VirtualCenter? Why I ask this question is in fact we use MirrorView/S sync LUNS and we have LUN will concern because we cannot display the mirror and lun mirrored with the same uid when all the ESX servers are managed by a single CR.

    Can RS we manage this for us?

    I hope I'm clear with my problemhttp://communities.vmware.com/images/emoticons/confused.gif

    Thank you

    Dominic.

    First of all the current version of MRS. can't a single VC use case, so if the customer doesn't move on this one there then you cannout currently using SRM. It has many disadvantages in terms of DR to use a single VC, so reason why SRM architecture uses two.

    When you have two SRM of the VC can work active / active and by that I mean you can have two production datacenters each replicating to the other, each acting as DR to another in the event of a site loss. SRM supports this configuration.

    From my experience of VMotion between sites with more current VC25/ESX35 never really gives you a lot in terms of use cases since it is really an option for customers which is DC are close together and even in this case you end up with is a virtual machine running on a site that is accessing its virtual disks at the other site not that desirable. Another point here is what to do with this way of working, you should also have areas of SAN that accepts the LUNS are accessible on the sites and also potentially beyond safe limits.

    Granted, I can see some obsucre use cases you want to to be able to vmotion VM on the site but nothing which makes it really interesting architecture this now, ok one day you might want to vmotion all around for the other site while you perform a hardware upgrade of hugh, but there are other ways this round with storage vmotion which give you even without interruption... Go ahead there is much more to come that will make vmotion over distance, a closer integration with the most interesting storage replication.

    When you're right, now I think that the more important thing to establish is that it really your customer wants, is it simply a solution allowing them to run two production DC so they don't have standing kit slowed to a place? If yes then MRS can do for them now in a configuration active / active. I find lots of customes think they must cross the vmotion site without really thinking through and without thinking about the implications for things like vCenter design, such as:

    The VC inventory / layout, be careful with the design, because everything is tense, to be very consistent and accurate with conventions of naming across all objects of inventroy will use the virtual machine

    DRS/HA settings, ensure that you know which VM is important and set the correct settings by VM for recovery. Unless you have N + 1 reserve capacity on each site, you will need to set up the parameters HA/DRS that highlight the most important line of the first VM and not end up in a situation of failure with all your virtual computer online dev/test and half the production of 'Down' of the VM because you have not set the correct priorities in HA. In SRM, it is something that the descriptors of recovery plan and you can control.

    Half brain, if you run the two sites as a big cluster HA/DRS ensure test you different failure scenarios, for example if the DRS (or manual VMotion) moving a bunch of VM is site1 to site2 but no failures that took place at that time there will now be left with contexts of CPU/memory/network of the virtual computer running on hosts to Site2, but accessing their VMDK on site1. This will work but is not always desirable from a perspective of latency (maybe no problem if enough bandwidth) However, what will happen if you suffer now Site1 disk failure, at this point the VM will not crash immediately Site2 and HA will take awhile to achieve those VMS have a problem. Try it and see, if you disconnect the storage for a virtual machine, the virtual machine will cling to life (assuming that IO is normal) for some time before a blue screen appears.

    Presentation of storage, if your customer wants the area sites to actually be 'open' to all ESX hosts, then check that understand you the implications of the ESX LVM parameters with regards instant / will of the disc. You will potentially have ESX hosts that might at one point access to a source and target LUNs at the same time if someone or something to change LVM default settings. As we discussed earlier, with architectures of SRM this is handled by RS as the SRM architecture, you would not have this kind of open area.

    Zoning by-law if the vsan / zones are truly open or guests as well then as certain events of fabric can be a potential pain. No event of thugs this RSCN disrupt both sites at the same time if all ESX hosts are on the same fabric open so be careful here. Not something that is too often but I have seen hurt some customers, usually comes down to bad HBA or cable can be a real pain to track down.

    VC / limits ESX, you build out of campus cluster design ensures the design will you quickly to reach the limits of what she has supported this concerning things like the maximum number of machines virtual/VC, max number of LUNS/ESX host, max number host ESX/lun/paths etc.

  • esxcfg-mpath-l - driven script

    Hi all...

    I recently had a problem with some of my ESX hosts, where some HBA ports on the host saw not all paths of our SAN that I expect.

    I want to do is to have a script that could collect similar results to the command of esxcfg-mpath-l for each host in a particular cluster, and then export to csv format so that I can have a weekly check to ensure that there no any SAN issues associated with this particular problem...

    I have really no idea where to start, or if a similar output is available using commands in the vi toolkit. I had done some reading on the use of plink to do similar things, but id prefer not to go down this road if I have to.

    Anyone have any ideas?

    My bad. The previous script are several servers ESX because at the time where I was hooked only to one and I don't have a lot of sleep the previous night.    Here is a version that accepts VMhost to the pipeline information.  However, to do a filtering for discs inapplicable.

    filter Get-VMHostMpath {
         $hostview = $_ | Get-View
         $VMHostName = $_.Name
         $mPathLun = $hostview.Config.StorageDevice.MultipathInfo.Lun
         foreach ( $lun in $mPathLun ) {
              $lunName = $lun.Id
              $pathCount = $lun.Path.Length
              $mPathPolicy = $lun.Policy.Policy
              Write-Host -foregroundcolor Yellow "Host server: $VMHostName"
              Write-Host "Disk $lunName has $pathCount paths and policy of $mPathPolicy."
         }
    }
    

    Use:

    PS >. .\filename.ps1 # you need to point source to make the service in the current scope

    PS > Get-VMHost | Get-VMHostMpath

    Host: phatlesx02.qatest.iss.net

    02001f0000600a0b800026f1c20000000000000000556e69766572 disk has 2 ways of access and politics of PSP_MRU.

    [PowerShell MVP |] [ https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], the VI Toolkit forum moderator

    Author of the forthcoming book: VMware Infrastructure Management with PowerShell

    Co-host, PowerScripting Podcast (http://powerscripting.net)

    Need help in General, other than VMware PowerShell? Try the PowerShellCommunity.org forums

  • Hello. How can I pass a variable as the name of file in writeStringToFile.

    When I try to pass a variable as writeStringToFile it is ignored.

    For example:

    getVariables () .set ("ts", "{{@today (YYYYMMddHHmmss)}}", Variables.Scope.GLOBAL);

    Path String = "C:\\OracleATS\\OFT\\Databank\\";

    String file = "test .csv {{ts}}";

    String completedOrders = path + file;

    Info (completedOrders);

    utilities.getFileService (.writeStringToFile) (file, "CreatedDate, customer, iteration, OrderNumber" + "\n");

    In the previous case.

    a. the console returns the correct file name: C:\OracleATS\OFT\Databank\test20151005133343.csv

    b. the file system will not be: test .csv {{ts}}

    Thank you for taking the time to consider the issue. I found another way to achieve this. It must be as follows:

    Import:

    import java.util.Date;

    import impossible;

    Format of date as follows:

    Path String = "C:\\OracleATS\\OFT\\Databank\\";

    String file = new SimpleDateFormat("'scriptOut_'YYYYMMddHHmmss'.csv'").format (new Date());

    String completedOrders = path + file;

    Info (completedOrders);

    utilities.getFileService () .writeStringToFile (completedOrders, 'CreatedDate, customer, iteration, OrderNumber "+" \n");

Maybe you are looking for

  • DVD - rom click on Satellite L750-11W

    Hello I have a Satellite L750-11W and every 4-5 min DVD - rom clicks... I'm sure the DVD clicks for the simple fact that the sound is similar to the noise during the closing of the DVD-rom and the sound comes from the top right corner (DVD-rom). The

  • HP ENVY 120: scanning of multiple pages in one same task

    I was able to scan multiple pages into a single PDF. Since last week when I replaced the ink cartridges (both HP) I can't do more. The ASNA creates two separate files: namesake, a _1 and the other _2. Two separate PDF files. How can I do the scan kee

  • Hp OfficeJet mobile 150 installation

    The "C:WINDOWS\system32\HPZidr12.dll" file is needed for instalation to continue. Manufacturer: HP Version: 0.0.0.0 Where can I get to download it?

  • W530 does not illuminate when the CMOS battery is connected

    Problem: I can't get my laptop to start (it blinks just 3 times battery icon, without to need laptop power (won't start even fan)) unless I disconnect CMOS battery, external battery and power first. Disconnected battery and CMOS battery, I can get th

  • PXI-5112 with XP, LV 2010 (and the determination of review)

    Just found an old PXI-5112. I could do great with this card things if I could make it work. When I first plugged it to my PXI chassis, it was detected in MAX as a device of NOR-DAQ traditional with the latest version of NOR-DAQ traditional (7.4.4). H