[ClusterLabs] copy file

Mevo Govo govomevo at gmail.com
Wed Mar 7 09:03:23 UTC 2018


Thanks for advices, I will try!
lados.

2018-03-05 23:29 GMT+01:00 Ken Gaillot <kgaillot at redhat.com>:

> On Mon, 2018-03-05 at 15:09 +0100, Mevo Govo wrote:
> > Hi,
> > I am new in pacemaker. I think, I should use DRBD instead of copy
> > file. But in this case, I would copy a file from a DRBD to an
> > external device. Is there a builtin way to copy a file before a
> > resource is started (and after the DRBD is promoted)? For example a
> > "copy" resource? I did not find it.
> > Thanks: lados.
> >
>
> There's no stock way of doing that, but you could easily write an agent
> that simply copies a file. You could use ocf:pacemaker:Dummy as a
> template, and add the copy to the start action. You can use standard
> ordering and colocation constraints to make sure everything happens in
> the right sequence.
>
> I don't know what capabilities your external device has, but another
> approach would be to an NFS server to share the DRBD file system, and
> mount it from the device, if you want direct access to the original
> file rather than a copy.
> --
> Ken Gaillot <kgaillot at redhat.com>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20180307/6299fdff/attachment-0001.html>


More information about the Users mailing list