It doesn’t sound like the same situation we had, but:
Try rsync with

--inplace

 

I believe default behaviour is to copy to a temp file, then rename.

--inplace writes to the file with the correct name straight off.

 

Kindest regards,

Paul

 

Paul Ward

TS Infrastructure Architect

Natural History Museum

T: 02079426450

E: p.ward@nhm.ac.uk

 

From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> On Behalf Of Losen, Stephen C (scl)
Sent: Monday, February 5, 2024 6:56 PM
To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org>
Subject: Re: [gpfsug-discuss] Rsync from home directory to AFM directory rename permission error.

 

Hi,

Try enabling DELETE_CHILD on Backup_ADA_2feb24

 

Steve Losen

University of Virginia

Research Computing

 

From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Amjad Syed <amjadcsu@gmail.com>
Reply-To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org>
Date: Monday, February 5, 2024 at 12:39 PM
To: "gpfsug-discuss@gpfsug.org" <gpfsug-discuss@gpfsug.org>
Subject: [gpfsug-discuss] Rsync from home directory to AFM directory rename permission error.

 

Hello

 

I am using rsync 3.1.2-10 on centos 7.

 

I have an afm share /gpfs/afm/XXX-share/Backup

 

The ACL on this share are as follows

 

 

 mmgetacl /gpfs/afm/marcela-archive/Backup_ADA_2feb24/
#NFSv4 ACL
#owner:pbj20xqu(me)
#group:bio
group:Authorised_XXX_Share_Users:r-x-:allow:FileInherit:DirInherit:Inherited
(X)READ/LIST (-)WRITE/CREATE (-)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED
(-)DELETE    (-)DELETE_CHILD (-)CHOWN        (X)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED

 

group:Research_XXX-Archive_RWD_Share_Users:rwx-:allow:FileInherit:DirInherit:Inherited
(X)READ/LIST (X)WRITE/CREATE (X)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED
(X)DELETE    (-)DELETE_CHILD (-)CHOWN        (X)EXEC/SEARCH (-)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED

 

 

From my home directory  in /gpfs/home . I have a test file testrysnc

 

getfacl testrysnc 

# file: testrysnc

# owner: pbj20xqu

# group: bio

user::rw-

group::rw-

other::rw-

 

pwd is my home directory

 

pwd

/gpfs/home/pbj20xqu

 

 

When i try to rsync i get the following error

 

rsync  -Xav testrysnc  /gpfs/afm/XXX/Backup_ADA_2feb24/

sending incremental file list

testrysnc

rsync: rename "/gpfs/afm/marcela-archive/Backup_ADA_2feb24/.testrysnc.bZ3DsR" -> "testrysnc": Permission denied (13)

 

sent 108 bytes  received 156 bytes  528.00 bytes/sec

total size is 0  speedup is 0.00

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]

 

 

Does AFM support rsync.?