Page 1 of 1
an external component caused an exception
Posted: Thu Nov 07, 2019 10:04 pm
by kedal
Sorry if i have grammatical errors, but i am colombian.
I am using powershell scripting with the examples that are in Starwind, the script is: CreateHA(Two Nodes). But when i run it, only say me an external component has caused and exception or in Spanish: un componente externo produjo una excepción, as it is a testing i am using the default user and password, the patch is: C:\images
StarWind Version: 8.0.0.12767
And i am doing it with two Windows Server 2016.
Here is the script:
Code: Select all
Import-Module StarWindX
try
{
Enable-SWXLog
$server = New-SWServer -host 127.0.0.1 -port 3261 -user root -password starwind
$server.Connect()
$firstNode = new-Object Node
$firstNode.HostName = "localhost"
$firstNode.ImagePath = "C:\images"
$firstNode.ImageName = "masterImg21"
$firstNode.Size = 1024
$firstNode.CreateImage = $true
$firstNode.TargetAlias = "targetha21"
$firstNode.AutoSynch = $true
$firstNode.SyncInterface = "#p2=10.0.132.102:3260"
$firstNode.HBInterface = "#p2=10.1.1.2:3260"
$firstNode.PoolName = "pool1"
$firstNode.SyncSessionCount = 1
$firstNode.ALUAOptimized = $true
#
# device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes.
#
$firstNode.SectorSize = 4096
$secondNode = new-Object Node
$secondNode.HostName = "10.0.132.102"
$secondNode.HostPort = "3261"
$secondNode.Login = "root"
$secondNode.Password = "starwind"
$secondNode.ImagePath = "C:\images"
$secondNode.ImageName = "partnerImg22"
$secondNode.Size = 1024
$secondNode.CreateImage = $true
$secondNode.TargetAlias = "partnerha22"
$secondNode.AutoSynch = $true
$secondNode.SyncInterface = "#p1=10.0.132.101:3260"
$secondNode.HBInterface = "#p1=10.1.1.1:3260"
$secondNode.SyncSessionCount = 1
$secondNode.ALUAOptimized = $true
$device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod "Clear"
while ($device.SyncStatus -ne [SwHaSyncStatus]::SW_HA_SYNC_STATUS_SYNC)
{
$syncPercent = $device.GetPropertyValue("ha_synch_percent")
Write-Host "Synchronizing: $($syncPercent)%" -foreground yellow
Start-Sleep -m 2000
$device.Refresh()
}
}
catch
{
Write-Host $_ -foreground red
}
finally
{
$server.Disconnect()
}
Thank for the helo that you can bring me
Re: an external component caused an exception
Posted: Fri Nov 08, 2019 8:32 am
by Boris (staff)
Could you provide more details on what components you installed, the OS you try this with and any relevant information in general?
Re: an external component caused an exception
Posted: Fri Nov 08, 2019 10:05 pm
by kedal
Boris (staff) wrote:Could you provide more details on what components you installed, the OS you try this with and any relevant information in general?
Server x3100M4
Starwind 8.0.0.12767
Full Instalation
OS= Windows Server 2016 Standard/Version 1607
Server x3200 M3
Starwind 8.0.0.12767
Full Instalation
OS=Windows Server 2016 Standard/Version1607
I already checked the firewall, IP's, and folders permissions.
Re: an external component caused an exception
Posted: Sat Nov 09, 2019 7:30 pm
by Boris (staff)
Adjust Enable-SWXLog to
Code: Select all
Enable-SWXLog -level SW_LOG_LEVEL_DEBUG
This is written to a file in the root of your user directory. I would like to have a look at this log file.
Re: an external component caused an exception
Posted: Mon Nov 18, 2019 4:08 pm
by kedal
Boris (staff) wrote:Adjust Enable-SWXLog to
Code: Select all
Enable-SWXLog -level SW_LOG_LEVEL_DEBUG
This is written to a file in the root of your user directory. I would like to have a look at this log file.
Here is the log file that you need:
Code: Select all
18-11 10:49:59 INFO : STARWINDX LOG STARTED!
18-11 10:49:59 INFO : Version 1.0.0.436
18-11 10:49:59 DEBUG : Send to host 10.200.1.13261:
protocolversion 100
18-11 10:49:59 DEBUG : Response from host 10.200.1.13261:
200 Completed.
18-11 10:49:59 DEBUG : Send to host 10.200.1.13261:
login root starwind
18-11 10:49:59 DEBUG : Response from host 10.200.1.13261:
200 Completed.
18-11 10:49:59 INFO : Refresh service data
18-11 10:49:59 INFO : Refresh targets
18-11 10:49:59 DEBUG : Send to host 10.200.1.13261:
list -what:"targets" -mode:0
18-11 10:49:59 DEBUG : Response from host 10.200.1.13261:
200 Completed.
TargetName="iqn.2008-08.com.starwindsoftware:localhost-db-storage"
TargetId="0x0000025A8B16B700"
TargetAlias="DB_Storage"
clustered="yes"
TargetNumaNode="0"
TargetDevices="HAImage1"
TargetLuns="0-0"
TargetLun="0000000000000000"
TargetLunId="0"
Eui64Id="521E16BDD73C280C"
Naa64Id="D41E16BDD73C280C"
DeviceId="0x0000025A8AE6D3C0"
DeviceLun="0"
LunNumaNode="0"
18-11 10:49:59 INFO : Refresh devices
18-11 10:49:59 DEBUG : Send to host 10.200.1.13261:
list -what:"devices"
18-11 10:49:59 DEBUG : Response from host 10.200.1.13261:
200 Completed.
DeviceName="imagefile1"
DeviceId="0x0000025A8AE77D40"
DeviceHeaderPath="C:\images\DB_Storage.swdsk"
DeviceType="Image file"
DeviceBusType="Unknown"
SerialId="9573FE111C82BAB8"
Eui64Id="9573FE111C82BAB8"
Naa64Id="E573FE111C82BAB8"
ScsiInquiry="STARWIND STARWIND 0001"
DeviceMounted="no"
parent="HAImage1"
state="0"
reservation="yes"
DeviceNumaNode="0"
header="0"
file="C:\images\DB_Storage.img"
buffering="no"
asyncmode="yes"
SectorSize="4096"
PhySectorSize="4096"
ImageSizeLow="3045064704"
ImageSizeHigh="1"
readonly="no"
DeviceState="1"
CacheMode="none"
ScsiLun="0"
DeviceName="HAImage1"
DeviceId="0x0000025A8AE6D3C0"
DeviceHeaderPath="C:\images\DB_Storage_HA.swdsk"
DeviceType="HA Image"
DeviceBusType="Unknown"
SerialId="521E16BDD73C280C"
Eui64Id="521E16BDD73C280C"
Naa64Id="D41E16BDD73C280C"
ScsiInquiry="STARWIND STARWIND 0001"
PoolName="pool1"
DeviceMounted="no"
TargetName="iqn.2008-08.com.starwindsoftware:localhost-db-storage"
TargetId="0x0000025A8B16B700"
storage="imagefile1"
state="0"
reservation="no"
DeviceNumaNode="0"
header="0"
file="C:\images\DB_Storage_HA.swdsk"
buffering="no"
asyncmode="yes"
readonly="no"
highavailability="yes"
ha_serialid_string="521E16BDD73C280C"
ha_synch_status="1"
ha_synch_percent="100"
ha_synch_type="0"
ha_sync_elapsed_time="0"
ha_sync_estimated_time="0"
ha_priority="0"
ha_is_node_removed_from_partners="no"
ha_is_storage_extend_supported="yes"
ha_is_storage_snapshot_supported="no"
ha_is_storage_device_ready="yes"
ha_is_storage_device_readonly="no"
ha_is_SMISHidden="no"
ha_autosynch_enabled="yes"
ha_wait_on_autosynch="0"
ha_auto_sync_priority="1"
ha_maintenance_mode="0"
ha_sync_traffic_share="50"
ha_alua_group_node_state="0"
ha_tracker="no"
ha_tracker_frozen="no"
ha_tracker_snapshots_storage=""
ha_tracker_mount_time="0"
ha_tracker_mount_snapshot=""
ha_tracker_status="-1"
ha_tracker_pending="0"
ha_tracker_replicated="0"
ha_tracker_replicating="0"
ha_tracker_scheduled="0"
ha_node_type="1"
ImageSizeLow="3045064704"
ImageSizeHigh="1"
SectorSize="4096"
PhySectorSize="4096"
CacheMode="none"
CacheSizeMB="0"
CacheBlockExpiryPeriodMS="0"
ha_partner_nodes_count="1"
ha_failover_config_type="0"
ha_partner_node1_target_name="iqn.2008-08.com.starwindsoftware:10.200.1.2-db-storage"
ha_partner_node1_priority="1"
ha_partner_node1_type="1"
ha_partner_node1_storage_device_type="ImageFile"
ha_partner_node1_sync_channels="10.200.1.2$3260$1"
ha_partner_node1_heartbeat_channels="10.100.1.2$3260$1"
ha_partner_node1_is_exist_sync_valid_connection="1"
ha_partner_node1_is_exist_heartbeat_valid_connection="1"
ha_partner_node1_sync_status="1"
ha_partner_node1_sync_percent="0"
ha_partner_node1_sync_type="0"
ha_partner_node1_sync_elapsed_time="0"
ha_partner_node1_sync_estimated_time="0"
ha_partner_node1_tracker_frozen="no"
ha_partner_node1_tracker_snapshots_storage=""
ha_partner_node1_tracker_mount_time="0"
ha_partner_node1_tracker_mount_snapshot=""
ha_partner_node1_auth_chap_type="None"
ha_partner_node1_auth_chap_login=""
ha_partner_node1_auth_chap_password=""
ha_partner_node1_auth_mutual_chap_name=""
ha_partner_node1_auth_mutual_chap_secret=""
ScsiLun="0"
DeviceName="\\?\ide#diskhua722050cla330______39m4517_42c0468ibm_jp2oa3gb#5&1f30838c&0&0.0.0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}"
DeviceId="0x0000025A8AEB2140"
DeviceType="SPTI:Disk"
DeviceBusType="Ata"
SerialId=" JPW9L0N00AX1XL"
Eui64Id="0000000000000000"
Naa64Id="C000000000000000"
ScsiInquiry=" HUA722050CLA330 JP2O"
DeviceMounted="no"
state="0"
reservation="yes"
DeviceNumaNode="0"
ScsiAdapter="0"
ScsiBus="0"
ScsiTarget="0"
ScsiLun="0"
DeviceName="\\?\usbstor#disk&ven_generic&prod_flash_disk&rev_8.07#3e591adb&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}"
DeviceId="0x0000025A8AEB1500"
DeviceType="SPTI:Disk"
DeviceBusType="Usb"
SerialId="3"
Eui64Id="0000000000000000"
Naa64Id="C000000000000000"
ScsiInquiry="Generic Flash Disk 8.07"
DeviceMounted="no"
state="0"
reservation="yes"
DeviceNumaNode="0"
ScsiAdapter="0"
ScsiBus="0"
ScsiTarget="0"
ScsiLun="0"
DeviceName="\\?\ide#cdromtsstcorp_dvd-rom_ts-h353c_______________le01____#5&394f2925&0&0.0.0#{53f56308-b6bf-11d0-94f2-00a0c91efb8b}"
DeviceId="0x0000025A8AEAF080"
DeviceType="SPTI:CD/DVD"
DeviceBusType="Atapi"
Eui64Id="0000000000000000"
Naa64Id="C000000000000000"
ScsiInquiry=" TSSTcorp DVD-ROM LE01"
DeviceMounted="no"
state="0"
reservation="yes"
DeviceNumaNode="0"
ScsiAdapter="2"
ScsiBus="0"
ScsiTarget="0"
ScsiLun="0"
18-11 10:50:00 INFO : STARWINDX LOG CLOSED!
====================================================================================================
Re: an external component caused an exception
Posted: Tue Nov 19, 2019 2:54 pm
by Boris (staff)
I will check the log additionally and let you know my findings.
Re: an external component caused an exception
Posted: Tue Nov 19, 2019 4:04 pm
by Boris (staff)
In the log I see a USB drive attached.
Try removing the USB drive and check the behavior once again.