Page 1 of 1

PowerShell and HA device

Posted: Sun Nov 01, 2020 2:50 pm
by MBerthe
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

Re: PowerShell and HA device

Posted: Mon Nov 02, 2020 7:52 am
by yaroslav (staff)
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.

Re: PowerShell and HA device

Posted: Mon Nov 02, 2020 7:08 pm
by MBerthe
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...

Re: PowerShell and HA device

Posted: Tue Nov 03, 2020 4:07 am
by yaroslav (staff)
Have requested its removal from the applet list.