Software-based VM-centric and flash-friendly VM storage + free version
Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Fri Apr 07, 2017 7:39 pm
I just downloaded the "Starwind VSAN Free", version 8.3, product and have been trying to make it work.
Unfortunately, I'm running into errors when I try to create my HA storage.
Here are my two servers (they are identical):
- Dell CS24-NV7 12 Opteron cores, 2TB HDD & 64GB RAM
- 3 NICs
- Hyper-V 2012 R2 (fresh install)
Here is my network configuration:
10.1.1.x = admin network
10.1.2.x = sync network
10.1.3.x = heartbeat network
Server 1:
Name = HCI_SRV_1
IPs = 10.1.1.100, 10.1.2.100 & 10.1.3.100
Server 2:
Name = HCI_SRV_2
IPs = 10.1.1.200, 10.1.2.200 & 10.1.3.200
My directory, on C:, for my Starwind vSAN data is located at C:\VSAN.
I have copied the "CreateHA(two nodes).ps1" file and made edits.
Here is my powershell script:
--- START ---
Import-Module StarWindX
try
{
$server = New-SWServer -host 10.1.1.100 -port 3261 -user root -password starwind
$server.Connect()
$firstNode = new-Object Node
$firstNode.ImagePath = "My computer\C\VSAN"
$firstNode.ImageName = "masterImg1"
$firstNode.Size = 2048
$firstNode.CreateImage = $true
$firstNode.TargetAlias = "targetha1"
$firstNode.AutoSynch = $true
$firstNode.SyncInterface = "#p2=10.1.2.200:3260"
$firstNode.HBInterface = "#p2=10.1.3.200:3260"
$firstNode.CacheSize = 128
$firstNode.CacheMode = "wb"
$firstNode.PoolName = ""
$firstNode.SyncSessionCount = 1
$firstNode.ALUAOptimized = $true
#
# device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes.
#
$firstNode.SectorSize = 4096
#
# 'SerialID' should be between 16 and 31 symbols. If it not specified StarWind Service will generate it.
# Note: Second node always has the same serial ID. You do not need to specify it for second node
#
# $firstNode.SerialID = "050176c0b535403ba3ce02102e33eab"
$secondNode = new-Object Node
$secondNode.HostName = "10.1.1.200"
$secondNode.HostPort = "3261"
$secondNode.Login = "root"
$secondNode.Password = "starwind"
$secondNode.ImagePath = "My computer\C\VSAN"
$secondNode.ImageName = "partnerImg1"
$secondNode.Size = 2048
$secondNode.CreateImage = $true
$secondNode.TargetAlias = "partnerha1"
$secondNode.AutoSynch = $true
$secondNode.SyncInterface = "#p1=10.1.2.100:3260"
$secondNode.HBInterface = "#p1=10.1.3.100:3260"
$secondNode.ALUAOptimized = $true
$device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod "Clear"
$syncState = $device.GetPropertyValue("ha_synch_status")
while ($syncState -ne "1")
{
#
# Refresh device info
#
$device.Refresh()
$syncState = $device.GetPropertyValue("ha_synch_status")
$syncPercent = $device.GetPropertyValue("ha_synch_percent")
Start-Sleep -m 2000
Write-Host "Synchronizing: $($syncPercent)%" -foreground yellow
}
}
catch
{
Write-Host "Exception $($_.Exception.Message)" -foreground red
}
$server.Disconnect()
--- END ---
Here is the error I'm getting:
--- START ---
Exception Retrieving the COM class factory for component with CLSID {2DE41C61-CD
75-43A7-9B87-AD38E3E46FEF} failed due to the following error: 80040154 Class not
registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
You cannot call a method on a null-valued expression.
At C:\Program Files\StarWind
Software\StarWind\StarWindX\Samples\powershell\Go_JRM.ps1:76 char:1
+ $server.Disconnect()
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
--- END ---
I'm open to suggestions.
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
Ivan (staff)
- Staff
- Posts: 172
- Joined: Thu Mar 09, 2017 6:30 pm
Tue Apr 11, 2017 2:19 pm
Hello tig_jeff,
Thanks for interesting in StarWind solution.
As far as I can see something wrong with StarWindX module.
Could you reinstall StarWind vSAN (check "Integration Component library" with "PowerShell management library" in Installation Wizard) and try to create the HA device one more time.
Please keep us updated about it.
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Tue Apr 11, 2017 5:42 pm
Ivan-
I've tried this installation on three different versions of OS.
I've tried this on Hyper-V Server 2016, Hyper-V Server 2012 R2 and Windows Server 2012 R2 Data Center Edition.
All system have the powershell script errors out on line 76, the $server.disconnect() line.
But, keeping in mind that we have a defined object in $server, I'm thinking that the error lies there.
I can re-install, but I would not think that this would fix the issue as it exists on 3 servers with 3 separate installation attempts.
Are there requirements (like .Net 4.5 or something) that need to be installed to make this work?
Please advise... and thanks in advance.
-Jeff
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Tue Apr 11, 2017 6:02 pm
As a follow up...
I did re-install with the options you requested I check.
The error was the same.
-Jeff
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Wed Apr 12, 2017 1:23 pm
I have created a clean install of Hyper-V Server 2012 R2.
I have installed the Starwind vSAN Free, version 8.3.
I have installed the vSAN software with the options for the service, loopback driver, integration library and powershell management library (see attached file).

