This post is more than 5 years old
28 Posts
0
1828
February 3rd, 2009 02:00
Files and SQL - Initial Synch & Low Speed Wan
I need to setup a replication over a low speed wan.
I plan to copy all data to a portable drive and ship it to the target to get the initial copy.
Then to setup the Spec and do the intital Synchronization.
Has anyone used this method successfully?
Any special Settings to get it to work?
What kind of performance did you get on the Initial Sync.
How do you think this would work with an SQL Database?
Any tips gratefully appreciated
I plan to copy all data to a portable drive and ship it to the target to get the initial copy.
Then to setup the Spec and do the intital Synchronization.
Has anyone used this method successfully?
Any special Settings to get it to work?
What kind of performance did you get on the Initial Sync.
How do you think this would work with an SQL Database?
Any tips gratefully appreciated
No Events found!
dramjass
151 Posts
0
February 3rd, 2009 06:00
Follow these steps:
- Stop SQL on the Source.
- Copy/replicate the data to the temp. drive.
- Stop the RepliStor Server service on the Target (This allows you to copy the data fromt he temp. drive to the destination disk on the Target by removing the Protect Target Files attribute from the files.
- Enable the Spec used to replciate the SQL data on the Source.
- Start SQL
- Copy the data to the Target machine.
- Start the ReplIStor Server service on the Target.
The above will allow the data that was captured since the SQL server start to replicate to the Target. Theoretically, the I/O that was captured will be replayed on the Target and the files will be identical.
NOTE: I have never tested the above and do not know if it will work. You will want to test this out locally to ensure there is no data loss (DBCC CHECKDB)
jtgowing
28 Posts
0
February 3rd, 2009 05:00
I have about 60 Gig of File server data to replicate.
Wan is 512Kbps available is bandwidth limited to around 128K
We have a copy of the data from abut 2 weeks ago.
Remote site is 1500 km away so takes a few days to get a copy.
We did a test sync on one directory which took all night but completed successfully.
Subsequent research has indicated using Attribute Compare, as you suggest. And also to break it up into several specs at high level directories rather than a single spec for the whole volume.
When we get this going the next job is try an SQL database from the same site.
I would Quiesce the SQL, take a copy of the database & logs, pre-load that on the target, and then Sync.
What is not 100% clear from the documentation is whether Synchronisation is also a block level operation or whether it will ship the whole file if it has changed.
The description in the Tech Manual suggests it is a sort of block copy but it is not very clear.
How has your experience been on this?
tribicic
157 Posts
0
February 3rd, 2009 05:00
dramjass
151 Posts
1
February 3rd, 2009 05:00
For prodcution SQL DB's, you will find that you will have to Sync (Inc) them completely in order to ensure the Target is in Sync. Since DB's are always changing this will be required. I suppose the only way to get a round it is to shutdown SQL, copy the data to the device, Sync the data, then start SQL again.
Alternatively, you can bring the Target local to the Source, perform the Sync via LAN, then move it. Allow the Kernel Cache/Logs to caputre the changes while the Target is being moved.
Duncan
tribicic
157 Posts
0
February 3rd, 2009 06:00
Also, incremental sync puts additional overhead, and from my experience full sync (depending on the amount and the size of files that need to be transferred) is sometimes faster than incremental one.
But here is an idea. Start the replication to another local machine on the source site. After the initial sync is done, break the link, pull the disk out and take it to the target site. In the mean time the source server will store all the filesystem changes in the Replistor cache. Once in, reestablish the network connection and all the changes will start flowing over and apply on the target server. There are hostname concerns here as obviously the target hostname should stay the same, or possibly you can trick it by changing the DNS entries after the transfer.
The easiest way would be to have the target server physically on the source site, do the initial sync, unplug it and take it over to the target site where you can resume the mirroring operation. This would work nicely, basically instead of just copying the files yourself to the disk, you will use Replistor to do it, and therefore you will have both volumes in sync.
Hope this wasn't too confusing.
jtgowing
28 Posts
0
February 3rd, 2009 06:00
I understand that this method would require sufficient KCache & OCxxxx file space to hold the changes, and I guess we would have to do some carefull calculations to ensure that the Sync can catch up in reasonable time.
While we are in test phase we can monitor the Source SQL Cache to see the volume of changes.
tribicic
157 Posts
0
February 3rd, 2009 06:00
jtgowing
28 Posts
0
February 3rd, 2009 08:00
Your input has been very helpful, and I am much more confident about setting up my Replistor.
Hopefully things will go much smoother with the added info
Cheers
JohnG