Software-based VM-centric and flash-friendly VM storage + free version
Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)
-
GTB
- Posts: 3
- Joined: Wed Feb 27, 2008 10:08 am
Wed Feb 27, 2008 10:32 am
Hi,
I am testing starwind on 2 servers with a clean install of Windows Server 2003 32 SP2.
On both servers I have installed the latest version of StarWind (3.5.3) and above that the latest version of StarPort (3.5.3). When I create an image file device I have no problems. Everything is working. But when I am trying to create a mirror with replication to the other server it just fails whatever I do. It just does not seem to see the remote device.
Properties of the primary mirror device:
================================
Device: Mirror0
Image file name: Mirror Volumes\E\mirdev1.mir
Total size: 1696 MB
First image path: E:\mirimg1.img (active)
First image state: Valid
Second image path: #iscsi:testsan02:3260|TargetName=mir2|InitiatorName=72A1CF1A03A561EC876D13C8C543502E
Second image state: Invalid
Read-only: No
Clustered: No
Persistent reservation: Yes
Mirror need to be checked and synchronized
================================
Properties of the second mirror device (on the other server):
================================
Device: Mirror0
Image file name: Mirror Volumes\E\mirdev2.mir
Total size: 1696 MB
First image path: #iscsi:testsan01:3260|TargetName=mir1|InitiatorName=916335EB52F3D36E5975D19DE104F4D1
First image state: Invalid
Second image path: E:\mirimg2.img (active)
Second image state: Valid
Read-only: No
Clustered: No
Persistent reservation: Yes
Mirror need to be checked and synchronized
================================
I know that maybe above is not ok. But I also have tried (all?) other combinations (target is an image instead of a mirror). The only thing that seems working is the local mirror device.
One of the other combinations I tried is to create a mirror and then select "Remote iSCSI target" for both servers and use the iSCSI image device on both servers. Then it doesn't even create the mirror. Fails to connect.
Nothing works! What am I doing wrong? Please help.
Regards,
Gerard
-
Bohdan (staff)
- Staff
- Posts: 435
- Joined: Wed May 23, 2007 12:58 pm
Thu Feb 28, 2008 8:07 am
Hi.
It is not possible to configure replication in the way you have described.
If you wish to create Mirror to Mirror device replication, you must first create functional Mirror2 device (mirdev2.mir in your case) where both of its mirrors are existing local image files or functional remote targets (in your case TargetName=mir1 - is not functional because it uses Mirror1 as remote target that haven't been created yet). And then create Mirror1 (mirdev1.mir in your case) device with local image file as the first mirror and remote Mirror2 target as the second mirror.
I hope the following guide will be useful for you:
http://www.rocketdivision.com/downloads ... cation.pdf
-
GTB
- Posts: 3
- Joined: Wed Feb 27, 2008 10:08 am
Thu Feb 28, 2008 12:34 pm
Thanks for you're answer. Things are getting clearer for me now. This howto makes it very clear that the secondary mirror has to be a normal target.
I did it exactly as written in the howto only my image is called mirror1 instead of m1 and is 102400MB (placed on a different partition then the os). But again no success. Also when clicking "Next" in the section where it should clear the mirror the software seems instantly ready. While in the howto it seems that you have to wait until the mirror is cleaned? There doesn't really seem any network activity.
Properties of the mirror on the primary server:
================================
Device: Mirror0
Image file name: Mirror Volumes\E\storage.mir
Total size: 0
First image path: E:\mirror1.img (active)
First image state: Valid
Second image path: #iscsi:testsan02:3260|TargetName=mirror2|InitiatorName=30BAB09BFE47DD12656BA9755CCBDE63
Second image state: Invalid
Read-only: No
Clustered: No
Persistent reservation: Yes
Mirror need to be checked and synchronized
================================
Properties of the target (secondary server):
================================
Device: ImageFile0
Image file name: My Computer\E\mirror2.img
Total size: 102400 MB
Asynchronous: Yes
Read-only: No
Clustered: No
Persistent reservation: Yes
================================
Peace of log of primary server:
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Connecting to '#iscsi:testsan02:3260|TargetName=mirror2|InitiatorName=30BAB09BFE47DD12656BA9755CCBDE63'...
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Server address is '10.1.0.82:3260'.
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Parameter found, value 'TargetName=mirror2'.
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Parameter found, value 'InitiatorName=30BAB09BFE47DD12656BA9755CCBDE63'.
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Calling STARPORT_IOCTL_TARGET_MOUNT
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Input buffer:
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Signature = 72417453
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Flags = 0
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: ServerAddress = 10.1.0.82:3260
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Parameter[0] = TargetName=mirror2
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Parameter[1] = InitiatorName=30BAB09BFE47DD12656BA9755CCBDE63
2/28 13:47:23.572 6bc MIR: StarPort_TargetMount: Calling DeviceIoControl(...)
2/28 13:47:23.572 6bc MIR: *** StarPort_TargetMount: Session failed, status == 87 !
2/28 13:47:23.572 6bc MIR: *** Repl_Create: Failed to mount target, error 0x57.
2/28 13:47:23.572 6bc MIR <- Repl_Create: return (0xc0000001)
2/28 13:47:23.572 6bc MIR <- Mirror_OpenMirrorHandle: return (0xc0000001)
2/28 13:47:23.572 6bc MIR: *** Mirror_SyncMirrorsOnline: Passive mirror handle was NULL, handle reopening failed.
2/28 13:47:23.572 6bc MIR <- Mirror_SyncMirrorsOnline: return (0xa)
2/28 13:47:23.572 90 MIR: SscPort_ControlRequest: 0xdd3d18
2/28 13:47:23.572 90 MIR: *SscPort_ControlRequest: Received GetOperationState command for ID = 1
2/28 13:47:23.572 90 MIR -> Mirror_GetOperationState: >>
2/28 13:47:23.572 90 MIR: Mirror_GetOperationState: Operation 1 progress = 0, status = 10
2/28 13:47:23.572 90 MIR: Mirror_GetOperationState: Operation 1 is not pending, removing from registered list
2/28 13:47:23.572 90 MIR -> Mirror_UnregisterOperationStateUpdates: >>
2/28 13:47:23.572 90 MIR: Mirror_UnregisterOperationStateUpdates: CONTROL_REQUEST_STATE with OperationId = 1 removed
2/28 13:47:23.572 90 MIR <- Mirror_UnregisterOperationStateUpdates: <<
2/28 13:47:23.572 90 MIR <- Mirror_GetOperationState: return (0x0)
2/28 13:47:25.291 10c MIR: Mirror_FlushCache: Beginning flush of cache...
2/28 13:47:26.072 90 Srv: Refreshing device list (plugins)...
2/28 13:47:26.072 90 MIR: SscPort_EnumerateDevices: force: 1
2/28 13:47:26.072 90 MIR: SscPort_EnumerateDevices: force: 0
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'ImageSizeLow' = '0'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'ImageSizeHigh' = '0'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'Mirror1_Name' = 'E:\mirror1.img'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'Mirror1_Valid' = 'yes'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'ActiveMirror_Name' = 'E:\mirror1.img'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'Mirror2_Name' = '#iscsi:testsan02:3260|TargetName=mirror2|InitiatorName=30BAB09BFE47DD12656BA9755CCBDE63'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'Mirror2_Valid' = 'no'
2/28 13:47:26.072 90 MIR: *SscPort_GetDeviceInfo: Return Mirror param: 'Mirror_Is_Synchronized' = 'yes'
2/28 13:47:28.291 10c MIR: Mirror_FlushCache: Beginning flush of cache...
2/28 13:47:31.291 10c MIR: Mirror_FlushCache: Beginning flush of cache...
Regards,
Gerard
-
Bohdan (staff)
- Staff
- Posts: 435
- Joined: Wed May 23, 2007 12:58 pm
Thu Feb 28, 2008 1:04 pm
Please check whether the firewall settings for the hosts allow iSCSI connections. (TCP/IP ort 3260).
Please make sure that you are able to connect a target that acts as second mirror manually: launch StarPort management console, connect and then disconnect remote target, launch MS initiator connect and then disconnect remote target.
-
GTB
- Posts: 3
- Joined: Wed Feb 27, 2008 10:08 am
Thu Feb 28, 2008 1:42 pm
Thanks for you're quick answer.
There is no firewall running on both machines. I can also connect with both machines to each other. Also with a client machine (Windows XP SP2) I have no problems connecting to the targets.
I have also installed the microsoft iscsi initiator on both servers. This was not installed. Also with the microsoft iscis initiator i am able to connect to each other.
But still not able to create a mirror! I am able to create iscsi targets on both machines. I am able to connect to each iscsi target. But whatever I try the mirror does not work. Also when I create two targets, one on each machiene and the create a mirror with each target as remote it does not work...
-
holger
- Posts: 7
- Joined: Tue Mar 11, 2008 8:49 am
- Location: Germany
Tue Mar 11, 2008 9:11 am
Yesterday i tried to to get the starwind iscsi target to work with replication. Therefore i installed 2 vmware machines 2003 Server to see how the things work. And i got exactly the same error message as GTB. I successfully connected to the iscsi target manually with starport.
Code: Select all
3/11 10:31:52.984 c68 MIR: SscPort_ControlRequest: 0xd13a78
3/11 10:31:52.984 c68 MIR: *SscPort_ControlRequest: Received Synchronize command
3/11 10:31:52.984 c68 MIR -> Mirror_RegisterOperationForStateUpdates: >>
3/11 10:31:52.984 c68 MIR: Mirror_RegisterOperationForStateUpdates: CONTROL_REQUEST_PROGRESS added to list, OperationId = 1
3/11 10:31:52.984 c68 MIR <- Mirror_RegisterOperationForStateUpdates: return (0x0)
3/11 10:31:52.984 cc8 MIR -> Mirror_SyncMirrorsOnline: >>
3/11 10:31:52.984 cc8 MIR: *Mirror_SyncMirrorsOnline: Passive mirror handle is NULL. Trying to repopen mirror.
3/11 10:31:52.984 cc8 MIR: *Mirror_SyncMirrorsOnline: Opening Mir#2 - '#iscsi:192.168.1.132:3260|TargetName=mirrorsan1|InitiatorName=791903CB73A9DC54EAABFBDA429333FB'...
3/11 10:31:52.984 cc8 MIR -> Mirror_OpenMirrorHandle: >>
3/11 10:31:52.984 cc8 MIR -> Repl_Create: >>
3/11 10:31:52.984 cc8 MIR: Repl_Create: Creating replicator for '#iscsi:192.168.1.132:3260|TargetName=mirrorsan1|InitiatorName=791903CB73A9DC54EAABFBDA429333FB':0.
3/11 10:31:52.984 cc8 MIR: Repl_Create: Opening StarPort device.
3/11 10:31:52.984 cc8 MIR -> StarPort_DriverOpen: >>
3/11 10:31:52.984 cc8 MIR <- StarPort_DriverOpen: return (0x0)
3/11 10:31:52.984 cc8 MIR: Repl_Create: Allocating memory to hold replicator disk structure.
3/11 10:31:52.984 cc8 MIR: Repl_Create: Connecting to remote iSCSI device #iscsi:192.168.1.132:3260|TargetName=mirrorsan1|InitiatorName=791903CB73A9DC54EAABFBDA429333FB.
3/11 10:31:52.984 cc8 MIR -> StarPort_TargetMount: >>
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Connecting to '#iscsi:192.168.1.132:3260|TargetName=mirrorsan1|InitiatorName=791903CB73A9DC54EAABFBDA429333FB'...
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Server address is '192.168.1.132:3260'.
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Parameter found, value 'TargetName=mirrorsan1'.
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Parameter found, value 'InitiatorName=791903CB73A9DC54EAABFBDA429333FB'.
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Calling STARPORT_IOCTL_TARGET_MOUNT
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Input buffer:
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Signature = 72417453
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Flags = 0
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: ServerAddress = 192.168.1.132:3260
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Parameter[0] = TargetName=mirrorsan1
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Parameter[1] = InitiatorName=791903CB73A9DC54EAABFBDA429333FB
3/11 10:31:52.984 cc8 MIR: StarPort_TargetMount: Calling DeviceIoControl(...)
3/11 10:31:52.984 cc8 MIR: *** StarPort_TargetMount: Session failed, status == 87 !
3/11 10:31:52.984 cc8 MIR: *** Repl_Create: Failed to mount target, error 0x57.
3/11 10:31:52.984 cc8 MIR <- Repl_Create: return (0xc0000001)
3/11 10:31:52.984 cc8 MIR <- Mirror_OpenMirrorHandle: return (0xc0000001)
3/11 10:31:52.984 cc8 MIR: *** Mirror_SyncMirrorsOnline: Passive mirror handle was NULL, handle reopening failed.
3/11 10:31:52.984 cc8 MIR <- Mirror_SyncMirrorsOnline: return (0xa)
3/11 10:31:53.000 160 MIR: Mirror_FlushCache: 3/11 10:31:53.000 c68 MIR: SscPort_ControlRequest: 0xd13a78
3/11 10:31:53.015 c68 MIR: *SscPort_ControlRequest: Received GetOperationState command for ID = 1
3/11 10:31:53.015 c68 MIR -> Mirror_GetOperationState: >>
3/11 10:31:53.015 c68 MIR: Mirror_GetOperationState: Operation 1 progress = 0, status = 10
3/11 10:31:53.015 c68 MIR: Mirror_GetOperationState: Operation 1 is not pending, removing from registered list
3/11 10:31:53.015 c68 MIR -> Mirror_UnregisterOperationStateUpdates: >>
3/11 10:31:53.015 c68 MIR: Mirror_UnregisterOperationStateUpdates: CONTROL_REQUEST_STATE with OperationId = 1 removed
3/11 10:31:53.015 c68 MIR <- Mirror_UnregisterOperationStateUpdates: <<
3/11 10:31:53.015 c68 MIR <- Mirror_GetOperationState: return (0x0)
Beginning flush of cache...
3/11 10:31:56.015 160 MIR: Mirror_FlushCache: Beginning flush of cache...
I am planing to buy this software but i must be sure that this feature works reliable.
Regards
Holger
-
holger
- Posts: 7
- Joined: Tue Mar 11, 2008 8:49 am
- Location: Germany
Tue Mar 11, 2008 9:37 am
Hi bohdan,
I have the following versions of your software.
StarWind iSCSI Target v3.5.3 (Build 20080225, Win32)
StarPort v.3.5.4 (Build 0x20080111)
StarPort Driver Version 0x00030001
What are the latest builds?
Thanks
-
Bohdan (staff)
- Staff
- Posts: 435
- Joined: Wed May 23, 2007 12:58 pm
Tue Mar 11, 2008 10:01 am
StarWind iSCSI Target v3.5.3 (Build 20080229, Win32)
StarPort v.3.5.4 (Build 0x20080111) StarPort Driver Version 0x00030001
-
holger
- Posts: 7
- Joined: Tue Mar 11, 2008 8:49 am
- Location: Germany
Tue Mar 11, 2008 10:15 am
Hi bohdan,
thank you for your very fast response.
With the new versions this issue is solved.
Thanks
-
almatador
- Posts: 4
- Joined: Thu Mar 27, 2008 9:15 am
Thu Mar 27, 2008 10:40 am
hi all,
by creating and specifying mirror image parameters i get the this error:
"the specified first mirror file name is not valid"
what is the problem?
-
Bohdan (staff)
- Staff
- Posts: 435
- Joined: Wed May 23, 2007 12:58 pm
Thu Mar 27, 2008 10:52 am
Hi.
Have you specified existing image or try to create new one?
If you wish to create new image please set "Create new" checkbox.
-
gioppino
- Posts: 3
- Joined: Thu May 29, 2008 3:13 pm
Thu May 29, 2008 3:34 pm
To build a mirror beetwen two server i need to install
StarWind iSCSI Target v3.5.3 (Build 20080229, Win32)
AND
StarPort v.3.5.4 (Build 0x20080111) + StarPort Driver Version 0x00030001
Without StarPort is not functioning ?
Thanks, Sandro