I am using StarWind Virtual Storage Appliance v8.0.0 (Build 13170, [SwVSA], Win64). I have a FREE license.
I was successful in creating a Virtual Tape Library and multiple Tapes using StarWindX PowerShell scripts.
However, when I go to configure the Cloud Replication settings, I'm getting error "10054".
The logs on the backend of the appliance show the following:
Code: Select all
4/15 17:59:33.164853 26 conf: TelnetListener::listenConnections: Accepted control connection from 192.168.241.140:51336.
4/15 17:59:33.224139 72 FileBrowser: *** CFileBrowser::parsePath: Could not create image : provided path has invalid extension!
4/15 17:59:33.224165 72 Srv: *** iScsiServer::list: Error parsing path: VSA Storage\mnt\storage1\
4/15 17:59:33.277638 72 Plugin: *** VtlDevice::sscControlRequest: Replication settings: send error!
4/15 17:59:33.307740 72 conf: ControlConnection::processConnection: Control connection closed.
Code: Select all
Name : vtl1
DeviceType : VTL
DeviceId : 0x0000000000BAC7C0
File :
TargetName : iqn.2008-08.com.starwindsoftware:starwindvsa-vtl1
TargetId : 0x000000000091A580
Size : 0
CacheMode : empty
CacheSize : empty
CacheBlockExpiryPeriod : empty
Exists : True
DeviceLUN : 0
IsSnapshotsSupported : False
Snapshots :
SectorSize :
State : 0
Tapes : System.__ComObject
AvailableSlots : 82
TransportSlots : 1
DriveSlots : 4
ImportExportSlots : 3
StorageSlots : 96
Slots : System.__ComObject
ReplicationSettings : System.__ComObject
DriveType : 5
Target : 0
AccessKey :
SecretAccessKey :
RegionName :
ContainerName :
KeepLocal : -1
KeepInCloud : -1
KeepInStorage1 : -1
KeepInStorage2 : -1
DelayBeforeStart : -1
ServiceUrl :
Target : 2
AccessKey : <redacted>
SecretAccessKey : <redacted>
RegionName : us-east-1
ContainerName : off-site-backup
KeepLocal : 30
KeepInCloud : 91
KeepInStorage1 : -1
KeepInStorage2 : -1
DelayBeforeStart : 0
ServiceUrl :
10054
10054
Target : 1
AccessKey :
SecretAccessKey :
RegionName :
ContainerName :
KeepLocal : -1
KeepInCloud : -1
KeepInStorage1 : -1
KeepInStorage2 : 1
DelayBeforeStart : 0
ServiceUrl :
Code: Select all
param($addr="starwindvsa", $port=3261, $user="<redacted>", $password="<redacted>",
$deviceName="vtl1",
$target=[StarWindVtlReplicationTarget]::REPLICATION_TARGET_S3,
$accessKey="<redacted>",
$secretAccessKey="<redacted>",
$regionName="us-east-1",
$containerName="off-site-backup",
$keepLocal=30,
$keepInCloud=91,
$keepInStorage1=-1,
$keepInStorage2=-1,
$delayBeforeStart=0,
$serviceUrl)
Import-Module StarWindX
$server = New-SWServer $addr $port $user $password
try
{
$server.Connect()
$device = $null
foreach($dev in $server.Devices)
{
if( $dev.Name.Equals($deviceName) -and $dev.DeviceType.Equals("VTL") )
{
$device = $dev
break
}
}
if( !$device )
{
Write-Host "Device '$($deviceName)' not found" -foreground red
return
}
$device
$settings = new-object -ComObject StarWindX.VTLReplicationSettings
$settings
$settings.Target=$target
$settings.AccessKey=$accessKey
$settings.SecretAccessKey=$secretAccessKey
$settings.RegionName=$regionName
$settings.ContainerName=$containerName
$settings.KeepLocal=$keepLocal
$settings.KeepInCloud=$keepInCloud
$settings.KeepInStorage1=$keepInStorage1
$settings.KeepInStorage2=$keepInStorage2
$settings.DelayBeforeStart=$delayBeforeStart
$settings.ServiceUrl=$serviceUrl
$settings
$res = $device.CheckReplicationCredentials($settings)
$res
$res = $device.ApplyReplicationSettings($settings)
$res
$device.ReplicationSettings
}
catch
{
Write-Host $_ -foreground red
}
finally
{
$server.Disconnect()
}