Re: [U2] Windows DFS Replication

2011-06-28 Thread Ross Ferris
I have no direct knowledge, but I suspect that the remote differential 
compression used by DFS would need to examine the entire file to determine 
changed blocks, and with a non-trivial UV file of a couple of hundred megs, I 
imagine that the overhead would be LARGE. However, if you were looking at this 
as a periodic update mechanism for a mirrored server (say, on a nightly basis), 
rather than attempting real time database replication changes, you might be in 
business :-)

All speculation on my part, and happy to defer to someone with firsthand 
knowledge, but if you could share an insight to the result you are trying to 
achieve, others may be able to provide a more accurate response.

Ross Ferris
Stamina Software
Visage  Better by Design!


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jerry Banker
Sent: Tuesday, 28 June 2011 8:04 AM
To: U2 Users Group Technical
Subject: [U2] Windows DFS Replication


Is anyone using Windows DFS Replication with UniVerse on Windows Server 2008?
 
Jerry 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Windows DFS Replication

2011-06-28 Thread Holt, Jake

I don't know that much about it, but DFS replication is still using file
block replication not disk level.  Also, It may not matter in your
environment but it is recommended that the prestaging folder is 10 times
the largest replicated file (some say 10 times the largest couple files)
to avoid an IO hit.

Is RDC true block-level replication?

No. RDC is a general purpose protocol for compressing file transfer. DFS
Replication uses RDC on blocks at the file level, not at the disk block
level. RDC divides a file into blocks. For each block in a file, it
calculates a signature, which is a small number of bytes that can
represent the larger block. The set of signatures is transferred from
server to client. The client compares the server signatures to its own.
The client then requests the server send only the data for signatures
that are not already on the client.

You might check out:
http://technet.microsoft.com/en-us/library/cc773238%28WS.10%29.aspx


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Ross Ferris
Sent: Tuesday, June 28, 2011 2:51 AM
To: U2 Users List
Subject: Re: [U2] Windows DFS Replication

I have no direct knowledge, but I suspect that the remote differential
compression used by DFS would need to examine the entire file to
determine changed blocks, and with a non-trivial UV file of a couple of
hundred megs, I imagine that the overhead would be LARGE. However, if
you were looking at this as a periodic update mechanism for a mirrored
server (say, on a nightly basis), rather than attempting real time
database replication changes, you might be in business :-)

All speculation on my part, and happy to defer to someone with firsthand
knowledge, but if you could share an insight to the result you are
trying to achieve, others may be able to provide a more accurate
response.

Ross Ferris
Stamina Software
Visage  Better by Design!


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jerry Banker
Sent: Tuesday, 28 June 2011 8:04 AM
To: U2 Users Group Technical
Subject: [U2] Windows DFS Replication


Is anyone using Windows DFS Replication with UniVerse on Windows Server
2008?
 
Jerry 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] Verifying file existence

2011-06-28 Thread Kebbon Irwin

UD 7.1
RHEL Nahant 4
I am looking for an elegant way to verify a file in a remote directory has been 
created.  Because it is a binary file and could be pretty big, I thought 
OPENing or OPENSEQing it might not be best.  I briefly looked at stat within 
a PCPERFORM but found the @SYSTEM.RETURN.CODE returned 0 whether the file was 
there or not.

Any other ideas?
Cheers,
Kebbon Irwin
  
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Verifying file existence

2011-06-28 Thread George Gallen
Since your using RHEL, would you know the actual directory or this file?
if so, why not use unix?

[george@alpha]$ ls /usr/hello
ls: /usr/hello: No such file or directory
[george@alpha]$ ls /bin/rm
/bin/rm

Or you could write a short script that uses the -f flag, and returns a YES or NO
this way, you don't have to worry about the OS changing the wording of an error.

if [ -f $1 ] ; then
   echo YES
else
   echo NO
fi

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Kebbon Irwin
 Sent: Tuesday, June 28, 2011 12:54 PM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] Verifying file existence
 
 
 UD 7.1
 RHEL Nahant 4
 I am looking for an elegant way to verify a file in a remote directory
 has been created.  Because it is a binary file and could be pretty big,
 I thought OPENing or OPENSEQing it might not be best.  I briefly looked
 at stat within a PCPERFORM but found the @SYSTEM.RETURN.CODE returned
 0 whether the file was there or not.
 
 Any other ideas?
 Cheers,
 Kebbon Irwin
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Verifying file existence

