Is it possible to script ISCSI MCS connection setup?

Tim Reid 1 Reputation point
2020-09-12T18:14:47.33+00:00

Hello - When I set up servers, I typically script as much of the setup as possible to make them as consistent as possible. I have powershell that I use to set up ISCSI MPIO that works for most scenarios that require multiple connections. I recently came across a situation where the ISCSI device is designed to use MCS rather than MPIO as the preferred redundancy solution. I have tried to work through the existing powershell, but I'm not seeing an obvious way to add the connections to the session. Any suggestions would be appreciated. Thanks. Tim Reid

Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
650 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xiaowei He 9,891 Reputation points
    2020-09-14T08:53:51.9+00:00

    Hi,

    I am afraid to say I didn't find much information to configure ISCSI MSC with script or powershell command. Only find steps to configure ISCSI MCS with GUI:

    https://www.sqlservercentral.com/articles/implementing-microsoft-iscsi-initiator-policies-multi-pathing

    (Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)

    Thanks for your time!
    Best Regards,
    Anne

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

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Alex Bykovskyi 2,011 Reputation points
    2020-09-21T00:39:21.087+00:00

    Hey,

    You can check the following blog. Basically, we are doing the for cycle to create as many iSCSI as we need. Might help:
    https://www.starwindsoftware.com/blog/dont-break-your-fingers-with-hundreds-of-clicks-automate-windows-iscsi-connections

    Cheers,

    Alex Bykovskyi

    StarWind Software

    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.