The Latest Gartner® Magic Quadrant™Hyperconverged Infrastructure Software
Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)
Use StarWindX scripts from C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell. To add a device you need CreateHA_2.ps1 here is the guide how to use it https://www.starwindsoftware.com/help/H ... ategy.html. Let me know if the folder is missing for some reason.point me to go ahead and "add device". If not from the GUI, how else I am going to do it?
Yes, you can replace the Free key with the Trial one, BUT you cannot do it other way around. Once you use the Trial key, there is no way to use Free again unless StarWind VSAN is re-installed.Can I create everything with a 30-day trial, and upon completion reverse to free mode? Or it is not the way to go?
Just scroll all way to the end: there is the script There they discuss the old script, but the principles remain the same.The guide is not small
Free license is for 3 nodes indeed. You can configure a 3-way mirror (use CreateHA_3.ps1 for that purpose). You cannot configure Node Majority in free version now, but we have plans on bringing the script with the next build.By the way the free license says 3 nodes, while i read on forums that it is for 2 nodes only. Is it 2 nodes + management (monitor) or I can create a 3rd VM as a node?
Please do not apply the Trial key... You won't be able to go with Free one without reinstalling StarWind VSAN otherwise. Please re-fill the form to get the Free key. If it does not work just contact StarWind Support (use this thread as the reference) or the person who shared the Trial key with you.I have downloaded a Trial one by mistake
I prefer to read all guides till the end since i am the person who believes to RTFMJust scroll all way to the end: there is the script There they discuss the old script, but the principles remain the same.
That would be really nice in case a node fails while the other is down for maintenance.Free license is for 3 nodes indeed. You can configure a 3-way mirror (use CreateHA_3.ps1 for that purpose).
Already deleted!Please do not apply the Trial key...
yaroslav (staff) wrote:I cannot send it here...
Please log a support call (send email to support@starwind.com), or contact your account manager directly.
P.S. Thanks for warm words do not hesitate to contact me if any technical assistance is required.
Code: Select all
param($addr="192.168.128.21", $port=3261, $user="root", $password="starwind",
$addr2="192.168.128.22", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="Clear",
$size=1200,
$sectorSize=512,
$failover=0,
#primary node
$imagePath="My computer\E\starwind",
$imageName="masterImg21",
$createImage=$true,
$storageName="Storage21",
$targetAlias="targetha21",
$autoSynch=$true,
$poolName="pool1",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="wb",
$cacheSize=128,
$syncInterface="#p2=10.10.10.12:3260" -f $addr2,
$hbInterface="#p2=11.11.11.12:3260,192.168.128.22:3260" -f $addr2,
$createTarget=$true,
#secondary node
$imagePath2="My computer\E\starwind",
$imageName2="partnerImg22",
$createImage2=$true,
$storageName2="Storage22",
$targetAlias2="partnerha22",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=10.10.10.11:3260" -f $addr,
$hbInterface2="#p1=11.11.11.11:3260,192.168.128.21:3260" -f $addr,
$createTarget2=$true
)
Import-Module StarWindX
Yes of course, on both hosts! Otherwise how the *.swdsk file would be created in the first host?yaroslav (staff) wrote:Did you already initialize the E:\ drive in the system? I mean is My computer E:\ already a path?
Code: Select all
param($addr="192.168.128.21", $port=3261, $user="root", $password="starwind",
$addr2="192.168.128.22", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="Clear",
$size=1200,
$sectorSize=512,
$failover=0,
#primary node
$imagePath="My computer\E\starwind",
$imageName="masterImg21",
$createImage=$true,
$storageName="Storage21",
$targetAlias="targetha21",
$autoSynch=$true,
$poolName="pool1",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="wb",
$cacheSize=128,
$syncInterface="#p2=10.10.10.12:3260" -f $addr2,
$hbInterface="#p2=11.11.11.12:3260,192.168.128.22:3260" -f $addr2,
$createTarget=$true,
#secondary node
$imagePath2="My computer\E\starwind",
$imageName2="partnerImg22",
$createImage2=$true,
$storageName2="Storage22",
$targetAlias2="partnerha22",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=10.10.10.11:3260" -f $addr,
$hbInterface2="#p1=11.11.11.11:3260,192.168.128.21:3260" -f $addr,
$createTarget2=$true
)
Import-Module StarWindX
try
{
Enable-SWXLog
$server = New-SWServer -host $addr -port $port -user $user -password $password
$server.Connect()
$firstNode = new-Object Node
$firstNode.HostName = $addr
$firstNode.HostPort = $port
$firstNode.Login = $user
$firstNode.Password = $password
$firstNode.ImagePath = $imagePath
$firstNode.ImageName = $imageName
$firstNode.Size = $size
$firstNode.CreateImage = $createImage
$firstNode.StorageName = $storageName
$firstNode.TargetAlias = $targetAlias
$firstNode.AutoSynch = $autoSynch
$firstNode.SyncInterface = $syncInterface
$firstNode.HBInterface = $hbInterface
$firstNode.PoolName = $poolName
$firstNode.SyncSessionCount = $syncSessionCount
$firstNode.ALUAOptimized = $aluaOptimized
$firstNode.CacheMode = $cacheMode
$firstNode.CacheSize = $cacheSize
$firstNode.FailoverStrategy = $failover
$firstNode.CreateTarget = $createTarget
#
# device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes.
#
$firstNode.SectorSize = $sectorSize
$secondNode = new-Object Node
$secondNode.HostName = $addr2
$secondNode.HostPort = $port2
$secondNode.Login = $user2
$secondNode.Password = $password2
$secondNode.ImagePath = $imagePath2
$secondNode.ImageName = $imageName2
$secondNode.CreateImage = $createImage2
$secondNode.StorageName = $storageName2
$secondNode.TargetAlias = $targetAlias2
$secondNode.AutoSynch = $autoSynch2
$secondNode.SyncInterface = $syncInterface2
$secondNode.HBInterface = $hbInterface2
$secondNode.SyncSessionCount = $syncSessionCount2
$secondNode.ALUAOptimized = $aluaOptimized2
$secondNode.CacheMode = $cacheMode2
$secondNode.CacheSize = $cacheSize2
$secondNode.FailoverStrategy = $failover
$secondNode.CreateTarget = $createTarget2
$device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod $initMethod
while ($device.SyncStatus -ne [SwHaSyncStatus]::SW_HA_SYNC_STATUS_SYNC)
{
$syncPercent = $device.GetPropertyValue("ha_synch_percent")
Write-Host "Synchronizing: $($syncPercent)%" -foreground yellow
Start-Sleep -m 2000
$device.Refresh()
}
}
catch
{
Write-Host $_ -foreground red
}
finally
{
$server.Disconnect()
}