Name of the data connection with ConsoleDeviceName and CanonicalName store

Hi people,

I would like to connect 3 parameters, ConsoleDeviceName, CanonicalName, and 'name of the data store.

The first two times (ConsoleDeviceName, CanonicalName) can I get with ' Get-VMHost "MyESXHost |" Get-ScsiLun.

But how can I get the name of the data store?

http://communities.vmware.com/servlet/JiveServlet/downloadImage/7964/12-9-2009+1-11-11+PM.png

Thanks for help

Hello

In order to get the name of the data store for each unit number logical you should review the information of measurement of the disk for each data store attached to the host and link them using canonical names of lun. VMFS datastore disk measurement information are available in the HostScsiDiskPartition object. Here's a code example how to do this:

$h = Get-VMhost "MyESXHost"

# collect VMFS datastore name and extent cannonical names into a hashtable
$dsLunList = @{}
$dsView = $h | Get-Datastore | ? {$_.Type -eq "VMFS"} | Get-View
foreach ($ds in $dsView) {
     foreach ($diskExtent in $ds.Info.Vmfs.Extent) {
          $dsLunList[http://$diskExtent.DiskName|http://$diskExtent.DiskName] = $ds.Info.Name
     }
} 

#populate datastore name for each lun if available
$lunList = @()
$h | Get-ScsiLun | % {
     $lun = "" | select ConsoleDeviceName, CanonicalName, DatastoreName
     $lun.ConsoleDeviceName = $_.ConsoleDeviceName
     $lun.CanonicalName = $_.CanonicalName

     if ($dsLunList.ContainsKey($_.CanonicalName)) {
          $lun.DatastoreName = $dsLunList[http://$_.CanonicalName|http://$_.CanonicalName]
     }

     $lunList += $lun
}

$lunList

Kind regards

Yasen

Tags: VMware

Similar Questions

  • Creation of VM in local ESXi datastore for the backup of the data SAN with VMXNet 3 VM store

    Hi all

    I would like to know how you have configured your server to backup as a virtual machine?

    My idea is to use the local data VMFS3 store on my 3 x ESXi servers,

    by installing the application of part 3 (such as Veeam Backup 5 or Backup Exec 2010) in Windows Server 2008 R2 VM

    equipped with size of very big hard drive (OS 8 GB + 1 TB VMDK data partition) on each of the local data store to save the computer virtual within the SAN.

    What I have:

    VMware vSphere essential 4 - ESXi 4.0 (not hot add)

    Dell Power Edge 2950 with 2.5 to multiple VMFS3 extended on top - RAID 5 (6 x 500 GB SATAII 7200 RPM)

    Reference Dell MD3000i iSCSI SAN on Gigabit Ethernet

    The configuration of the Windows Server 2008 R2 VM:

    2 x CPU @ 2.33 GHz

    4 GB OF RAM

    VMXNet3 NIC-> for better connectivity to the backup between the local data store ESXi and iSCSI-SAN data store.

    Here's the reason why I'm doing this is that:

    1. I don't have the additional NETWORK card to connect my physical server in iSCSI SAN THAT switch, so I can't use - SAN backup mode.

    2. I only use the available lowest VMware license that can't stand the Hot-add the device function.

    Would it be an optimal configuration?

    Any kind of help and suggestion to implement backup VM VM would be greatly appreciated.

    Thank you.

    Kind regards

    AWT

    From what I see of you think to do, you will get no advantage of using the VMXNET3 NIC, compared using an e1000 NIC... All your traffic will be on the connections of 1 GB, because you're leaving SAN local disk... If you had the VM on the SAN, or the same storage, the VMXNET3 NIC were going at speeds of internal circulation (could get you better than 1 GB, but I advise to test before committing)...

    In addition, you will not be able to use a volume of OS 8 GB in Server 2008 R2... Bare minium is 32 GB (use plus 40 GB, which is that vSphere will use when you tell him to 2008 R2 for the operating system of the virtual machine)...

    VMware VCP4

    Review the allocation of points for "useful" or "right" answers.

  • At my place of work, there are a data server with LAN and internet networking. I want to disable the internet connection before it is infected with the virus.

    At my place of work, there are a data server with LAN and internet networking. I want to disable the internet connection before it is infected with the virus.

    original title: server and virus problem

    Hi SurajMendon,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the platform of networking on TechNet. Please post your question in the TechNet Windows XP Networking forum.

    Networking platform

    http://social.technet.Microsoft.com/forums/en-us/winserverPN/threads

  • How to set vm-description/notes and get the name of the data store, where the virtual machine

    Hello guys,.
    I have vCenter Orchestrator 4.1.1 build 733 installed and it works fine, but I need your help for the following two issues:
    (1) I want to put the description/notes of a virtual machine using a workflow. But I have not found any API useful to create this workflow (I don't want custom attributes, see attachment for details).

    (2) how can I get the name of the data store, where the virtual machine? I need this name for a workflow.
    I need your help.
    Thanks in advance!

    With regard to the notes of the VM, the following code (see enclosed package) can do this:

    var oldNotes = vm.summary.config.annotation;
    If (oldNotes == null) {oldNotes = ' ' ;}}
    System.log ("Notes of VM current:" + oldNotes);
    Now put the new notes:
    Start by creating a context
    Context of var = new VcVirtualMachineConfigSpec();
    Update the annotation with the new value property
    configSpec.annotation = notes;
    launch the task to reconfigure the virtual machine with the new context
    NOTE: This is sure to apply with a virtual machine under tension
    var task = vm.reconfigVM_Task (configSpec);

    And, in what concerns the VM information, take a look at the workflow of the library: \Library\vCenter\Virtual Machine management\Others\Extract virtual machine information

  • Can clone us VM on the data centers with downtime, is this possible in ESXi 5 and above?

    Can clone us VM on the data centers with downtime, is this possible in ESXi 5 and above?

    No, they can be in different subnets.

  • I noticed that my user name in the C drive has disappeared and is displayed under the desk

    original title: save files on the net / backup of the files in the C drive

    These 20 to 30 days, I noticed that my user name in the C drive has disappeared and is displayed under the desk. In addition, whenever I try to save a file on the net on my laptop, this allows me to record only at this location:

    C:\Users\vijai\AppData\Local\Microsoft\Windows\Temporary Internet Files\Virtualized\C\Users\vijai\Documents

    Also in the Solution Explorer, while all other folders category, like documents, pictures, music etc appear in the left panel, these do not appear in the right panel. I also note that a "Application Data" folder appeared under my user name and all files stored in this folder only.

    Can someone help me solve this problem

    Hi, VIJAIRAGHAVANP V,.

    You can try the following steps and check.

    Method 1:

    You can try a system restore to a prior restore point before you have been affected by the issue.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following link:

    System restore

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Method 2:

    If you are still facing problems then try creating a new user account and check if the problem occurs:

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If you are not faced with any issue, then check out the following link to correct a damaged account.

    Fix a corrupted user profile:

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Hope this information helps.

  • Machine virtual IOPS / s report, how to display the name of the data store?

    Hi guys

    I am new to the Foglight community, this is a great tool, and I learn a lot.

    Currently I am trying to create a simple table that will show me metric of my VMware environment: Virtual Machine name, Datastore IOPS and data store.

    However I can't find how to include data store name in the table, because it is not a measure of the Virtual Machine. I think I need to expand the scope of my table to include VMware Datastore, but I don't know how to do this.

    -Mark

    Check the options available it seems that it can be done with WCF (the frame behind the Foglight dashboards).  We recommend generally customers who plan to build views WCF take adequate training or our PSO people engaged in it.

    In any case I can help show a quick example of how it's done.

    Please try this on a local/test server.

    Go to Configuration > definition >

    Make sure that you are in my definition, and click the icon to add a view. then choose from the tables and trees - oriented line table

    Give a name to the view, go public and make a portlet/reportlet and apply

    Switch to the configuration tab and click the change for the lines and choose a query

    Under query, expand the VMware and scroll down

    Until you can select the query for virtual machines

    And press the set button.

    Your view should look like this

    Now you must select the columns.

    Each column has a value you can edit and there is a button + to add additional columns.

    Lets start with the name of the virtual machine - click on the button to change to your default column and choose the context.

    Click on the drop down menu to enter key and choose the current line (virtual vmware machine)

    Click on the drop down menu to access path and scroll down until you can select the name and then click on set.

    You have created a table that lists the names of all virtual machines.

    You can click on save. and then click test, choose a time and click the result. A new window will open a show the list you of virtual machines.
    From here you can continue to add additional columns, each time choosing the key entry in the current line and the path to the metric/string to display.

    For example, the name of the data store.
    I change the module

    Click the configuration tab and click the icon to add a column

    For the column value, that I chose defined context once again, the key input is the current row and for the path, I expand the node for the data store

    And scroll until I see the Proprietename

    If you save and test you will see the result

    Keep adding columns and the data you want, notice that you have arrows that allow you to control the order of the columns.

    Note that you can click Show advanced configuration properties

    This will give you the opportunity to see the properties of the extra table, such as header - giving you the opportunity to give a more meaningful name (name of the data store, the name of the virtual machine, etc.) to the column header.

    You can now go you drag and drop the table edge/report and under my eyes, you will see your new view

    Drop it in the main view

    I hope this has given you the starting point to build this table.

    As I said, I strongly recommend going through our WCF training if you plan build more custom views or hire software Dell PSO Organisation to help build you views that correspond to your need.

    Best regards

    Golan

  • Logical name of the data unit

    Hello

    I want to install FSCM92 with tools 8.53 (MS SqlServer DB) on Win2008.

    Execution of setup.bat in E:\PT853\setup\PsMpDbInstall to create the database.

    I am invited to:

    PeopleSoft DATABASE name

    and

    Logical name of the data unit.

    My question is:

    -What is the meaning of the logical name of the unit of data?

    -What is the relationship between the logical name of the data unit and the name of the PeopleSoft DATABASE?

    Thank you.

    Logical name of the data unit

    A name given to identify the physical device that allocates data to the database. The logical name in the example is EPdata

    Page 181 of the http://docs.oracle.com/cd/E38921_01/psft/acrobat/PeopleTools_8.53%20_Installation_for_Microsoft_SQL_Server.pdf

    You have a database that contains the data and files stored in a logically defined folder here.

    Nicolas.

  • having problem to connect with itunes and update my iphone

    I have problem to connect with itunes and update my iphone. Everyone that nows how to fix this?

    What do you mean by communicating with itunes?

    In any case, ask in the Forums of Apple:
    https://discussions.Apple.com/index.jspa

  • How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro?

    I have 2 sony camera popular with the AVCHD file structure. The two cameras are the same. How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0


    Now I see the date taken in the import screen until I click "ingest". When in the trash, this option is there, but no metadata in there. It is therefore impossible to import images from two cameras and have these sorted.


    How can I get this sorted out before, so I can export for the first?

    Thank you. Tom van den Dool

    Hi Tom,

    How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0.

    Sorry, you can not do as a prelude. You can request a feature here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • Connection with Flex and PHP

    Hello

    I write a login page that will serve as the front end of our main Flex application and hope someone can fill in the blanks here...

    The Flex login page composed of password entry fields, username and a "submit" button. When a user enters their credentials and hit sumbit, HTTPService will send the login information of the user to the PHP script. This script will handle authentication on the MySQL database. If verified, two random questions created by the user will be included in the resulting XML object. These two security issues will be displayed in the login page.

    I have already implemented these logics, but I was wondering...

    1. Assuming that HTTPS / SSL will be implemented in the production, is this OK/safe to include security responses in XML and let the Flex to validate the responses of the user?
    2. After successful validation, how to redirect to the homepage?
    3. I understand the idea of ID of session and token cookies, but what I have to implement this?
    4. How to sign out?

    Thank you very much in advance for your time and the suggestion.

    I currently have three projects on the go, so I can't really spend a lot of time on it. He ca

    n be a bit of a minefield for certain circumstances, but this link should be a good start

    http://corlan.org/2008/07/22/Flex-Air-PHP-and-user-authentication/

    Personally, I would probably support using the notion of token stick at its connection to the flex application and whenever the data request system is passed a token (baton), the token of the wand is also past and demand verified as a user that is logged by the PHP backend.

    Naturally, it all depends on how secure your application must be to decide exactly what appropriate measures. The data passed between client and server and back can be intercepted if a secure protocol is not used.

    Paul

  • DVD how much we need for the files backup with backup and restore program?

    Hello how are you?
    DVD how much we need for the files backup with backup and restore program? Y at - it large differences in the time and space between write backups on DVD and external hard drive?

    I do not understand your question.  Asked how the space has been used on your C: drive and you answered 60 GB.  Now you say your PARTITION C: is 60 GB with only 20 GB used?  I really don't understand what you're so confused.  It's simple arithmetic grade 3rd.  What is space you USED on the C: drive, that multiply by 0.7 to obtain the amount of space will be used on your backup disk after compression.  Divide this number by 4.7 and round.  That's how many DVDs you'll need if you insist on the use of DVDs for backup.  Then

    (1) If you are using 60 GB, the answer is (60 x.7) / 4.7 = 8.936.  I rounded up to 9 and added 1 just to be sure.

    (2) If you use only 20 GB, the answer is (20 x.7) / 4.7 = 2.97 rounded up to 3.  Add 1 and get 4.

    If you use only 20 GB, I am very surprised, because almost any important installation of Windows 7 is going to take more than 20 GB.

    All of this assumes that you do NOT use the Windows backup and restore program, but one that I recommended.  When I used the windows one, the results were several times the space that I used on my C: partition.

    Good luck.

  • I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please advise...

    I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please notify.

    reset your preferences-

    Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html

    Adobe media encoder: https://forums.adobe.com/thread/1713540

    Legacy: http://helpx.adobe.com/after-effects/using/preferences.html

    Bridge: https://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html

    Dreamweaver: https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html

    Flash: http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html

    Illustrator: http://helpx.adobe.com/illustrator/using/setting-preferences.html

    InDesign: https://forums.adobe.com/thread/526990

    Lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html

    Muse (mac): https://forums.adobe.com/thread/1246022?tstart=0

    Photoshop: https://forums.adobe.com/thread/375776

    Photoshop elements: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

    elements of first: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html

    First pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html

  • Navigation in both sense between the anchor points with "prev" and "next buttons?"

    Hi all

    I'm working on a horizontal presentation site that has anchors on each part. That the user scroll, he snaps to each anchor point. It works fine with just the mouse wheel, but I wish I had previous buttons and following which allow easy navigation between points. I know I can have buttons to jump to say on each article has > B > C and then C > B >, but it's a simple "prev" and "next" buttons that are pinned to the page as a whole. Then, as the page scrolls from left to right, the buttons remain in place. Is it possible to have them just go to previous and next in the line, rather than linking a button to anchor point A, B, C, etc.?

    NEW WIDGET! Navigation in both sense between the anchor points with "prev" and "next" buttons http://goo.GL/TMbZRc

  • Size of the data in a table and the size of the table

    I am trying to determine the size of the data in a table and also the overall table size. I use the following query:

    SELECT BOTTOM (a.owner) as owner,
    LOWER (a.table_name) AS table_name,
    a.tablespace_name,
    a.Num_Rows,
    ROUND ((a.blocks * 8 / 1024)) AS size_mb,
    a.Blocks,
    a.Blocks * 8 Blocks_Kilo_Byte.
    a.PCT_FREE,
    a.compression,
    a.Logging,
    b.bytes / 1024 / 1024
    From all_tables a, dba_segments b
    WHERE the a.owner AS SUPERIOR ("USER_TEST")
    AND a.table_name = "X_TEST_TABLE."
    AND b.segment_name = a.table_name
    AND b.owner = a.owner
    ORDER BY 1, 2;

    Is this the right way to go about finding the size of the data in a table? If this isn't the case, please give your suggestions.

    BTW, this in a 10g version.

    You probably want to use the DBMS_SPACE package. In particular, the procedures SPACE_USAGE and UNUSED_SPACE to get an accurate account of the use of space in a table. Your application may give you a relatively accurate estimate if the optimizer on your table's statistics are reasonably accurate estimates. But there is no guarantee that the optimizer statistics are accurate.

    If you want just an approximate answer and you're comfortable that your statistics are accurate, this query may be close enough. If you want a specific response, however, use the DBMS_SPACE package.

    Justin

Maybe you are looking for

  • Re: Flashing the BIOS stuck at one point

    I have a Satellite A200-1UB (PSAE3E).I just tried to upgrade the BIOS (in Windows that this site says it's the recommended option) and the stuck progress bar at halfway, when checking block 13 of 18 and nothing happened since then. I have not yet tur

  • Synaptic PS/2 Port Touchpad Driver Code 80240016 error

    During Microsoft updates on August 14, 2010, I received this error on my HP Pavilion tx2510us Entertainment Notebook PC. Do the following and it will be resolved the problem and the error. (1) unstall all the devices in the Manager device/mouse and o

  • Is it possible to know if a control digiatal is an integer or a value of type double?

    When I have the reference to a digital control, how can I find the representation of its value (for example double, Integer32,...)?

  • very low volume

    When I try to play a video on utube volume is very low. How can I increase the volume. He was much stronger. Thank you mike

  • 5550hdn: card slot not initialized

    Display unit not initialized card slot.  I can't find anything in the manual or online research.  How to initialize the card slot?  It is in the owner's manual and I'm missing? Thank you for your time Ben.