How anyone SAN disk of multiple ESX hosts?

Dear all,

We presented several SAN drives to a few servers ESX 4.0 memory of EVA.

As one of the SAN is not necessary now, we want anyone there.

It is also confirmed he does not need to keep all the data in this SAN disk, would you please indicate the steps to this end, but no need to shutdown ESX servers?

In fact, I tried to study the following document, but it is too difficult for me. Help, please.

Unpresenting a LUN that contains a store of ESX 4.x and ESXi4.i data

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

Kind regards

Tommy

what you need to do is really, make sure the logic unit number is empty, remove the LUN of your stocks of VI.  From there, ask enterprise to after LUN storage team.  When they have been the team of storage upnpresented, rescan your storage adapters, and logical unit number should not be more visible to your VI.

Tags: VMware

Similar Questions

  • How to locate the fiber channel SAN disks on the ESX Server

    Hi all

    Please help on this

    How to find and configure the fiber channel SAN disks on the ESX Server

    Concerning

    Vijay

    Assuming that you have configured LUNS on your storage space itself you will need to ensure that the ID in the world of fiber HBA on the host ESX (you can see them registered against fiber HBA under storage adapters, WWID) are configured on the switch of fiber access (read and write).

    In the VI Client connected to your ESX host, select the storage adapters tab and highlight the Fibre HBA. Right-click and select Rescan. If you have correctly configured the SAN and the Fibre switch, then the LUNS now appear under the fiber HBA. Go to storage and select Add storage. Follow the wizard through to add LUNS and VMFS format. Do this for each ESX host that you want to see the LUNS.

    If you found this helpful, please consider awarding points

  • How to add md1000 2.18 TB disk array to ESX host

    Hi, I am very new to VMware, and I try to add a picture of 2.18 TB md1000 disk to an ESX host.  When I go through the storage add wizzard, I see that he sees the md1000 2.18 TB of capacity, but shows only 1.8 GB available.  Anyone know what kind of configuration, I need to do for all the show of 2.18 TB as being available?

    Thanks a lot for your suggestions.

    John

    2 TB is the maximum for a single LUN.  You need to decreate your size of the LUN to less than 2 TB.

    -Matt

  • Add several NFS data stores to multiple ESX hosts

    I am trying to write a script that will set up several NFS exports to multiple ESX hosts. Here is the script I use, it will add an NFS export to an esx host list.

    $esx = (get-Content servers.txt)

    {}
    $Host_Name = (Read-Host "enter the server (ex: storage-san)")
    $Path = (Read-Host "enter the path (ex: / ds_name/flight/flight)")
    $Name = (Read-Host "Enter the name of the data store")

    {foreach ($server in $esx)
    $Error.Clear)
    Get-VMHost $server | New-Nfs Datastore - NfsHost $Host_Name-path $Path - name $Name | Out-Null
    If ($error.count - gt 0) {$error | out-file ($server, 'c:\powershell scripts\logs\' + '.txt')}
    }

    $add_more = Read-Host "want to show you another data store?
    }
    While ($add_more - eq 'Yes' - or $add_more - eq "y")

    This script actually works OK but I can't just she kick sending and walk. If I have 10 stores of data to add, I have to wait for the current to the end, and then type the information for the second, etc..

    I was hoping just to type all the information from the beginning and the shot of the script to the wide and let him go. Here is what I added, you can see where I'm going with this?

    $esx = (get-Content servers.txt)

    $num_mounts = (Read-Host "Do you have multiple media")
    If ($num_mounts - eq 'Yes' - or $num_mounts - eq "y")
    {
    $mounts = @(Read-Host "supports différents combien avez_vous")

    #prompt me for all the different right monte upwards before and then executed by the actual task of Mount...
    }

    Any ideas?

    Try something like this

    $servers = @()
    $paths = @()
    $datastores = @()
    
    $answer = Read-Host "Enter another NFS mount ?" while($mount -eq "y"){
        $servers += Read-Host "Enter the NFS host"    $paths += Read-Host "Enter the path"    $datastores += Read-Host "Datastore name ?"    $answer = Read-Host "Enter another NFS mount ?"}
    
    $Error.Clear()
    
    Get-Content servers.txt | %{
        $esx = Get-VMHost -Name $_    $countNFS = $servers.Count
        if($countNFS -ne 0){
            0..($countNFS - 1) | %{
                New-Datastore -Nfs -NfsHost $servers[$_] -Path $paths[$_] -Name $datastores[$_] | Out-Null            if($Error.count -gt 0){
                    $Error | out-file ('c:\powershell scripts\logs\' + $server + '.txt')
                    $Error.Clear()
                }
            }
        }
    }
    

    The script reads all the data in the tables.

    Then it loops through all ESX hosts from the servers.txt file, and for each host, it will create all the NFS data storages.

  • Make a single LUN can be used by multiple ESX hosts

    Is it possible for a single LUN to be made usable by multiple ESX hosts at the same time?  For example, if you have an image or used by a vSphere environment requiring other vSphere environments in the data center access, you can put the image on a storage place where completely separate ESX hosts vSphere environments completely separate can see the same lun and clone the image or necessary?

    If the logic unit number is locked by accessed by an ESX host will be lock expires when the ESX host is not an another ESX host in another environment vSphere allowing access to the logical unit number, or is the lock, as it is usable by a single ESX host, until the storage is reconfigured to make it usable by a different host?

    Is there a better solution to this scenario?

    Thank you

    You can deploy both at the same time.  Locking occurs only for changes to metadata and only for the shooting of subsecond.  It is not required for the entire deployment process.

    -Matt

    VCP, VCDX #52, Unix Geek, Nerd of storage

  • How to check latency between the ESX host and SAN

    How to check latency between the ESXi host and SAN

    Hi friend

    Below KB will solve your need:

    VMware KB: Using esxtop to identify problems of performance of storage to ESX / ESXi (several versions)

    Under discussion can help you get more insight:

    Best values LVAD/cmd (ESXTOP)?

    Learn ESXTOP @ latency:

    vCenter and Esxtop to storage i/o bottlenecks to avoid

    Very detailed blog on ESXTOP:

    http://www.yellow-bricks.com/ESXTOP/

  • How to balance IO SAN controller between my ESX host?

    Hello good community.

    Question about SAN controller i/o balancing between my ESX hosts.

    I've identified the controller A and B controller on my SAN, HP EVA 6100.

    The controller has 50001FE1 500E1208

    Controller B 50001FE1 500E120C

    But when I go to "Storage adapters", then "Manage paths" by vmhba and I'm lost.  Policy of LB is fixed.    Then I see:

    vmhba1:0:6 50:00:1f:e1:50:0e:12:08 * status: active, preferred

    vmhba1:1:6 50:00:1f:e1:50:0e:12:0 c

    vmhba2:0:6 50:00:1f:e1:50:0e:12:09

    vmhba2:1:6 50:00:1f:e1:50:0e:12:0 d

    If the first two on my controllers, don't know about the bottom two WWWN however, can someone who knows HP EVA help here.

    Also, I am very confused regarding mirrored ports and the need to be cautious when balancing the way between the controller.

    Which would be great if someone could give me a few white read books on it, the same and also fair knowledge base articles explain how to approach the above and examine the virtual machines as well.

    Not too big so... just small forum post I raised here... It will be useful someone help to get a dialogue going.

    What I do with my EVA, is having different LUNs (Datastores) manually selected a path preferred in command mode.  For example LUN 1,3,5,7 are on path then that lun 2,4,6,8 are set on Channel B.  This means that all your LUNS are also responsible.  On the ESX side each of my machines has 2 HBAs each with 2 paths that it looks like your Setup.  Here's what I think looks like load-balanced:

    ESX01-

    vmhba1:0:6 50:00:1f:e1:50:0e:12:08 - LUN 1.2

    vmhba1:1:6 50:00:1f:e1:50:0e:12:0 c - LUN 3.4

    vmhba2:0:6 50:00:1f:e1:50:0e:12:09 - MON 5, 6

    vmhba2:1:6 50:00:1f:e1:50:0e:12:0 d - MON 7, 8

    ESX02-

    vmhba1:0:6 50:00:1f:e1:50:0e:12:08 - MON 5, 6

    vmhba1:1:6 50:00:1f:e1:50:0e:12:0 c - MON 7, 8

    vmhba2:0:6 50:00:1f:e1:50:0e:12:09 - LUN 1.2

    vmhba2:1:6 50:00:1f:e1:50:0e:12:0 d - LUN 3.4

    It might not even be necessary have a configuration of blancing of load complicated if you produce not enough IO to saturate your current configuration.  You can just keep it like this:

    ESX01-

    vmhba1:0:6 50:00:1f:e1:50:0e:12:08 - LUN 1.2

    vmhba1:1:6 50:00:1f:e1:50:0e:12:0 c - LUN 3.4

    vmhba2:0:6 50:00:1f:e1:50:0e:12:09 - MON 5, 6

    vmhba2:1:6 50:00:1f:e1:50:0e:12:0 d - MON 7, 8

    ESX02-

    vmhba1:0:6 50:00:1f:e1:50:0e:12:08 - LUN 1.2

    vmhba1:1:6 50:00:1f:e1:50:0e:12:0 c - LUN 3.4

    vmhba2:0:6 50:00:1f:e1:50:0e:12:09 - MON 5, 6

    vmhba2:1:6 50:00:1f:e1:50:0e:12:0 d - MON 7, 8

    Hope this helps

  • How to change a user account non-root on multiple esx hosts 4

    We currently use the script below to change the root password, but we need a to change a non-root user account that does not have access to the root of how.

    So if the script could be changed to connect to each server with root and then change the password of the root no account that might be useful.

    Any help would be appreciated.

    -Steve

    #
    # This script changes the password to root on all ESX host in the esxservers.txt text file
    #

    # Add toolkit-VI #.
    Add-PSsnapin VMware.VimAutomation.Core
    Initialize - VIToolkitEnvironment.ps1

    # Get old credential root
    $oldrootPassword = "Enter the old root password" Read-Host - AsSecureString
    $oldrootCredential = new-object - typename System.Management.Automation.PSCredential - argumentlist 'root', $oldrootPassword

    # New information for the identification of root
    $newrootPassword = "Enter the new root password" Read-Host - AsSecureString
    $newrootCredential = new-object - typename System.Management.Automation.PSCredential - argumentlist 'root', $newrootPassword
    $newrootPassword2 = Read-Host "Retype new root password" - AsSecureString
    $newrootCredential2 = new-object - typename System.Management.Automation.PSCredential - argumentlist 'root', $newrootPassword2
    $WarningPreference = "SilentlyContinue".

    # Compare passwords
    If ($newrootCredential.GetNetworkCredential ().) Password - ceq $newrootCredential2.GetNetworkCredential (). {Password)

    # Create the new object of root account
    $rootaccount = new-Object VMware.Vim.HostPosixAccountSpec
    $rootaccount.id = 'root '.
    $rootaccount.password = $newrootCredential.GetNetworkCredential (). Password
    $rootaccount.shellAccess = ' / bin/bash ".

    # The list of text file host servers to change the root password on
    Get-Content esxservers.txt | %{
    SE connect-VIServer $_-user root - password $oldrootCredential.GetNetworkCredential (). Password - ErrorAction SilentlyContinue - ErrorVariable ConnectError. Out-Null
    If ($ConnectError - not $Null) {}
    Write-Host "ERROR: unable to connect to the ESX Server: ' $_
    }
    Else {}
    $si = get-view ServiceInstance
    $acctMgr = get-view-Id $si.content.accountManager
    $acctMgr.UpdateUser ($rootaccount)
    Write-Host "Root password changed successfully on ' $_
    Disconnect-VIServer-confirm: $False | Out-Null
    }
    }
    }
    Else {}
    Write-Host "ERROR: new root passwords do not match." Smooth... »
    }

    Try something like that.

    First, it prompts you for the password for root servers ESX (i).

    And then the account name, followed by the 2 times the new password

    #
    # This script changes the password of an account on all ESX hosts in the esxservers.txt textfile#
     # Add VI-toolkit # Add-PSsnapin VMware.VimAutomation.CoreInitialize-VIToolkitEnvironment.ps1
    
    # Get root password$rootPassword = Read-Host "Enter root password" -AsSecureString$rootCredential = new-object -typename System.Management.Automation.PSCredential -argumentlist "root",$rootPassword
    # Get account to change$account = Read-Host "Enter account"# Get new account credential$newaccountPassword = Read-Host "Enter new password" -AsSecureString$newaccountCredential = new-object -typename System.Management.Automation.PSCredential -argumentlist $account,$newaccountPassword$newaccountPassword2 = Read-Host "Retype new password" -AsSecureString$newaccountCredential2 = new-object -typename System.Management.Automation.PSCredential -argumentlist $account,$newaccountPassword2$WarningPreference = "SilentlyContinue"
    # Compare passwordsIf ($newaccountCredential.GetNetworkCredential().Password -ceq $newaccountCredential2.GetNetworkCredential().Password) {
    
        # Create new root account object    $accountSpec = New-Object VMware.Vim.HostPosixAccountSpec    $accountSpec.id = $account    $accountSpec.password = $newaccountCredential.GetNetworkCredential().Password
        $accountSpec.shellAccess = "/bin/bash"
        # Get list of Host servers from textfile to change account password on    Get-Content esxservers.txt | %{
            Connect-VIServer $_ -User root -Password $rootCredential.GetNetworkCredential().Password -ErrorAction SilentlyContinue -ErrorVariable ConnectError | Out-Null        If ($ConnectError -ne $Null) {
                Write-Host "ERROR: Failed to connect to ESX server:" $_        }
            Else {
                $si = Get-View ServiceInstance            $acctMgr = Get-View -Id $si.content.accountManager
                $acctMgr.UpdateUser($accountSpec)
                Write-Host "$account password successfully changed on" $_            Disconnect-VIServer -Confirm:$False | Out-Null        }
        }
    }
    Else {
    Write-Host "ERROR: New $account passwords do not match. Exiting..."}
    
  • Open a virtual machine in a san on 2 different esx hosts

    Hi, I have a Vsphere essentials, 2 Esx hosts and an Iscsi san, I need to connect the virtual machine in the two esx hosts (I know I don't have FT and HA), in order to launch the virtual machine never the first Esx and if first host, does not have the virtual machine on the second esx.

    I tryied to connect the virtual machine to the second host, but the Vsphere client tell me that's not possible, because the virtual machine is already present at the first ESX.

    There is a way to establish this setting?

    For some it may depend on your application, if you can run multiple instances of the same application? If it is a web application? It stores its data in files on the server, or it stores it in a database locally? or remote database?

    -VM on a local storage of the army, would not really recommended if you need so that it starts the VMS on host b quickly.

    -If the two hosts have access to permits it storage even say and what the application can really be run only once.  He could only save it to HostA and if it fails at some point that it will be released the lock, have it on the virtual machine and you will be able to manually register the virtual machine to host b and start the virtual machine.  However, you will not be able to really get ahead.

    -HA out of here, as if a host or power failure shuts on HostA, HostB will feed into the virtual machine down automatically

    -FT - here in the spectrum creates a VM ghost on the secondary host in levels (what happends on HostA happens on host b)

    -Another option to the other end of things has implemented Microsoft MSCS Clustering with iSCSI support I think.  You can run VMS with iSCSI to your San and clustered like this application.  Just note that with iscsi client it uses some CPU to create iscsi packets.

    -Web Cluster, Cluster database.    It doesn't matter if one of the nodes of web servers or the database nodes go down really that the user will be redirected to another node in the cluster so really no need for HA/FT.

    Of course, with some of the here above are expenses and pro / con of and there's a few ways to increase availability.

  • How to restart vm esx host in different work HA?

    I understand that VMOTION = migration hot virtual machines on esx hosts. So, if HA uses VMOTION, how HA restarts VMs on another esx host when the original, we're out of service?

    I guess it will take to create an another vm on the available host using the same on the san .vmx file?

    IF we were to do it manually, it will be just import a virtual machine to another host on the right?

    Correct me if im wrong?

    A bit confused on the works of the HA behind the scene

    See you soon!

    VMotion and HA are not related or dependent on each other.

    (1) again, this works because the virtual machines themselves live on storage shared and not bound to a specific host ESX (i). ESX implements non-persistent locks on a specific virtual machine, when the host goes down, these locks will eventually timeout. HA will launch the failover, allowing it to reregister the VMs failed and restart. Manually, you can walk through this process by the presence of a virtual machine that lives on the shared storage that runs on HostA, then it turned off and cancel the registration of the virtual machine. You would be so I re-register on HostB and turn on, and voila, you've just simulated a ghettoHA.

    Here are a few extra links/documentation which may be useful for you better understand it:

    HA said:

    http://www.VMware.com/products/VI/VC/HA.html

    http://www.VMware.com/PDF/ha_datasheet.PDF

    vMotion explained:

    http://www.VMware.com/products/VI/VC/VMotion.html

    http://www.VMware.com/PDF/vmotion_datasheet.PDF

    (2) vMotion as you know already, performs a live migration of a virtual computer between two hosts, where as HA you will get some downtime of the virtual machine while it is rescued. The key is HA doesn't provide true high availability, it's just faster to recover. If you are looking for a true HA, take a look at VMware FT www.vmware.com/files/pdf/resources/ft_virtualization_wp.pdf

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

    William Lam

    VMware vExpert 2009

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

    repository scripts vGhetto

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

    http://Twitter.com/lamw

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

  • Start/stop of the Virutal Machine - settings of the ESX host

    Hello

    With the help of a powershell script I would change the parameters 'Virutal Machine putting into power' on multiple ESX hosts at the same time.

    I need to change the following:

    1. Check or turn on 'allow the virtual computers start and stop automatically with the system '.

    2. And change the stop Action to suspend.

    You how know?

    Tim

    And if you want to do it for all of your ESX servers, you could do

    Get-VMHost | Get-VMHostStartPolicy | Set-VMHostStartPolicy -Enabled:$true --StopAction Suspend
    
  • ESX host SNMP configuration

    I'm about to go crazy trying to understand how to configure snmp on an esx host using Orchestrator.  I see the object for it (VcHostSystem.configManager.snmpSystem), but the value is null when I try to use it.  I used the managed object browser and of course, it appears under the "unplugged" position  The api documentation confirms that this is where I'd go for update this configuration but I can't seem to make this work.  All the research that I show people using one of the line of remote control tools to define.  Can someone help a way that they do with orchestrator?  I guess I could create a workflow that calls for the command-line utils, but that seems barbaric.  I also thought that maybe I could manipulate the XML directly on the host computer, but then again, it seems more like the caveman.  If all goes well, Miss me just something obvious in my attempts to do so.

    Here's my test code:

    var myVcHostSnmpConfigSpec = new VcHostSnmpConfigSpec();
    ro var = new Array;
    trap of var = new Array;
    var destination = new VcHostSnmpDestination();
    destination.Community = "SNMP community";
    destination.hostName = '127.0.0.1 ';
    destination.port = 162;
    RO.push ("read-only");
    Trap.push (destination);
    myVcHostSnmpConfigSpec.enabled = true;
    myVcHostSnmpConfigSpec.readOnlyCommunities = ro;
    myVcHostSnmpConfigSpec.trapTargets = trap;
    System.Debug ("snmpSystem:" + esxHost.configManager.snmpSystem);
    System.Debug ("active snmp?" + esxHost.configManager.snmpSystem.configuration.enabled);
    System.Debug ("read only communities:" + esxHost.configManager.snmpSystem.configuration.readOnlyCommunities);
    System.Debug ("trapTargets:" + esxHost.configManager.snmpSystem.configuration.trapTargets);
    System.Debug ("CS:" + myVcHostSnmpConfigSpec);
    System.Debug ("CS.enabled:" + myVcHostSnmpConfigSpec.enabled);
    System.Debug ("CS.readOnlyCommunities:" + myVcHostSnmpConfigSpec.readOnlyCommunities);
    System.Debug ("CS.trapTargets:" + myVcHostSnmpConfigSpec.trapTargets);
    System.Debug ("CS.trapTargets:" + myVcHostSnmpConfigSpec.trapTargets [0] .community);
    System.Debug ("CS.trapTargets:" + myVcHostSnmpConfigSpec.trapTargets [0] .hostName);
    System.Debug ("CS.trapTargets:" + myVcHostSnmpConfigSpec.trapTargets [0] .port);
    esxHost.configManager.snmpSystem.reconfigureSnmpAgent (myVcHostSnmpConfigSpec);

    This seems to be one or the other of these unfortunate ESXi features that can be managed through a vCenter. So, for each host that you want to manage, you must import the SSL certificate and add the host to the vCO so that such changes. Based on my test script manually to add the SSL certificate and the facilitator to my server of vCO I could set the SNMP parameters as you coded above.

  • Is it possible to use GPFS or another build is a SAN storage shared for multiple ESX and ESXi hosts?

    We have a license GPFS and SAN storage. I am trying to create a storage shared for multiple ESX and ESXi hosts share existing virtual machines. We tried once NFS, it of a little slow and consume too much bandwidth LAN.

    Anyone can help answer? Thank you very much in advance!

    It depends on your storage space.

    You must connect all hosts to the same San, then follow the configuration guide of ESXi and specific documentation for your storage space (for sharing LUNS on multiple hosts).

    André

  • How LUNS presented to an ESX host

    Dear team,

    How to confirm weather LUN is presented to an ESX host?

    We asked our team to SAN map a 900 GB LUN to one of the esx host, these people have done enough for their purpose (e.g. zoning part etc.) and confirm the same thing for us. We rescan the HBA, still, we are not able to see the same thing. SAN team asked us to reboot and check, but it's prodcurion esx box we will not be able to restart, so I want to confirm end VMware, is it possible to confirm weather esx is able to perceive the lun or the requested LUN is delivered correctly to an esx host, needs your help to understand this issue.

    concerning

    Mr. VMware

    If you need create a vmfs on this lun data store, then you can simply follow the add storage wizard via - see this link for more information/screenshots: http://www.vmadmin.co.uk/vmware/35-esxserver/109-esxvmfsdatastore

  • Add more disk space for the ESX host

    Hi all

    I need to throw more disk space to my ESX hosts.  I know how to bind records in Navisphere and present to the ESX host.  Once in the VI client, I "think" I need to go to the host and do a rescan of the HBA or something like that?  I'm a little unsure of the market of part VI to add more disk space.  Could someone just point me in the right direction?  Please note that I am looking to add more disks to existing hosts in existing clusters.  It adds no storage to a new host... rather an existing one.

    Thank you

    Jonathan

    You are on the right track.  Re-scan storage card, under the configuration tab select storage adapters, select the adapter and click on the link of the new analysis.  Then go to the storage section and there should be a link in the top right of the screen that says storage Add.  Click on that and it will guide you in adding/setting in form/naming of the new disk.

Maybe you are looking for