How to use ' Set-ScsiLun - MultipathPolicy «Fixed "»

Hello

After a misstake by displaying the HCL, I changed all the LUNS to Roundrobin with PowerCLI

Now, I want to bring them back to preferred path, but every time I type the command I got an error.

Maybe can someone help?

I tried already like this:

ScsiLun get - VMHost hostname LunType - disc | Game-ScsiLun - 'fixed' MultipathPolicy - PreferredPath 'vmhba2:C0:T0:L9 '.

but every time I get this error:

Game-ScsiLun: 22.01.2014 21:03:18Game-ScsiLunScsiLunPath could not be found with the name 'vmhba2:C0:T0:L9 '.

On line: 1 char: 48

+ Get-ScsiLun - VMHost hostname * LunType - disc | Game-ScsiLun - MultipathPolicy "Fix...."

+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: ObjectNotFound: (vmhba2:C0:T0:L9:String) [Set-ScsiLun], VimException
+ FullyQualifiedErrorId: Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound, VMware.VimAutomation.ViCore.Cmdle

ts.Commands.Host.SetScsiLun

Game-ScsiLun: 22.01.2014 21:03:18Game-ScsiLunIf the MultipathPolicy parameter is set to 'Fixed', you

Specify the PreferredPath parameter.

On line: 1 char: 48

+ Get-ScsiLun - VMHost hostname * LunType - disc | Game-ScsiLun - MultipathPolicy "Fix...."

+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: InvalidArgument: (:)) [game-ScsiLun], InvalidArgument)
+ FullyQualifiedErrorId: Core_SetScsiLun_TryValidateParameterList_PreferredPathNoSpecified, VMware.VimAutomation.V

iCore.Cmdlets.Commands.Host.SetScsiLun

Someone has an idea?

The PreferredPath parameter, you must pass one of the objects returned by the cmdlet Get-ScsiLunPath for this specific LUN.

There are a lot of scripts that use algorithms to distribute the load evenly over the available paths.

You could also take a random path for each LUN.

For example:

Get-ScsiLun -VmHost $esx -LunType disk | %{  $path = Get-ScsiLunPath -ScsiLun $_ | Get-Random  Set-ScsiLun -ScsiLun $_ -MultipathPolicy "Fixed" -PreferredPath $path}

Note that it is in fact a stupid assignment of privileged legal method, but it should show what is required on the PreferredPath parameter

Tags: VMware

