The rsync command is built from the synclist file.
Try running the xdsh <nodename> -F <synclist>

After  you run the xdsh -F ,   look in /tmp/rsync_<nodename>.    You will
see the actual rsync command that is built.   There is some optimizing
going on in xdcp , like combining all files going to the same place.

The executes will take place after the sync is finished,   but  based on
the optimization,  I don't think you can be  guaranteed any particular
order.   It was not designed to be a certain order other than making sure
the files were sync'd before the scripts were executed.
Looking at your example though,  I think it would be the order you expect.

My synclist :

/tmp/lissa/test1 -> /tmp/test1
/tmp/test3 -> /tmp/lissa/test3
EXECUTE:
/tmp/lissa/test1.post   <-Hello
/tmp/test3.post  <-- Hello2


You should have a sync something like the following:
#!/bin/sh
/usr/bin/ssh  service-03 '/bin/mkdir -p /tmp /tmp/lissa'
/usr/bin/rsync --rsync-path /usr/bin/rsync -Liprogtz
--out-format=%f%L  /tmp/lissa/test1 service-03:/tmp
/usr/bin/rsync --rsync-path /usr/bin/rsync -Liprogtz
--out-format=%f%L  /tmp/test3 service-03:/tmp/lissa

 and it did executed in the order
/tmp/lissa/test1.post   (Hello)
/tmp/test3.post       (Hello 2)


xdcp service-03 -F /tmp/lissa/synclist
service-03: Hello
service-03: Hello 2

If you have a combination of EXECUTE, EXECUTEALWAYS, APPEND, etc.   you
cannot count on the order between the clauses.


Lissa K. Valletta
8-3/B10
Poughkeepsie, NY 12601
(tie 293) 433-3102





From:   Arif Ali <[email protected]>
To:     xCAT-user <[email protected]>
Date:   08/07/2014 08:50 AM
Subject:        [xcat-user] synclist ordering



Hi all,

A question has arised wrt on how the files are synchronised, and in which
order

from the docs it suggests we need to synchronise the the .post scripts as
well as the files themselves.

The main question being, will the files always sync before the post, and
the post scripts will run. i.e. in the following order

1. sync files
2. sync .post files
3. run .post files

or is it based in the order that is is listed in the synclist file? i.e.
below is an example, what would we expect the order of files being sync'd
and the post scripts being run

---------------------------------
/etc/hosts -> /etc/

/etc/hosts.post -> /etc/
/etc/pam.d/system-auth.post -> /etc/pam,d/

/etc/pam.d/system-auth -> /etc/pam.d/
EXECUTE:
/etc/hosts.post
/etc/pam.d/system-auth.post
---------------------------------
--
Arif Ali

IRC: arif-ali at freenode
LinkedIn: http://uk.linkedin.com/in/arifali
------------------------------------------------------------------------------

Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to