new-store data using the name of runtime

Hello

I know the name of runtime - vmhba2:0:0:201 and I would like to create a VMFS data store using PowerCLI. In the past, I'm sure I could use the runtime for the path parameter, but today I need the canonical name.

So either 1) how to create the data store with the info I have, or 2) how obtain the canonical name of the runtime name would help me greatly.

Thank you, Andy.

Or all at once

$esxName = 
$runtimeName = "vmhba2:0:0:201" $dsName = "MyDS"
$esx = Get-VMHost -Name $esxName $lun = Get-ScsiLun -VmHost $esx | where {$_.RuntimeName -eq $runtimeName}
New-Datastore -VMHost $esx -Path $lun.CanonicalName

Tags: VMware

Similar Questions

  • Get the size of the lun by using the name of runtime

    Hello everyone

    Does anyone know how to get the size of the lun using the runtime name?

    $runtimeName = "vmhba0:C0:T0:L3".

    You mean something like this?

    $runtimeName = "vmhba2:C0:T4:L42"
    
    Get-VMHost MyEsx | Get-ScsiLun | where {$_.RuntimeName -eq $runtimeName} |Select RuntimeName, CapacityGB
    
  • Can I have the Profile Manager uses the name of the device used when the placement of placeholders?

    Can I have the Profile Manager uses the name of the device used when the placement of placeholders? Currently, all get renamed 'iPad' when the device through DEP configuration.

    No, but

    I was putting new devices in groups of temporary devices and renaming in bulk, once they are configured for the user, by using user variables / unit...

    The other annoying problem would be the user modifies the device name when they connect it iTunes...

    • the %destinataire% email - address email (the EMailAddress attribute)
    • first_name % - first name (FirstName attribute)
    • full_name % - full name (attribute RealName)
    • % of guid guid (GeneratedID attribute)
    • last_name % - last name (the LastName attribute)
    • the title of the post (the JobTitle attribute) %

    -% mobile_phone % the number of mobile (laptop attribute)

    • short_name % name run (the RecordName, generally the name of the account attribute)

    The variables of the unit are:

    • % BuildVersion % - full OS version on the device
    • ICCID % - ICCID (from the SIM card)
    • IMEI % - IMEI (International Mobile Equipment Identity)
    • OSVersion % - common version number of the operating system of the device
    • ProductName % - name of the product
    • SerialNumber % - serial number
    • % WIFIMAC %-MAC address of the WiFi interface
  • Can access the shared folder by using the name of the server, but is unable to use the intellectual property

    Hi, I need help with a very strange problem.

    I have a Server 2003 domain controller to PC and all the domain user can access any shared folder of the server using IP address or FULL domain name.

    So I joined a R2 of 2012 new server to the domain as a workstation normal and not as a new domain on the network controller, and the problem is that one cannot access a shared folder on the new server by using the IP, but can be accessed using the name of the computer.

    My Admin user can access the folder using the IP address or the name comp. on any work, but the user of my AD position may not use intellectual property.

    I can using Ping IP or name of the computer for every user of AD.

    Please check the attached images.

    When I try to access it using IP, it gives me the following error:

    \\192.168.0.2 is not accessible. You might not have permission to use this network resourse. Contact the administrator of this server to fing out if you have access permissions.

    Currently, there are no available connection server to process the logon request.

    Hello

    You may need to ask the question on the TechNet Forums:

    https://social.technet.Microsoft.com/forums/WindowsServer/en-us/home

    Kind regards

  • How to create a list of button by using the names of a table

    Hi, I want to create an application that displays detailed information about something. for example, as the profile of the users. my application will read an xml response from the server that contains the list of the names of the users. How to create a list of buttons using the names and then each button that displays the name that can be pressed and displays detailed information about the name? I think that it is similar to the BBM app that displays a contact list of the user. Thank you very much

    Create a ButtonField as:

    ButtonField [] users_buttons = new ButtonField [number of users];

    Initialize the uasing dem:

    for (int i = 0; i)<>

    users_buttons [i] = new ButtonField ("user", Field.FIELD_HCENTER |) ButtonField.CONSUME_CLICK);

    Make dem clickable setchangeListener method of buttonField and Ooveride Navigation click to make a few operatoin by clicking on the specific button!

  • several stores data on the same disks

    It's so strange. I can't create several stores data on the same drive. I have a 2 TB plugged on my server (motherboard) disk and after that I created my first store of data (100 GB), when I return to create another, that the drive isn't an option for me to create a new data store of. When I delete the data store, the drive comes as an option to create a new data store of. WTF?

    of http://pubs.vmware.com/vsphere-esx-4-1/wwhelp/wwhimpl/js/html/wwhelp.htm#href=fc_san_config/c_making_lun_decisions.html

    A logic unit number must contain only a single VMFS data store.

    I guess the reason for this is a SCSI reservation. Even if this has been significantly reduced in 4.x it is still necessary for some operations. Each SCSI reservation - even if this is necessary for an operation on a datastore - locks the entire disk and could therefore cause problems on other stores of data on the same drive.

    André

  • What is the name of Runtime

    I just installed vSphere 4.0 and VC 4.0.

    I noticed what we call the name of Runtime.

    I tried to understand what it means, but without success.

    Can someone explain what vmhba2:C0:T3:L0 means?

    As rate if I understand well vmhba2 is the adapter host bus at the back of the physical esx server, C0 is the SP on the SAN, T3? and L0 is LUN 0.

    Hello.

    I noticed what we call the name of Runtime.  I tried to understand what it means, but without success.

    Runtime - the name of the first path of the device. The runtime name is created by the host. The name is not a reliable identifier for the device and is not persistent. The runtime name has the following format:

    vmhba #: C#: T #: L #, where

    vmhba # is the name of the storage card. The name refers to the physical card on the host, not for the SCSI controller that is used by the virtual machines.

    C# is the channel number from storage.

    T # is the number of target. Numbering of the target is determined by the host and may change if there is a change in the visible targets for host maps. Targets that are shared by different hosts might not have the same target

    number.

    L # is the number LUNS which shows the position of the LUN in the target. The LUN number is provided by the storage system. If a target has a single logic unit number, the LUN number is always zero (0).

    Can someone explain what vmhba2:C0:T3:L0 means?

    vmhba2:C0:T3:l0 represents LUN0 on target 3 accessed via adapter vmhba2 storage and channel 0.

    All this information is extracted directly from the Guide of Fibre Channel SAN Configuration.

    Good luck!

  • Use the name of the value of the Variable?

    Is it possible to use the name of a variable to the value for loading data?

    That means is, if I have a variable called "var1" and I charge "var1" to an XML file then "var1" value is "XYZ", is it possible to use the value "XYZ" to load data to a dynamic textbox call "XYZ"?

    var1 = "XYZ".
    (XYZ is a dynamic text on the stage box and I need to load XYZ with incoming data)
    Example: XYZ = "text that I ever have."
    (but XYZ is really the value of 'var1')

    Thanks - Gary

    Is it possible to use the name of a variable to the value for loading data?

    That means is, if I have a variable called "var1" and I charge "var1" to an XML file then "var1" value is "XYZ", is it possible to use the value "XYZ" to load data to a dynamic textbox call "XYZ"?

    var1 = "XYZ".
    (XYZ is a dynamic text on the stage box and I need to load XYZ with incoming data)
    Example: XYZ = "text that I ever have."
    (but XYZ is really the value of 'var1')

    Thanks - Gary

  • How to find a table, using the name of the column in the database schema

    Dear all,

    Please help me on

    using the name of the column, how to find a table name in the database schema.

    Thanks in advance

    Hello

    You can query the data dictionary views all_tab_columns and user_tab_columns.
    For example, to find the tables in the scott schema have called deptno columns:

    SELECT  table_name
    FROM    all_tab_columns
    WHERE   owner           = 'SCOTT'
    AND     column_name     = 'DEPTNO';
    

    Remember that anything inside quotes is case-sensitive.

    The all_tab_columns view has one row for each column in each table (or view) that you have the privileges to use.
    The user_tab_columns view is a subset of all_tab_columns, containing only your own tables (and views).

  • Sort data with the name of the month

    Hi all
    I have a table column contains data type varchar2 and got every month (Jan - Dec) but he got another string "annual". I can't sort the data using the to_date function.

    I am train simple statement like that-

    Select item_id, description, name, order_month
    of my_orders
    order of to_date (order_month, 'Month')

    but get error 'Invalid MONTH A'

    Is it possible that I dispense the * "Annual" * in the list and then stopped a month?

    Thanks in advance,

    Pascal M

    http://Tajuddin.whitepagesbd.com

    You can try

    order by to_date(nullif(order_month,'Annual'),'Month')
    

    followed by

    nulls last
    

    or

    nulls first
    

    If you prefer to have annual on the top or bottom of the results of the query.

    Alessandro Bye

  • How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page

    I just noticed that (in comparison to Internet Explorer): in IE, when you preferred a Web page, it uses the actual name of the Web page (for example, for this page, it would be "Ask a Question Firefox Help" as the name of the bookmark), but in Mozilla, it uses the URL as the name of the bookmark. I was wondering if it was possible to change my Mozilla settings so that it uses the name of the Web page as the bookmark name instead of the URL? I hope that everyone understands what I am getting? If anyone can help me, I would really appreciate it. Thank you.

    Firefox uses the tag title for the name of the newly saved bookmark.

    When I bookmark on this forum page I get this for the 'name' of the bookmark.

    How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page | Firefox Support Forum | Firefox help

  • Receiving data using the device RFCOMM Protocol activate bluetooth

    Hi all

    I want to apply that receive the data of bluetooth device using the RFCOMM Protocol.

    I'm pasting some of my code

    Server StreamConnectionNotifier = null, Server1 = null, server2 = null;

    Hi all

    Can some body having any idea or sample code to receive data using the for Bluetooth RFCOMM Protocol. I am able to find a device to activate bluetooth and also connect with it.

    And ther eis a problem plus I only magnified device does not form some sort of link (link Url SPP, OPP Url link, etc.) for bluetooth.

    But I can verify that this device is correct because I am able to receive data from this device to my computer by checking the connection port and to open this port.

  • How to set up a new email account using the same e-mail address of my old computer?

    How can I configure sup a new email account using the same e-mail address of my old computer?

    Hi Melanie,

    Are you referring to the Mail app or user login account?

    If you are referring to the Mail application, you can consult the following link: Set up Mail and add contacts

    If you are referring to the user login account, you can consult the following link: create a user account

    It will be useful.

    Keep us informed on the status of the issue.

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • I have a new iMac and used the disk to install version 6 of photoshop, but I have upgraded to version 12, but its installed version6. How can I get version 12? I tried to uninstall, but it does not ask the serial number version 12. Thank you

    I have a new iMac and used the disk to install version 6 of photoshop, but I have upgraded to version 12, but its version 6. How can I get version 12? I tried to uninstall, but it does not ask the serial number version 12. Thank you

    If you want version 12, then you don't need to install version 6, you must install version 12.  If you are really talking about Photoshop Elements, not Photoshop, then the link below, you should get to the download.

    PES 10, 11, 12, 13, 14 - https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-downloads.html