2011-06-28 Thread Robert Houben
Or you could simply do it like this:
:ED USER.PROGRAMS RH.TEST
Top of RH.TEST in USER.PROGRAMS, 9 lines, 230 characters.
*--: P
001: FILEPATH=./D_VOC
002: CMD = if [ -e :FILEPATH: ]; then echo yes; else echo no; fi;
003: PCPERFORM CMD CAPTURING OUTPUT
004: PRINT OUTPUT=:OUTPUT
005: IF INDEX(OUTPUT, yes, 1) THEN
006:PRINT FILE EXISTS
007: END ELSE
008:PRINT NO FILE THERE
009: END
Bottom.
*--: EX
Quit RH.TEST in file USER.PROGRAMS unchanged.
:RUN USER.PROGRAMS RH.TEST
OUTPUT=yes
FILE EXISTS


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: Tuesday, June 28, 2011 10:16 AM
To: U2 Users List
Subject: Re: [U2] Verifying file existence

Since your using RHEL, would you know the actual directory or this file?
if so, why not use unix?

[george@alpha]$ ls /usr/hello
ls: /usr/hello: No such file or directory [george@alpha]$ ls /bin/rm /bin/rm

Or you could write a short script that uses the -f flag, and returns a YES or 
NO this way, you don't have to worry about the OS changing the wording of an 
error.

if [ -f $1 ] ; then
   echo YES
else
   echo NO
fi

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Kebbon Irwin
 Sent: Tuesday, June 28, 2011 12:54 PM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] Verifying file existence


 UD 7.1
 RHEL Nahant 4
 I am looking for an elegant way to verify a file in a remote directory
 has been created.  Because it is a binary file and could be pretty
 big, I thought OPENing or OPENSEQing it might not be best.  I briefly
 looked at stat within a PCPERFORM but found the @SYSTEM.RETURN.CODE
 returned
 0 whether the file was there or not.

 Any other ideas?
 Cheers,
 Kebbon Irwin

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Verifying file existence

2011-06-28 Thread Kebbon Irwin

Perfect!  Thanks guys.
Cheers,
Kebbon

 From: robert.hou...@fwic.net
 To: u2-users@listserver.u2ug.org
 Date: Tue, 28 Jun 2011 10:17:23 -0700
 Subject: Re: [U2] Verifying file existence
 
 Or you could simply do it like this:
 :ED USER.PROGRAMS RH.TEST
 Top of RH.TEST in USER.PROGRAMS, 9 lines, 230 characters.
 *--: P
 001: FILEPATH=./D_VOC
 002: CMD = if [ -e :FILEPATH: ]; then echo yes; else echo no; fi;
 003: PCPERFORM CMD CAPTURING OUTPUT
 004: PRINT OUTPUT=:OUTPUT
 005: IF INDEX(OUTPUT, yes, 1) THEN
 006:PRINT FILE EXISTS
 007: END ELSE
 008:PRINT NO FILE THERE
 009: END
 Bottom.
 *--: EX
 Quit RH.TEST in file USER.PROGRAMS unchanged.
 :RUN USER.PROGRAMS RH.TEST
 OUTPUT=yes
 FILE EXISTS
 
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org 
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
 Sent: Tuesday, June 28, 2011 10:16 AM
 To: U2 Users List
 Subject: Re: [U2] Verifying file existence
 
 Since your using RHEL, would you know the actual directory or this file?
 if so, why not use unix?
 
 [george@alpha]$ ls /usr/hello
 ls: /usr/hello: No such file or directory [george@alpha]$ ls /bin/rm /bin/rm
 
 Or you could write a short script that uses the -f flag, and returns a YES or 
 NO this way, you don't have to worry about the OS changing the wording of an 
 error.
 
 if [ -f $1 ] ; then
echo YES
 else
