Switching from single to HA

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
logicmate
Posts: 29
Joined: Tue Sep 13, 2011 10:36 pm

Tue Sep 20, 2011 10:22 pm

Currently we are testing on a single server with Starwind, we want to create targets using "Image File device". How do we move the existing targets to a HA setup when we get the second server up and running? Can we do this and if so what precautions should we take? or do we have to recreate the targets from scratch?

Thanks,
Ara
User avatar
Anatoly (staff)
Staff
Posts: 1675
Joined: Tue Mar 01, 2011 8:28 am
Contact:

Wed Sep 21, 2011 2:35 pm

For this purposes you need to have image file with 65536 header size. So if you haven`t create it like this you need to create new one and move all the data from old target to new one.
Best regards,
Anatoly Vilchinsky
Global Engineering and Support Manager
www.starwind.com
av@starwind.com
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Thu Oct 20, 2011 4:49 pm

Would this be the same if we are adding a new storage server and want to replicate the current image files to it? We want to make the new server the primary and make the current a backup.
User avatar
Anatoly (staff)
Staff
Posts: 1675
Joined: Tue Mar 01, 2011 8:28 am
Contact:

Fri Oct 21, 2011 9:09 am

sensor wrote:Would this be the same if we are adding a new storage server and want to replicate the current image files to it? We want to make the new server the primary and make the current a backup.
I think you are talking about the Mirror now. If yes then you sont need to change header from default zero value.
Best regards,
Anatoly Vilchinsky
Global Engineering and Support Manager
www.starwind.com
av@starwind.com
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Fri Oct 21, 2011 1:30 pm

OK so I want to make sure I have this.
1. setup new server
2. configure new image files that are the same size as current
3. connect new files to original
4. set replication\sync to run from original to new files.
Should I update the original server to the lastest version before I start any of this?
Does that sound correct?
What happens if I need to remove original storage and image files and only run the new? In other words take the original storage offline and do not replace it.
User avatar
Anatoly (staff)
Staff
Posts: 1675
Joined: Tue Mar 01, 2011 8:28 am
Contact:

Fri Oct 21, 2011 1:43 pm

In order to create the mirror device you need:
1. Create an image file based target (hard disk->basic virtual) on the passive server
2. on the active server go hard disk->advanced virtual->Mirror(raid1) specify a location for the .mir file (keeps the config)->
-->specify an image file for the active mirror and the iSCSI target you have created
(1.) for the passive mirror
The preferred primary mirror caching method is write through, and Replication for the secondary mirror.
On the next step you can either clear both mirrors or synchronize the passive with the active one.
Caching parameters mainly depend on the target purpose, but generally a 500Gb target goes with 512mb of cache 1Tb-1gb of cache For smaller targets we do not recommend to set the cache lower than 128mb.


We are always recommending to use the latest builds only since they contain not only new features but budfixes too.
sensor wrote:What happens if I need to remove original storage and image files and only run the new? In other words take the original storage offline and do not replace it.
First of all I`d like to admit that I cannot imagine what this situation should be.
You will need to switch active mirror to the image file that`ll be online first or configure client machines iSCSI initiator to use IP of the second Mirror if you want to delete entire Mirror device. After you can use the existing image file to create new Mirror.
Best regards,
Anatoly Vilchinsky
Global Engineering and Support Manager
www.starwind.com
av@starwind.com
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Fri Oct 21, 2011 2:06 pm

We lease our hardware as part of the customer we support. So we are looking for the best options to move storage as each piece as to be changed out and have as little downtime as possible.
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Fri Oct 21, 2011 2:44 pm

I have been trying to setup a mirrior using a currently running image file on the main storage and a newly created image file on the remote. Everytime I select as the first mirrion a current iamge file it errors. States the file is in use. Is this not possible?
User avatar
Anatoly (staff)
Staff
Posts: 1675
Joined: Tue Mar 01, 2011 8:28 am
Contact:

Fri Oct 21, 2011 2:54 pm

sensor wrote:I have been trying to setup a mirror using a currently running image file on the main storage and a newly created image file on the remote. Everytime I select as the first mirrion a current iamge file it errors. States the file is in use. Is this not possible?
Are you trying to connect to image file target or trying to use image file?
Best regards,
Anatoly Vilchinsky
Global Engineering and Support Manager
www.starwind.com
av@starwind.com
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Fri Oct 21, 2011 3:09 pm

I configured an image file on primary storage
setup remote image on backup storage
start to configure mirrior
when it asks for first mirrior target I select the primary storage image file
the second target is the remote image file
I select next and errors stating file in use
If I select to create a new image file on primary storage it works.
It will not work when I select the iamge file on primary storage at all.
User avatar
Anatoly (staff)
Staff
Posts: 1675
Joined: Tue Mar 01, 2011 8:28 am
Contact:

Sun Oct 23, 2011 7:21 pm

So the remote Image File target has no any other connections, correct?
Could you please provide us with screenshots of the error and the SW management console with remote iscsi target selected and opened the iSCSI Session tab?
Best regards,
Anatoly Vilchinsky
Global Engineering and Support Manager
www.starwind.com
av@starwind.com
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Mon Oct 24, 2011 4:47 pm

Here are the 3 screenshots. One of the error and each host iscsi targets
Attachments
primary.JPG
primary.JPG (213.35 KiB) Viewed 19423 times
remote target.JPG
remote target.JPG (189.95 KiB) Viewed 19422 times
starwind mirrior error.JPG
starwind mirrior error.JPG (228.37 KiB) Viewed 19419 times
User avatar
Anatoly (staff)
Staff
Posts: 1675
Joined: Tue Mar 01, 2011 8:28 am
Contact:

Tue Oct 25, 2011 3:38 pm

I will ask you to support and one of our engineers will perform remote session with you. Please use email below:
support@starwindsoftware.com

PS Please dont forget to mention that you your question is from forum.

Thanks!
Best regards,
Anatoly Vilchinsky
Global Engineering and Support Manager
www.starwind.com
av@starwind.com
sensor
Posts: 9
Joined: Thu Oct 20, 2011 3:23 pm
Location: USA

Mon Nov 21, 2011 10:15 pm

OK I got this fixed. Both systems have to be running the same version. Once I updated our current target I was able to connect a mirrior. Thanks for your assistance.
User avatar
anton (staff)
Site Admin
Posts: 4021
Joined: Fri Jun 18, 2004 12:03 am
Location: British Virgin Islands
Contact:

Mon Nov 21, 2011 11:41 pm

Thank you very much for keeping us updated! Your final feedback is appreciated! Thanks again!
sensor wrote:OK I got this fixed. Both systems have to be running the same version. Once I updated our current target I was able to connect a mirrior. Thanks for your assistance.
Regards,
Anton Kolomyeytsev

Chief Technology Officer & Chief Architect, StarWind Software

Image
Post Reply