We do not use hypervisor. We do not have CSV. We use volumes on HAImage disks as Cluster disk on our File Server Cluster.
CreateHA_2 :
Code: Select all
param($addr="10.35.0.1", $port=3261, $user="root", $password="starwind",
$addr2="10.35.0.2", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="Clear",
$size=1000,
$sectorSize=4096,
$failover=0,
$bmpType=1,
$bmpStrategy=0,
#primary node
$imagePath="My computer\E\SW",
$imageName="fs1share",
$createImage=$true,
$storageName="",
$targetAlias="targetfs1",
$autoSynch=$true,
$poolName="pool1",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="wt",
$cacheSize=1000,
$syncInterface="#p2=10.33.0.2:3260" -f $addr2,
$hbInterface="#p2=10.34.0.2:3260,10.35.0.2:3260",
$createTarget=$true,
$bmpFolderPath="",
#secondary node
$imagePath2="My computer\E\SW",
$imageName2="fs2share",
$createImage2=$true,
$storageName2="",
$targetAlias2="targetfs2",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=10.33.0.1:3260" -f $addr,
$hbInterface2="#p1=10.34.0.1:3260,10.35.0.1:3260",
$createTarget2=$true,
$bmpFolderPath2=""
)
ExtendDevice:
Code: Select all
param($addr="127.0.0.1", $port=3261, $user="root", $password="starwind", $deviceName="HAImage1", $extendSize=5000000)