VMFS UUID to mapping LUN number on vSphere

Hello.

I tried to find an easy way to map the VMFS UUID associated with a particular logic unit number, like the command esxcf-vmhbadevs - m on ESX 3.5. I noticed that, now that I've started using vSphere the equivalent command to what I was looking for, esxcfg-scsidevs - m, shows the mapping with the standard format of the T10 SCSI addresses:

$ esxcfg-scsidevs - m

NAA.50014ee201f892d3:6/dev/sda6 49004c 42-58df2efc-CBCA-001ec9fda71b 0 esx14_local_storage1

NAA.50014ee2574e1d39:1/dev/sdb1 49004c 67-a56b8e58-d5e8-001ec9fda71b 0 esx14_local_storage2

4ac66699-86d6eaaa-ec5d-001ec9ab75fb 0 T10.9454450000000000000000007900000064530000E0000000:1/dev/sdd1 winxp-lvm

test/dev/sde1 T10.945445000000000000000000C8000000D0610000E0000000:1 4ad4f1aa-d4061fd2-7135-001ec9fda71b 0

So if I want to get the LUN number for one of the volumes of data I have to run another command to map the T10 with the LUN ID. As esxcfg-mpath - m or get it from vml link virtual multichannel in this way on the service console:

$ ls-l | grep vml

lrwxrwxrwx 1 root root 52 Oct 13 15:45 vml.01008c000020202020564952545541 - & gt; T10.945445000000000000000000C8000000D0610000E0000000

lrwxrwxrwx 1 root root 54 Oct 13 15:45 vml.01008c000020202020564952545541:1 - & gt; T10.945445000000000000000000C8000000D0610000E0000000:1

lrwxrwxrwx 1 root root 52 Oct 13 15:45 vml.010097000020202020564952545541 - & gt; T10.9454450000000000000000007900000064530000E0000000

lrwxrwxrwx 1 root root 54 Oct 13 15:45 vml.010097000020202020564952545541:1 - & gt; T10.9454450000000000000000007900000064530000E0000000:1

lrwxrwxrwx 1 root root 20 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744 - & gt; NAA.50014ee201f892d3

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:1 - & gt; NAA.50014ee201f892d3:1

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:4 - & gt; NAA.50014ee201f892d3:4

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:5 - & gt; NAA.50014ee201f892d3:5

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:6 - & gt; NAA.50014ee201f892d3:6

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:7 - & gt; NAA.50014ee201f892d3:7

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:8 - & gt; NAA.50014ee201f892d3:8

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee201f892d3574443205744:9 - & gt; NAA.50014ee201f892d3:9

lrwxrwxrwx 1 root root 20 Oct 13 15:45 vml.020000000050014ee2574e1d39574443205744 - & gt; NAA.50014ee2574e1d39

lrwxrwxrwx 1 root root 22 Oct 13 15:45 vml.020000000050014ee2574e1d39574443205744:1 - & gt; NAA.50014ee2574e1d39:1

7-10 bytes representing the LUN ID in hexadecimal on vml chain it was possible to get the serial number of T10.

However, does anyone know how to decode the string T10 and get directly to the LUN ID him? I also noticed that the T10 string contains the LUN number in 29-30 bytes, but bytes are reversed; so it can be assumed, there is a way to do it.

Any help is appreciated.

Juan Aristizabal.

Each seller encodes the serial no and the MONDAY in their series T10 numbers differently.  3Par is quite clearly (no weird math needed), Hitachi is a hexadecimal encoding, and EMC made a horrible mess of ASCII-> HEX-> BINARY-> HEX encoding.

You must ask your seller to chart how they do.

-Matt

VCP, vExpert, Unix Geek

Tags: VMware

