[Csync2] owner of files when sync on nodes
Lars Ellenberg
lars.ellenberg at linbit.com
Tue Sep 25 14:23:15 CEST 2012
On Tue, Sep 25, 2012 at 09:00:13AM +1200, Claudio Contin wrote:
> I found out that csync persists ownership of the files; the problem the
> UUID on the 2 servers is not the same.
> I can get around that.
There is the "ignore" statement.
ignore uid gid;
May be what you are looking for.
If you look for some textual matching on the "name",
csync2 does not have that (yet).
It basically always does the "numeric-ids" mode.
You'd need to enhance the "SETOWN" command in the csync2 protocol.
Lars
> Thanks
>
> On Tue, Sep 25, 2012 at 8:50 AM, Claudio Contin <
> claudio.contin at sharesight.co.nz> wrote:
>
> > Hi,
> > I'm new with csync2.
> >
> > I'm setting up for a small cluster (at the moment only 2 nodes).
> >
> > My configuration on both nodes is the following:
> >
> > group cluster
> > {
> > host server1;
> > host server2;
> > key /etc/csync2.key;
> > include /var/apps/sync;
> > }
> > nossl * *;
> >
> >
> > When I run csync2 -x everything works fine, but the ownership of the files
> > is not root on the other node.
> > I was thinking to change the ownership after each csync2, but the
> > ownership change triggers the file as modified, and this ends up in a loop.
> >
> > How do I specify file permission for csync2? I can't find any
> > configuration option about.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Csync2
mailing list