were moving the file %f not the directory
In this case archiver process fail, because there won't be directory called /data/wal_tmp anymore with your your "mv" command.
My bad, I overlooked. Sorry for the inconvenience.
we dont want the log shipper process to ship a file that is still being copied from pg_xlogsince both directories are in the same file system the mv is immediate so any process watching for files to show up in /data/wal will never see a partial file
"partial file" ?Its 16MB file in any case there won't be any partial files, because after completion of writing 16mb file in xlog it will come to archive location else not.
What was the previous archive_command string ?
and
ps -ef | grep arch output?
--Raghav