Underlying storage not found running CreateHA_2.ps1 script

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

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

Post Reply
joels
Posts: 7
Joined: Wed Jul 26, 2023 7:44 pm

Wed Jul 26, 2023 7:49 pm

I filled out the primary and secondary nodes section in the CreateHA_2.ps1 script and ran it but I'm getting this error:

Request to NODE1.AD.DOMAIN.COM ( 10.0.0.6 ) : 3261
-
add HAImage1 -OwnTargetName:"iqn.2008-08.com.starwindsoftware:node1.ad.domain.com-targetha21" -file:"My computer\F\masterImg21_HA.swdsk" -serialId:"" -asyncmode:yes -readonly:no -highavailabil
ity:yes -buffering:no -header:65536 -reservation:no -CacheMode:"wb" -CacheSizeMB:"128" -Storage:"starwindstorage" -PoolName:"pool1"
-
110 Underlying storage not found. (May be it has not been added yet?).

The F drive exists on both nodes and I can see that the masterimg21_HA.swdsk file is create on node1. The file is not created on node2.
Both nodes have 3 network interfaces so they have a dedicated interface for sync and HB.
Here is how I filled out the script:

param($addr="10.0.0.6", $port=3261, $user="root", $password="starwind",
$addr2="10.0.0.4", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="Clear",
$size=12,
$sectorSize=512,
$failover=0,
$bmpType=1,
$bmpStrategy=0,
#primary node
$imagePath="My computer\F",
$imageName="masterImg21",
$createImage=$true,
$storageName="starwindstorage",
$targetAlias="targetha21",
$autoSynch=$true,
$poolName="pool1",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="wb",
$cacheSize=128,
$syncInterface="#p2=10.0.1.5:3260" -f $addr2,
$hbInterface="#p2=10.0.2.5:3260,10.0.0.4:3260" -f $addr2,
$createTarget=$true,
$bmpFolderPath="",
#secondary node
$imagePath2="My computer\F",
$imageName2="partnerImg22",
$createImage2=$true,
$storageName2="starwindstorage",
$targetAlias2="partnerha22",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$false,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=10.0.1.4:3260" -f $addr,
$hbInterface2="#p1=10.0.2.4:3260" -f $addr,
$createTarget2=$true,
$bmpFolderPath2=""
)
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Wed Jul 26, 2023 9:05 pm

$initMethod="Clear", set to "SyncFromFirst"
Please see this thread for more details. https://forums.starwindsoftware.com/vie ... f=5&t=6143
joels
Posts: 7
Joined: Wed Jul 26, 2023 7:44 pm

Wed Jul 26, 2023 9:15 pm

I got this to work. I set the storageName back to "". I think the guide I'm looking at is older and doesn't mention what to do with this variable so I just gave it a name.
Device creation succeeded and synchronized. Now just trying to figure out how to connect to it and use it.
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Wed Jul 26, 2023 10:54 pm

Once replication is completed, please connect the storage as described in the guide for your use case.
Post Reply