echo NO
 fi
 
  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
  boun...@listserver.u2ug.org] On Behalf Of Kebbon Irwin
  Sent: Tuesday, June 28, 2011 12:54 PM
  To: u2-users@listserver.u2ug.org
  Subject: [U2] Verifying file existence
 
 
  UD 7.1
  RHEL Nahant 4
  I am looking for an elegant way to verify a file in a remote directory
  has been created.  Because it is a binary file and could be pretty
  big, I thought OPENing or OPENSEQing it might not be best.  I briefly
  looked at stat within a PCPERFORM but found the @SYSTEM.RETURN.CODE
  returned
  0 whether the file was there or not.
 
  Any other ideas?
  Cheers,
  Kebbon Irwin
 
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
  
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Verifying file existence

2011-06-28 Thread Robert Houben
Unidata on Windows version, change one line:
CMD = 'if exist ':FILEPATH:' (echo yes) else (echo no)'

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kebbon Irwin
Sent: Tuesday, June 28, 2011 11:53 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Verifying file existence


Perfect!  Thanks guys.
Cheers,
Kebbon

 From: robert.hou...@fwic.net
 To: u2-users@listserver.u2ug.org
 Date: Tue, 28 Jun 2011 10:17:23 -0700
 Subject: Re: [U2] Verifying file existence

 Or you could simply do it like this:
 :ED USER.PROGRAMS RH.TEST
 Top of RH.TEST in USER.PROGRAMS, 9 lines, 230 characters.
 *--: P
 001: FILEPATH=./D_VOC
 002: CMD = if [ -e :FILEPATH: ]; then echo yes; else echo no; fi;
 003: PCPERFORM CMD CAPTURING OUTPUT
 004: PRINT OUTPUT=:OUTPUT
 005: IF INDEX(OUTPUT, yes, 1) THEN
 006:PRINT FILE EXISTS
 007: END ELSE
 008:PRINT NO FILE THERE
 009: END
 Bottom.
 *--: EX
 Quit RH.TEST in file USER.PROGRAMS unchanged.
 :RUN USER.PROGRAMS RH.TEST
 OUTPUT=yes
 FILE EXISTS


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George
 Gallen
 Sent: Tuesday, June 28, 2011 10:16 AM
 To: U2 Users List
 Subject: Re: [U2] Verifying file existence

 Since your using RHEL, would you know the actual directory or this file?
 if so, why not use unix?

 [george@alpha]$ ls /usr/hello
 ls: /usr/hello: No such file or directory [george@alpha]$ ls /bin/rm
 /bin/rm

 Or you could write a short script that uses the -f flag, and returns a YES or 
 NO this way, you don't have to worry about the OS changing the wording of an 
 error.

 if [ -f $1 ] ; then
echo YES
 else
echo NO
 fi

  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
  boun...@listserver.u2ug.org] On Behalf Of Kebbon Irwin
  Sent: Tuesday, June 28, 2011 12:54 PM
  To: u2-users@listserver.u2ug.org
  Subject: [U2] Verifying file existence
 
 
  UD 7.1
  RHEL Nahant 4
  I am looking for an elegant way to verify a file in a remote
  directory has been created.  Because it is a binary file and could
  be pretty big, I thought OPENing or OPENSEQing it might not be best.
  I briefly looked at stat within a PCPERFORM but found the
  @SYSTEM.RETURN.CODE returned
  0 whether the file was there or not.
 
  Any other ideas?
  Cheers,
  Kebbon Irwin
 
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Verifying file existence

2011-06-28 Thread Rex Gozar
FYI - For Universe users out there, you can use the READV...0 (zero) trick:

OPENPATH /some/remote/directory TO FILE ELSE ABORT
READV SCRAP FROM FILE, large-binary-filename, 0 THEN
   IS.CREATED = @TRUE
END ELSE
   IS.CREATED = @FALSE
END

(Don't know if it works on Unidata)

rex

On Tue, Jun 28, 2011 at 12:54 PM, Kebbon Irwin
kebbon.ir...@sympatico.ca wrote:
 UD 7.1
 RHEL Nahant 4
 I am looking for an elegant way to verify a [large binary] file in a remote 
 directory has been created.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users