Using Windows app/driver not the VHA VM.
I have 2 hosts with 3 disks that I want too:
- C/boot that will hold the quorum/witness as a file (C:\StarWind)
- E/hdd that I want to pass through directly in HA (as I see in GUI) not create an image file on [to store data as CSV later]
- V/sdd that I also want to pass trough direct in HA [to store VMs as CSV later]
I think I got the script OK for the witness/quorum based on reading this forum but not sure how to do the rest ;(
- Do I run "CreateHA_2.ps" 3 times with the same parameters for failover/bmp/network/iscsi for the 3 disks?
- Should "$poolName" be the same or different for each disk? Does it matter?
- What are the changes to pass an entire disk - "$createImage=$false" ?
"$imagePath" as ""My Computer\E" does not work - does it want the underlying "\\PhysicalDisk2" on each host?
"$size"=0?
$sectorSize=0?
Host1: MGMT=192.168.4.5, iSCSI/HB=172.16.10.5, SYNC:172.16.20.5
Host2: MGMT=192.168.4.6, iSCSI/HB=172.16.10.6, SYNC:172.16.20.6
Here's what I use for Quorum/Witness - does it look OK?
Code: Select all
param($addr="192.168.4.5", $port=3261, $user="root", $password="starwind",
$addr2="192.168.4.6", $port2=$port, $user2=$user, $password2=$password,
$my_dev_name = "witness",
$my_target_name = "witness",
$my_img_path = "My Computer\C\StarWind",
$my_pool_name = "pool1",
#common
$initMethod="NotSynchronize",
$size=1024,
$sectorSize=4096,
# 0-heartbeat, 1-node majority
$failover=0,
# 1-ram, 2-disk?
$bmpType=1,
# 0,1-perf, 2-fast recovery - where failure journal on disk?
$bmpStrategy=0,
#primary node
$imagePath=$my_img_path,
$imageName=$my_dev_name,
$createImage=$true,
$storageName="",
$targetAlias=$my_target_name,
$poolName=$my_pool_name,
$syncSessionCount=1,
$aluaOptimized=$true,
# Also "wt" and "wb"
$cacheMode="none",
# Size in MB?
$cacheSize=0,
$syncInterface="#p2=172.16.10.6:3260",
$hbInterface="#p2=172.16.20.6:3260,192.168.4.6:3260",
$createTarget=$true,
$bmpFolderPath="",
#secondary node
$imagePath2=$my_img_path,
$imageName2=$my_dev_name,
$createImage2=$true,
$storageName2="",
$targetAlias2=$my_target_name,
$poolName2=$my_pool_name,
$syncSessionCount2=1,
$aluaOptimized2=$false,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=172.16.10.5:3260",
$hbInterface2="#p1=172.16.20.5:3260,192.168.4.5:3260",
$createTarget2=$true,
$bmpFolderPath2=""
)
Code: Select all
param($addr="192.168.4.5", $port=3261, $user="root", $password="starwind",
$addr2="192.168.4.6", $port2=$port, $user2=$user, $password2=$password,
$my_dev_name = "",
$my_target_name = "csv_e",
$my_img_path = "My Computer\E",
$my_pool_name = "pool2",
#common
$initMethod="NotSynchronize",
$size=0,
$sectorSize=0,
# 0-heartbeat, 1-node majority
$failover=0,
# 1-ram, 2-disk?
$bmpType=1,
# 0,1-perf, 2-fast recovery - where failure journal on disk?
$bmpStrategy=0,
#primary node
$imagePath=$my_img_path,
$imageName=$my_dev_name,
# false for direct pass-through?
$createImage=$false,
$storageName="",
$targetAlias=$my_target_name,
$poolName=$my_pool_name,
$syncSessionCount=1,
$aluaOptimized=$true,
# Also "wt" and "wb"
$cacheMode="wt",
# Size in MB?
$cacheSize=1024,
$syncInterface="#p2=172.16.10.6:3260",
$hbInterface="#p2=172.16.20.6:3260,192.168.4.6:3260",
$createTarget=$true,
$bmpFolderPath="",
#secondary node
$imagePath2=$my_img_path,
$imageName2=$my_dev_name,
# false for direct pass-through?
$createImage2=$false,
$storageName2="",
$targetAlias2=$my_target_name,
$poolName2=$my_pool_name,
$syncSessionCount2=1,
$aluaOptimized2=$false,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=172.16.10.5:3260",
$hbInterface2="#p1=172.16.20.5:3260,192.168.4.5:3260",
$createTarget2=$true,
$bmpFolderPath2=""
)
Adrian