Similar Questions

  • How to use SET operators?

    I am a student in learning ORACLE and just, we covered the SET operators (UNION, UNION ALL, LESS, LESS ALL, INTERSECT). I'm having a very hard time to understand how to use them. We are id list of supervisors of all employees who are not managers of grocery store. Tables:

    Table Employee (ID = SUPERVISOR_ID)
    -------------
    ID
    STORE_NUMBER
    TITLE (the store manager is one of them)
    EMPLOYEE

    Store table
    ----------------
    STORE_NUMBER
    MANAGER_ID


    How to do this using a game operator? Can someone help me please?

    Thank you

    SELECT id, store_number from employee_table
    less
    Select manager_id, store_number store_table

    http://LRC.surcollege.NET/eBooks/Arabic_Books/Oracle/books/introduction%20To%20Oracle9i_SQL-instructor%20Guide%20Volume%202.PDF
    Part 15

    Published by: Adigozalov Qurban 5 December 2010 23:16

    Published by: Adigozalov Qurban 5 December 2010 23:17

  • How to use the style position fixed animated border

    Im trying to put a bar of Pentecost menu position fixed

    Anyone know the format code to do this?

    I tried whit this in CompositionReady:

    SYM.$("menu"). CSS ("position", "Fixed");

    but it doesn't have the positions of Pentecost.

    However, it seems to work in all browsers:

    SYM.$("body"). Append (sym.$("YOUR_SYMBOL"). CSS({"position":"Fixed"}));)

  • At the launch of Thunderbird, how can I set a password that prevents viewing of my emails if someone uses my computer?

    At the launch of Thunderbird, how can I set a password that prevents viewing of my emails if someone uses my computer?

    100% this addons can help you
    https://addons.Mozilla.org/en-us/Thunderbird/addon/master-password/

    Look at my Thunderbird when I open

  • I use gmail and windows xp. How can I set up gmail as my default mail service?

    I use gmail and windows xp. How can I set up gmail as my default mail service? When I click on an online 'reply to' email address he opens outlook express which I don't use.

    How to set your default e-mail to Gmail
    http://www.ehow.com/how_5151392_set-default-email-gmail.html

  • How a backup set that I have purchaced online by using Windows XP?

    How a backup set that I have purchaced online by using Windows XP?

    You must copy the executable file downloaded from a CD.

  • On Windows 8, by default, OneNote when I try to use the print option. How do I set printer as default and not in OneNote?

    When I try to use the print option. How do I set printer as default and not in OneNote? Also, when I want to print from a web page (on the Web page printing option) it goes to OneNote and not print. I have also pulled up a file saved in OneNote and selected the print option in the Menu. I selected a specific page and is nevertheless not print?

    Because your message is off-topic in the comment forum, I moved it to the forum Windows 8 "Performance and Maintenance", where it is more on the subject.

    As you watch the start page, type "default printer".  A list appears on the right side of the screen.  Tap 'settings' and 'Change the default printer' will appear on the left.  Tap it.  Your devices folder and printers opens on the desktop.  You will see that "Send to OneNote" will have a green check mark next to it.  Right click on the printer, if you have already installed it, then select "Set as default".  Close the folder.  Therefore, when printing, your printer will be the default device.

    If you have not yet installed a printer, make sure you download the latest driver for 8 compatible of Windows to the web site of the manufacturer and install the driver following the instructions of the manufacturer.  Then set the default device.

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • How to use the stock firmware to fix your Tablet this stock in recovery mode

    Help plssss...

    Where I can download stock firmware for my Hp Slate 7 HD 3403ex and how to use it.

    Hi there @rangothegreat

    Welcome to the Forums of HP Support! It's a good place to find the help you need, so many other users, the HP experts and other members of the support staff. I understand that you are looking for a firmware image for your tablet. I'm happy to help you.

    The support page for your model contains images of catering for Android Jelly Bean and can be found here:

    7 HD 3403ex Tablet Slate from HP

    If you have already installed a newer version of Android like KitKat, these images will not work for you. See the post following @WyreNut referring to this possible problem.

    4.4.2 android update failed for the HP Slate 10 HD

    If this applies to you, then please use the following http://www.hp.com/contacthp and create a folder for your question and contact HP. If you do not live in the United States / Canada, please click on the link below to get contact information for your region.
    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps.

  • How to use interval set to raise the event every 5 seconds when if the statement is true?

    Here is a snippet of code something to im:

    if (MC_battleTrigR1a.hitTest(this._x, this._y, true)) {
         if (random(220) == 0) {
         //random(220) the code is onEnterFrame and so this random function is called repeatedly until eventually random(220) == 0;
         trace("random");
         gotoAndStop("battle");
         }
         //setInterval(???)
         //every 5 seconds->  trace("5sec"); and gotoAndStop("battle");
    }
    

    The player wanders in a box, in a random delay or after 5 seconds, it should send the player to the frame labeled: battle

    It works with the random (220) but I don't know how to do certainly go to frame: battle after 5 seconds.

    I don't know how to use setInterval correctly, I tried and failed.
    The code is nested in the onEnterFrame
    FPS: 24

    image tag: treePath

    Chassis number: 17

    I didn't say that you should avoid using onEnterFrame.  I said that your setTimeout must be outside your onEnterFrame loop:

    var tl:MovieClip = this;
    
    tl.onEnterFrame = function () {     if (MC_battleTrigR1a.hitTest(MC_player._x, MC_player._y, true)) {          delete this.onEnterFrame;          clearTimeout(gotoBattleTO);          gotoBattle();     }};
    
    
    
    function gotoBattle() {     clearTimeout(gotoBattleTO);     delete tl.onEnterFrame;     gotoAndStop("battle");}
    
    
    var gotoBattleTO:Number = setTimeout(gotoBattle,5000);
    
  • Satellite M300 - how to use the recovery disk

    Hello world

    I was wondering how to use the 2 recovery discs that I burned recently if I wanted to fix my USB ports (as seen in my Toshiba M300 - wire to USB ports)

    Any suggestions?

    Hello

    You can use the only recovery disk to reinstall the whole OS!
    This means that the use of the recovery disk will format the whole HARD drive and will set the laptop back to factory settings!

    If you want to use the recovery disk and then insert it into the ODD and the start-up of this disc.
    Then the installation of the OS should move forward and you should follow the instructions on the screen.

    All that s

  • How to use an internal counter of the cDAQ-9172 for measure PWM and generate the frequency?

    Hello

    Requirement of my project is to measure 6-channel PWM and generate 5 frequency channels.

    Suggestion of engineer OR bought cDAQ-9172 chassis and NI 9423 (8 DI correlated) and NI 9474 (8 correlated DO) for this requirement. I have a few questions

    Article:

    1 > what should I know to customize my CompactDaq 9172 chassis

    http://zone.NI.com/DevZone/CDA/tut/p/ID/9367

    I know that this way to synchronize the physical support 32 correlation system pin o for housing 1-4.

    => I'm not really sure how to use these channels synchronization support.

    2 > using internal counters on one NOR cDAQ-9172 as a sample for other tasks clock

    http://digital.NI.com/public.nsf/allkb/ADFC4DD8C9690232862575B70079FBD4

    I know that I can change the ownership of the physical channel so I can get 2 meter outside the frame 6 and 7.

    => I do not think that this solution will be me because I can use only 2 counters with this method.

    Could someone tell me please how to fix my project requirement? How to choose the setting for DAQmx screws?

    I have experience with measure the PWM and generate the frequency, but with separated against only.

    Best regards

    Thang Nguyen

    Hey Thang.

    AHA... for this, you can use the channel property node.

    See you soon

    Lab

  • How can I set the default font size and type for the outgoing Hotmail mail?

    How can I set the default font size and type for the outgoing Hotmail mail?

    Hi Dale,

    What is the email client do you use?

    Outlook can be configured per - start Outlook-> Tools-> Options-> mail-> fixed Format and fonts... Select the font and size you need... Click ok on all screens.

    I hope this helps.

  • How can I set the width of the part of the label of an edit field?

    Anyone know how I can configure the width of the part of the label of an edit field?  that is, I want to have my line to edit until a fixed width field labels.

    It is not possible to set the width of the part of the label of an editfield.

    In this case, you can use a LabelField with fixed width (the substitution of layout() method) and an EditField and add then both a HorizontalFieldManager.

    Concerning

    Bika

  • How to create a labelfield with fixed width and dynamic height?

    I got this question in fact for a long time and I have not found answer in this forum so far.

    As we know, we can use:

    public int getPreferredWidth()
    {
        return fixedSize;
    }
    
    protected void layout(int width,int height)
    {
        super.layout(getPreferredWidth(), getPreferredHeight());
        super.setExtent(getPreferredWidth(), getPreferredHeight());
    }
    

    to set the width fixed in a field, but if the text is too long and should be multiline, this will bring problem, getPreferredHeight() only returns the preferred height, which is actually not the actual height, so the text will be hashed.

    So what should this setting? height?

    super.setExtent(getPreferredWidth(), height));
    

    No.... the height value is too large.

    So, how can we set this parameter to make this labelfield looks perfectly.

    Any idea?

    A search on the web is expected to increase a lot of examples of functions in Java text wrapping. Especially for BlackBerry, you can use Font.getAdvance (String text, int start, int len) to measure the width of a text segment without the expense of creation of substrings.

    The basic logic is to analyze the text character by character. If the "\n" character, force a line break. If the character is a space, then it is a line break candidate; Check if the line so far is set. If so, then move the candidate to that character end and continue; If this is not the case, go back to the previous candidate break and put an end to the line right there. The loop is initialized so that there is always at least one character on the line. The process ends when you run out of text. Details (including dealing with empty text, several spaces, etc.) are kept as an exercise for the reader, or search the Web well.

    I wouldn't worry efficiency. Put on the page of the field is not all that often, and when it's done, there's no escape from the need to make the work of packaging line at some point before the text is rendered on the screen. One way to avoid unnecessarily repeating work is to memoize the function of packaging line: wrapped lines and the width of the film cache and reuse them as needed. The cache is marked invalid if changes to text or the current width and the width of the film cached differ.

Maybe you are looking for