Hi We currently use rsync for various jobs at our company. We are now looking at using it to create an offsite synchonised copy of an Oracle 10g RAC archive logs area. The source area is on Oracle OCFS filesystem. The OCFS filesystem requires all reads/writes to be performed with the O_DIRECT option, thus bypassing cache. Oracle provide an updated coreutils package which includes the --o_direct switch in cp, tar, dd etc to allow "normal" file operations on OCFS filesystems. My question is, is there a facility to ensure rsync reads files in O_DIRECT mode so that we can use it for this purpose? Thanks Simon
On Wed, Oct 19, 2005 at 11:59:57AM +0100, Simon Hargrave wrote:> My question is, is there a facility to ensure rsync reads files in > O_DIRECT mode so that we can use it for this purpose?You'd need to modify the code yourself to add O_DIRECT to the various system calls. I haven't heard about this being done before. ..wayne..
Just in case anyone is interested, I've just got confirmation from Oracle that it is valid to use OCFS without O_DIRECT for reads, it's only writes that are an issue. So it is perfectly valid to use rsync to clone an OCFS Oracle archive log area to another server on standard filesystem. Simon> On Wed, Oct 19, 2005 at 11:59:57AM +0100, Simon Hargrave wrote: >> My question is, is there a facility to ensure rsync reads files inO_DIRECT mode so that we can use it for this purpose?> > You'd need to modify the code yourself to add O_DIRECT to the varioussystem calls. I haven't heard about this being done before.> > ..wayne.. > >