- Install Options
- starwind_install_options_1.png (23.02 KiB) Viewed 25510 times
I modified the script to create the img1 file (see attached file).

- Create Image Script
- starwind_script_1.png (32.76 KiB) Viewed 25510 times
I ran the script and got COM errors (see attached file).

- COM errors
- starwind_error_1.png (89.84 KiB) Viewed 25510 times
Please advise.
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Wed Apr 12, 2017 7:42 pm
Okay... here is what I've tried and confirmed.
I did a "fresh" install of Microsoft Windows Server 2012 R2 with the GUI.
I installed Starwind vSAN Free v.8.3 with only the Service, Loopback Driver, Integration and Powershell Management Library installed.
I copied the CreateImageFile.ps1 script to step1.ps1 and edited the file locations to be c:\VSAN
I ran the script... it worked.
I did a "fresh" install of Microsoft Windows Server 2012 R2 without the GUI
I installed Starwind vSAN Free v.8.3 with only the Service, Loopback Driver, Integration and Powershell Management Library installed.
I copied the CreateImageFile.ps1 script to step1.ps1 and edited the file locations to be c:\VSAN
I ran the script... it failed.
The error references the CLSID as in the prior messages.
There seems to be a problem with the software working on the GUI-less OS.
Please advise/confirm ASAP.
Thank you.
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
Ivan (staff)
- Staff
- Posts: 172
- Joined: Thu Mar 09, 2017 6:30 pm
Fri Apr 14, 2017 4:51 pm
Hello tig_jeff,
Thanks for updating.
We have reproduced the issue in our lab and working on it.
I will update this thread as soon as an issue will be resolved.
Thanks!
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Fri Apr 14, 2017 6:42 pm
Ivan-
Thank you!!
I love the idea of this product (I like the GUI version better... but... ya know) and the possibilities it opens up.
Let me know what you find.
If you need/want me to test... just ask... I'd be happy to whip up a machine and give it a whirl.
Thanks again for all your hard work guys!
-Jeff
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
Ivan (staff)
- Staff
- Posts: 172
- Joined: Thu Mar 09, 2017 6:30 pm
Thu Apr 20, 2017 3:49 pm
Hello tig_jeff,
This issue will be resolved in the next build.
I will update this thread when next build will be available to download
-
tig_jeff
- Posts: 36
- Joined: Fri Apr 07, 2017 6:18 pm
Tue Apr 25, 2017 5:59 pm
Ivan-
Did you guys get the "expanding the HA volume" issue put into this release too?
Thanks, in advance.
-Jeff
Hope this helps.
- Jeff Morlen
Follow me on Twitter (@tig_jeff)
-
Ivan (staff)
- Staff
- Posts: 172
- Joined: Thu Mar 09, 2017 6:30 pm
Tue Apr 25, 2017 8:11 pm
Hello tig_jeff,
Extend HA sample planned to release in the next build which will be available on next week.