Similar Questions

  • Virtual disk "Hard disk 3' is a direct access mapped lun that is not accessible

    I am currently in the process of upgrading our cluster of ESX 4.0 U1 to 4.1. In the process, I came across a physical MSCS 2 with RDM cluster. I stop the VMs and vmotion can them between the hosts of 4.0. Now as soon as I update hosts 4.1 I cannot vmotion the VMs to these 4.1 hosts. The error I get is: "virtual disk"drive hard 3' is a direct access mapped lun that is not accessible". I found an article KB http://kb.vmware.com/kb/1016210

    who speaks ensuring that LUN number is the same in the presentation of all ESX hosts and I checked, it is the case, moreover, as I said vmotions does not always work for guests, that I have not yet updated. I have not tried anyone all LUNS and re - introduce, don't know if I should try that. Looking for suggestions.

    Thank you
    greendxr

    You have to poweroff the node, remove the RDM drives, migrate the virtual machine, and then add again in RDM disk.

    RDM LUN must be on all hosts.

    André

  • How to map esx storage clariion lun number data store

    Hi all

    I'm at a client, and they say there is a plug-in to vSphere to show the amount of data to clariion lun mapping esx.

    Can any that confirm it, let me know where to find and how to install it?

    Thank you!

    Ken Eliezer

    [email protected]

    Hello.

    Looks like the EMC Storage Viewer may be what you're looking for?

    Good luck!

  • the number of vsphere HA pulsation data warehouses for which is 1

    Only, I have a giant lun created and have no space to create another.

    So now it gives me this error HA my hostsCapture.JPG

    What should I do?

    Click with the right button on the cluster, click on change settings, go to vSphere HA-> Advanced Options and add the das.ignoreInsufficientHbDatastore entry and the value real... vSphere cluster to disable and re-enable HA and the warning will disappear.

    VMware KB: HA error: the number of heartbeat for the host data warehouses is 1, which is less than required: 2

  • role of the crypto map sequence number

    I'm setting up IPSEC in four sites in a manner completely mesh. The problem I have is one of the sites is our main hub and everything works on a class B network. Creating ACL to get from one place to another is relatively simple, but getting a site on the main hub is another story, because other sites are all the subnets in the class B address, I have to remove these subnets of a class B and at the same time to encrypt the rest of the class B address. Subnets of the smaller sites are for most of the 24 and 25. I was wondering if the sequence # in the card order crypto could play a role for me. If I set the priority on small sites and put the lower on the map pointing to the main pole encryption could I get away with something like this:

    licence (local subnet) 0.0.0.255 x.x.x.x where x.x.x.x (category B) 0.0.255.255

    Thanks in advance for taking the time.

    Mario

    Mario... that's exactly how it works for the two ISAKMP Crypto map policies and policy. It will look at the lowest number (like attentive) so if you do your remote sites all a higher priority (lower number), then you should be fine with respect to the central site.

    Kind regards

  • VMFS datastore and advised LUN (IO queue)?

    Hello

    I have a few quick questions regarding best practices SAN LUNS and VMFS data warehouses.

    Assumptions:

    1 iSCSI SAN (single storage processor)

    2. 2 disk pools (2 x RAID5 @ 3 discs/RAID5)

    3 4 LUNS (LUN/Disk 2 pool)

    4 LUN size: 500 GB/LUN for a toal of 2 TB of storage

    Question:

    1. on what data store VMs would have a larger disk performance?

    A. Datastore1 created on LUN0 on disk pool 1 and Datastore2 on LUN1 on disk pool OR 1

    B. Datastore1 created the LUN0 on disk pool 1 and Datastore2 created the LUN0 on disc 2 of pool?

    I guess what I'm trying to ask here is to have LUNS on clusters of separate drives faster than to have all the LUNS on the same disk pool? If A VM hard exists on Datastore1 of B above, setting hard of VM B on Datastore2 of B above would improve the overall performance for both virtual machines? On the other hand, respectively, capping A VM and hard of B VM on Datastore1 and Datastore2, of A above still an effective option? This brings me to question 2.

    2 - is data on separate warehouses LUN fracture the queue of e/s of SAN LUNS on all LUNS? In other words, the SAN will access all LUNS at the same time, thereby increasing the performance vs having all VMs on a single LUN shared with a single e/s queue?

    Thank you

    Steve

    In General, you're trading the guaranteed 90 IOPS / sec per IOPS VMDK / s maximum 180, but shared between 2 VMDK.

    This seems to be an entirely theoretical question and sometimes almost philosophical, whether for trade this broad for this.

    If you think about it more later, it is quite similar to place vCPUs and VMs on ESX host - is it better to share some CPU more Rapids (= more expensive systems) or gives a processor dedicated Basic (= more material)?

    If I stick my neck, I would say that the difference between the aforementioned buildings is visible only marginally and you could probably be very happy with a flat 6 pin R5 datastore as well.

    But the specific difference between 2 R1s and an A10 with 2 LUNS or even a R10 with 1 LUN but 2 VMDK worth thinking.

    As I've already said:

    If speed and performance is a problem (MSSQL IOPS requirements) then you're already wrong with the SATAs and plan instead to study in an array of more powerful than to try to get the last bits of your SATAs.

    Don't get me wrong, surely SATA can do miracles in the small environment, but especially if I notice a 50 GB DB MSSQL for P2V I would first collect some perfmon data and plan my storage as a result even more than I would normally do in SMB environments.

    You will not get a PRIUS to take the load of a SUV, no matter how long and diligent, you plan to distribute the load.

  • HA and DRS direct mapped LUN.

    I have a virtual machine directly mapped with a 500 GB iscsi LUNS.

    Can any body tell me if HA and DRS will be possible or not.  As I know HA and DRS is possible in RDMS.

    > I have a virtual machine directly mapped with a 500 GB iscsi LUNS.

    I guess you mean that LUN is connected via initiation iSCSI software of guest operating system.

    Yes, HA and DRS are entirely compatible with this scenario.

    ---

    MCITP: SA + WILL, VMware vExpert, VCP 3/4

    http://blog.vadmin.ru

  • Set the path preferred on a lun by naa ID or lun number

    I'm looking for a script to set the path for a lun or 2 at a time. I would like to by lun or naa id #.  the LUNS are rdm if this is important.

    I searched, and only scripts seen that the value all LUNS a hba for preferred path.   ESXi 4.1 if hosting is important

    Mike

    It's strange, that the cmdlet Get-ScsiLun takes an HBA from the pipeline object.

    You can get help for all Select-Object parameters with

    Get-Help Select-Object-parameter *.

    To get the 2nd object, you could do

    Select-Object - Index 1

    BTW you're on PowerCLI 5.0.1 now?

  • How to add a LUN VMFS format without formatting? in vSphere 5.1

    Hi people, we need to mount a store of data that was previously seconded.

    Is it supposed to be an option called: EnableResignature or > DisallowSnapshotLun but is not present in vSphere 5.1.

    Can someone has a workaround for this? We just need to set up a data store without formatting!

    We use vSphere 5.1 Ent.Plus Lic.

    Help, please!

    Concerning

    You can always re - mount an individual to a host data store if he is always aware that the data store was just disassembled.

    Options EnableResignature or DisallowSnapshotLun is relevant only if you present a new LUN with the VMFS volume to a host that already has a volume mounted by the same UUID of VMFS (for example a volume snapshot of SAN-side).

    Since few releases ESXi, you don't even have to set the options manually beforehand. It comes when you add the data store in the vSphere Client will ask you what to do, whether it is the will of the volume. Will simply means just assign another name VMFS UUID and the data store, that's all.

    He does not reformat the LUN. So that you can move forward, then up the LUN.

    See also:

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

  • Find the UUID of LUNS

    Hello

    Whats is the number to designate following/vmfs/volumes/5ccfg379-5049xxxxx

    I initially thought that it is the UUID of the LUN but realized later that the UUID is found in the properties of the data store that is naa.6060xxxxx

    Concerning

    Rahul

    Whats is the number to designate following/vmfs/volumes/5ccfg379-5049xxxxx

    It is the system of files UUID that is generated when you format a disk or partition VMFS or Setup formats its volumes vfat. It is distinct from the physical disk ID (usually naa.) XXXX or t10. XXXX) that is generated by the storage device.

    You can get a list of all registered with this command VMFS filesystems:

    list of file system of storage of esxcli #.

    Mount a Volume mounted UUID Type size free name

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

    / vmfs/volumes/516fcbf8-669aa37a-61e9-040981e22300 Datastore1 516fcbf8-669aa37a-61e9-040981e22300 true VMFS-5 268167020544 266583670784

    /vmfs/volumes/523 a 4564 - 6a4506c3 - cf7f - 10604b0aace1 Datastore2 523 has in 4564-6a4506c3-cf7f-10604b0aace1 true VMFS-5 299842404352 285894246400

    This tells you what VMFS volumes are mapped to which physical disk device:

    # esxcfg - scsidevs - m

    NAA.6000eb38ccef4563000000000000043c:1 /vmfs/devices/disks/naa.6000eb38ccef4563000000000000043c:1 516fcbf8-669aa37a-61e9-040981e22300 0 Datastore1

    NAA.600508b1001c4fe29284c8a220cc4932:1 /vmfs/devices/disks/naa.600508b1001c4fe29284c8a220cc4932:1 523 has in 4564-6a4506c3-cf7f-10604b0aace1 0 Datastore2

  • Impossible to force mount a LUN/VMFS

    Hello

    I have a strange problem. I try to test a storage failure DR plan.

    I have a cluster vSphere 5.1 with VMFS data warehouses stored on a storage EMC (VNX5100) Bay (1117900). Some of these data stores are replicated to a second array with the tool table of replication (MirrorView/S)

    I tried this case: stop IO with the first table (lun, the storage group deletion) with engine on virtual machine (with disk i/o traffic generated with a single copy of the file in Windows Explorer).

    After that, I stopped all the virtual machines that were stored in the deleted data store and start a new analysis all LUNs. Data store disappear from vSphere Client and VMS are marked as inactive.

    I removed the lost permanent device entries and reboot both nodes.

    I promoted the LUN in the second table, and I add the first cluster of nodes in the storage group.

    I started a new analysis all LUNS and devices are properly listed and mounted but not the VMFS volume.

    When I use this command: esxcli - vcenterserver - Server vihost node1 passthroughauth - list of instant vmfs storage

    51befee9-f600f51d-9948-90b11c3bb4e2

    Volume name: DATASTORE01

    VMFS UUID: 51befee9-f600f51d-9948-90b11c3bb4e2

    Can mount: true

    Reason of mountability-United Nations:

    Can will: true

    Reason for non-resignaturability:

    County of measure pending: 1

    I try a lot of things, but the data store is detected as a snapshot.

    I tried this: KB VMware: vSphere management LUNS identified as LUN snapshot

    but by adding the data store (using the existing Signature keep) do not reach the VMFS volume. Another strange things: the name of the data store is not detected by the wizard.

    No idea why?

    Have you tried to go up the data store by using the command line again? Error messages?

    André

  • the iSCSI LUN mapping

    How ESXi is mapped LUN vmfs iSCSI extends? The reason why I ask, is that in my opinion, he should do a mapping to make it persistent after a reboot?

    fajarpri wrote:

    @Rikard, similar like that. How ESX knows that Lun0 will extent1 and Lun1 goes to extend2 in this store a data?

    Wouldn't there is possibility that ESX detects Lun1 first than Lun0 and thus risk recognizing as extent1?

    I guess it's a bit 'Internal ESXi', but it should be the NAA or T10 number reported by the SAN and no id LUN itself using ESXi to recognize discs. Given that these numbers never change, there is risk of errors between reboots. I have a vague memory of which is a kind of question on the 3.x versions, but do not these days.

  • helping the 'physical LUNS and data mapping file store.

    All the

    HELP REQUIRED PLEASE?

    I have a windows VM, which must be connected to a load of RAW LUN mapped. These LUNS (storage symmetrix btw) were all presented through their esx host and were confirmed by the SAN guys and myself. The question I have now is how can I confirm what the label of "vml.xxx" for each raw mapped LUNs (I can't scroll all the way to confirm what it is!). I need this information so I can marry until Dev ID is presented in which logic unit number. The virtual machine is running and needs to stay on as long as its prod. So my question is, is there a way to know what the full title of the map file is please?

    Check the attachment below which shows a "gross mapped lun" properties and its inability to scroll to the end to copy the mapping file name complete.

    Thanks in advance

    Munster

    1, vmkfstools - q, you get the vml.xxx

    2, esxcfg-mpath - b d vml.xxx you get it naa.xxx and what is the lun number

    3, esxcfg-scsidevs - l d vml.xxx you get more information about that lun

    Binoche, VMware VCP, Cisco CCNA

  • Move a virtual machine that has a raw lun mapped to SAN

    Dear all,

    I need expert advice for this case. I have a virtual machine on a host with esxi 4.0, but due to many machines same virtual host we are experiencing memory problems and have decided to move this virtual machine to another host with less VM and less use of resources.

    I plan 1 HR time to perform this task, this virtual machine have two drives one windows partition and the second 20 GB as mapped lun on SAN. So when you move it to another host, what I'll do is tap to stop the virtual machine, go to another host and storage switch to VM folder and add the VM.vmx file to add it to the inventory of the new host. What about the case of raw LUN mapped, how to take care of it.

    Please advise, it is little urgent.

    Thank you

    I guess there is no vCenter at stake here and you have no option for vMotion? The RDM, I would like to stop the virtual machine, detach the RDM LUN, migrating the virtual machine and re - attach the RDM.  As long as the two hosts can see SAN/RDM, you should be good with that.

  • Size max for NFS and VMFS (iscsi, FCP) datastore on vSphere 4.1 and 5.0

    Hello

    What is the maximum size for NFS and VMFS (iscsi and FCP) data created on vSphere 4.1, 5.0, and 4.0 stores?

    Thank you

    Tony

    Hi Tony,.

    You should find the answers in the various maxima of Configuration documents:

    Good luck.

    Concerning

    Franck

Maybe you are looking for