Author |
Message |
Nimral
Joined: 26 Oct 2009 Posts: 13
|
Posted: Mon Oct 26, 2009 3:01 pm Post subject: Replicationg files in use test scenario not working |
|
|
Hi all,
I just started evaluating Viceversa. I admit, I haven't read all available documentation. I set up a simple test bed, put some files in a directory, mirrored them to another server --> worked fine.
Then I wanted do check wether the replication of files in use (which I always thought was technically impossible) worked. I created this simple test batch:
Code: | :loop
echo %date% %time% >>test.log
goto loop |
I expected test.log to be replicated continuously, or at least every few seconds, to the second server. Insted the file is not replicated at all, unless I stop the batch, whereafter the file is replicated immedately.
This does, in some way, contradict the assumption that open files can be replicated. It may, however, be a side effect of something else, a mistake made by myself, or I don't know what,
Test bed was 2 Windows 2003 Servers, R2, mostly on their default settings.
Any ideas?
thanks,
Armin. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Tue Oct 27, 2009 2:43 am Post subject: |
|
|
Hi, how did you setup ViceVersa, did you use VVEngine or VVLauncher? Are you monitoring the source folder for file changes? thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
Nimral
Joined: 26 Oct 2009 Posts: 13
|
Posted: Tue Oct 27, 2009 11:14 am Post subject: Here is the config file I used ... |
|
|
Here is the fsf file I used for my first test run. I used vvlauncher interactively (not installed as a service).
[Settings]
; ******* Source
Source Folder=C:\Repltest\
; ******* Target
Target Folder=\\ts-02.testnetz.rsint.net\c$\Repltest\
; ******* values for Lock Source: (0=No) (1=Yes)
Lock Source=0
; ******* values for Lock Target: (0=No) (1=Yes)
Lock Target=0
; ******* values for Continue even if sources/targets do not exist: (0=No) (1=Yes)
Continue even if sources/targets do not exist=0
; ******* values for Create sources/targets that do not exist: (0=No) (1=Yes)
Create sources/targets that do not exist=0
Connect to network with default user credentials=0
Connect to network with credentials=0
; *******
Connect network path=
; *******
Connect user=
; *******
Connect password=010101
Disconnect from network when done=0
; *******
Include Subfolders Flags=1
; ******* values for Comparison Type: (0=Size and Timestamp) (1=CRC) (2=Both)
Comparison Type=0
; ******* values for Ignore 2 seconds difference: (0=No) (1=Yes)
Ignore 2 seconds difference=0
; ******* values for Ignore any second difference: (0=No) (1=Yes)
Ignore any second difference=0
; ******* values for Ignore 1 hour difference: (0=No) (1=Yes)
Ignore 1 hour difference=0
CRC Chunk Size in Bytes=0
; ******* values for Ignore File Size: (0=No) (1=Yes)
Ignore File Size=0
; ******* values for Ignore Timestamp: (0=No) (1=Yes)
Ignore Timestamp=0
; ******* Specify file extensions, separated by comma (example *.mdf, *.ind)
Files with these extensions are always newer in source=
; ******* values for Execution Method: (0= ) (1=Synchronization) (2=Backup (Mirror Source to Target)) (3=Replication (Augment Target)) (4=Replication (Refresh Target)) (5=Replication (Update Target)) (6=Consolidation)
Execution Method=2
; ******* values for UnatSync: (0=No) (1=Yes)
UnatSync=0
Copy File Permissions=1
Copy File/Folder Permissions=1
Copy File/Folder Auditing=0
Copy File/Folder Owner=0
Do Not Copy File/Folder Data Streams=0
Use Volume Shadow Copy=0
; ******* values for Use Volume Shadow Copy For: (0=Source) (1=Target) (2=Both)
Use Volume Shadow Copy For=0
; ******* values for Create Volume Shadow Copy before comparing source and target: (0=No) (1=Yes)
Create Volume Shadow Copy before comparing source and target=0
; ******* values for Volume Shadow Copy log level: (0=Standard) (1=Detailed)
Volume Shadow Copy log level=0
; ******* values for No empty source/target check: (0=No) (1=Yes)
No empty source/target check=0
; ******* values for Replace newer target files with older source files (backup only): (0=No) (1=Yes)
Replace newer target files with older source files (backup only)=1
Speed=100
Copy Buffer=32768
Flush Buffer=0
Network Friendly Scanning=0
; ******* Log File
Log File=C:\Documents and Settings\All Users\Application Data\ViceVersa PRO 2\log1.log
; ******* values for Empty Log: (0=No) (1=Yes)
Empty Log=0
Log File Size=10000
; ******* values for Log Only Summary and Exceptions: (0=No) (1=Yes)
Log Only Summary and Exceptions=0
; ******* values for Monitor Conflicts: (0=No) (1=Yes)
Monitor Conflicts=0
; ******* Sync Tracking Database
Sync Tracking Database=C:\Documents and Settings\All Users\Application Data\ViceVersa PRO 2\vvdb1.tdb
Sync Conflicts=0
; ******* values for SCT: (0=No) (1=Yes)
SCT=0
; ******* values for NSC: (0=No) (1=Yes)
NSC=0
Source-Target Offset=0
; ******* values for Try Copy In Use Files: (0=No) (1=Yes)
Try Copy In Use Files=1
; ******* values for Always Verify CRC: (0=No) (1=Yes)
Always Verify CRC=0
; ******* values for Priority Class: (0=Default) (1=Idle (recommended)) (2=Low) (3=Below Normal) (4=Normal) (5=Above Normal) (6=High) (7=Realtime)
Priority Class=1
; ******* values for Limit Bandwidth: (0=No) (1=Yes)
Limit Bandwidth=0
Bandwidth Value=5
; ******* values for Bandwidth Unit: (0=KB/Sec) (1=MB/Sec)
Bandwidth Unit=1
; ******* values for Scripts Before: (0=No) (1=Yes)
Scripts Before=0
; ******* values for Scripts Before Comparison Global: (0=No) (1=Yes)
Scripts Before Comparison Global=0
; ******* values for Scripts Before Comparison Local: (0=No) (1=Yes)
Scripts Before Comparison Local=0
; ******* values for Scripts Before Comparison Specify: (0=No) (1=Yes)
Scripts Before Comparison Specify=0
; ******* Script to run before comparison
Script Before Comparison Path=
; ******* values for Scripts After: (0=No) (1=Yes)
Scripts After=0
; ******* values for Scripts After Execution Global: (0=No) (1=Yes)
Scripts After Execution Global=0
; ******* values for Scripts After Execution Local: (0=No) (1=Yes)
Scripts After Execution Local=0
; ******* values for Scripts After Execution Specify: (0=No) (1=Yes)
Scripts After Execution Specify=0
; ******* Script to run after execution
Script After Execution Path=
; ******* values for Send E-Mail on Error: (0=No) (1=Yes)
Send E-Mail on Error=0
; ******* values for Send E-Mail on Success: (0=No) (1=Yes)
Send E-Mail on Success=0
; ******* E-Mail address to send E-Mail TO
Send E-Mail - TO=
; ******* E-Mail address to send E-Mail FROM
Send E-Mail - FROM=
; ******* SMTP Server Name
Send E-Mail - SMTP Server Name=
Send E-Mail - Port=0
; ******* values for Send E-Mail - Authenticate using Name and Password: (0=No) (1=Yes)
Send E-Mail - Authenticate using Name and Password=0
; ******* User Name
Send E-Mail - User Name=
; ******* User Password
Send E-Mail - Password=010101
; ******* values for Send E-Mail - Use Secure Connection: (0=No) (1=Yes)
Send E-Mail - Use Secure Connection=0
; ******* values for POP3 Authenticate using Name and Password: (0=No) (1=Yes)
POP3 Authenticate using Name and Password=0
; ******* POP3 Server Name
POP3 Server Name=
POP3 Port=0
; ******* E-Mail Subject
E-Mail Subject=
; ******* E-Mail Body
E-Mail Body=
; ******* Source Archive
Source Archive Folder=
; ******* Target Archive
Target Archive Folder=
; ******* values for Smart Archive: (0=No) (1=Yes)
Smart Archive=0
; ******* values for Move Files To Archive: (0=No) (1=Yes)
Move Files To Archive=0
; ******* values for Archive Conflicts Only: (0=No) (1=Yes)
Archive Conflicts Only=0
Num. Copies=0
Remove Days=0
Append Path=0
Max Archive Size=0
DES=0
; *******
ComEnc String=
[Filters]
; ******* values for Exclude Hidden Files: (0=No) (1=Yes)
Exclude Hidden Files=0
; ******* values for Exclude System Files: (0=No) (1=Yes)
Exclude System Files=0
; ******* values for Exclude Read-Only Files: (0=No) (1=Yes)
Exclude Read-Only Files=0
; *******
Exclude After Date=
; *******
Exclude Before Date=
Exclude Days Ago=0
Exclude Greater than bytes=0
Exclude Smaller than bytes=0
Num. of Filters=0
[FiltersDirs]
Num. of Filters=0
[ArchiveFilters]
Num. of Filters=0
[Subfolder Filters]
; ******* values for Exclude Empty Subfolders: (0=No) (1=Yes)
Exclude Empty Subfolders=0
; ******* values for Exclude Hidden Subfolders: (0=No) (1=Yes)
Exclude Hidden Subfolders=0
; ******* values for Exclude System Subfolders: (0=No) (1=Yes)
Exclude System Subfolders=0
; ******* values for Exclude Read-Only Subfolders: (0=No) (1=Yes)
Exclude Read-Only Subfolders=0
[ViceVersa Profile - File Version 5.0.0]
[ViceVersa Profile - File Version 4.0.0]
*Note*
I noticed that I accidentially did not turn on the Volume Shadow Copy feature. I also, thinking about my little batch, came to the conclusion that it isn't exactly doing what I intended, sinde I guess that every loop opens the file, appends the timestamp, and closes the file. So the loop isn't keeping the file open.
As soon as I put a 5 seconds delay into the loop the file replicates properly. To me it seems that the replication mechanism needs the file to be idle (unchanged) a couple of seconds before replicating it. Can you confirm this?
Thanks for taking the time to look into my problems,
Armin. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Wed Oct 28, 2009 1:48 am Post subject: |
|
|
Quote: | To me it seems that the replication mechanism needs the file to be idle (unchanged) a couple of seconds before replicating it. Can you confirm this? |
Hello,yes, that is correct. ViceVersa waits for a few seconds of inactivity before starting replication/synchronization. thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
onlyasking
Joined: 12 Dec 2008 Posts: 49
|
Posted: Fri Oct 30, 2009 10:14 am Post subject: |
|
|
the open file still needs to be saved before it will be replicated? is that correct? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
|
Back to top |
|
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © phpBB Group
|