PowerShell and HA device

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
MBerthe
Posts: 11
Joined: Wed Nov 18, 2009 6:20 pm

Sun Nov 01, 2020 2:50 pm

Hello,
I try to manage HA device with Powershell on Starwind VSAN (13861).
I know that there is a sample script CreateHA_*.ps1 that manage this but there is some limitation on this script I would like to go beyong.
I want to use the New-HAImageFile applet form the StarWinX module:

Code: Select all

New-HAImageFile -server $server -path "My Computer\C\StarWind\Quorum" -fileName "Quorum" -Size 1
I get the error:

Code: Select all

There is no defined command to create file for plugin 'HAImage'
So can somebody help me with this applet?
Is this applet working for someone?

Thanks for your help
Mathieu
yaroslav (staff)
Staff
Posts: 2334
Joined: Mon Nov 18, 2019 11:11 am

Mon Nov 02, 2020 7:52 am

Can I have a look at the entire script, or its part dedicated to HA device creation, please?
From what I see now, your command does not have the first and second node as a reference

Code: Select all

New-HAImageFile -server $server -path "My Computer\C\StarWind\QTest2" -fileName "QTest2" -Size 1 -Verbose
See the original line below

Code: Select all

$device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod $initMethod
Please log a support call with StarWind to continue working on this question.
MBerthe
Posts: 11
Joined: Wed Nov 18, 2009 6:20 pm

Mon Nov 02, 2020 7:08 pm

Hi,
If this subject interest someone, you can find the response of R&D teams:
This command was depreciated
I have lose so many time on this...
yaroslav (staff)
Staff
Posts: 2334
Joined: Mon Nov 18, 2019 11:11 am

Tue Nov 03, 2020 4:07 am

Have requested its removal from the applet list.
Post Reply