Maybe you are looking for

  • cannot start on Mac after resizing partition bootcamp, disk management.

    Hello guys. I have a 13-inch MacBook Pro (9.2) 2012 with OSX 10.9 running. CORE I5, 4 GB ram and a 500 GB hard drive. I used Bootcamp to install windows 8.1 which succeeded, but I wanted another partition to store data, so I cut 100 GB of the Bootcam

  • Laptop will not load Explorer - is there a way to download Firefox without using Explorer? Restore the all too recent dates!

    I think that affected versions of Windows Explorer (we have a card in the laptop, which I believe is the origin of the problem) so that it is more load. I would like to switch to Firefox, but do not know how to load it without exploring. My Google Ea

  • Satellite 1800 - what series it is?

    Hi guys I'm a dumb bum which series is my computer laptop satellite 1800. Please how do I know that what follows is ps183a-2q54pp-s/n 22104793p

  • loss of performance

    I tried El Capitan and none of my important software would go.  I had a backup (and I have little complaints about it) and I was able to restore all of the HD system.  This is part of the software licensed to lose their license and I had to jump thro

  • Fonts Windows 7 SP1 Search box problem

    I bought an Acer laptop not long ago, the operating system is Windows 7 Home Premium SP1. I'm Chinese, so I put the location and the type of keyboard and all China. But soon, I realized that there was a problem with the search box. When its not activ