[LUDOC-514] tar --acls option for proper POSIX ACLs backup/restore of MDTs Created: 06/Jul/23  Updated: 07/Jul/23  Resolved: 07/Jul/23

Status: Resolved
Project: Lustre Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Stephane Thiell Assignee: Lustre Manual Triage
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Tar does only restore the following xattr if --acls is provided:

system.posix_acl_access
system.posix_acl_default

See: https://git.savannah.gnu.org/cgit/tar.git/tree/src/xattrs.c#n283

The documentation should be updated to mention --acls for MDT backup/restore, otherwise all POSIX ACLs are lost. I will submit a doc patch shortly.

Alternatively, one can use getfacl/setfacl to backup/restore ACLs.

Lastly, using -P / --absolute-names speeds up tremendously the extraction for trusted archive with hardlinks (like MDT backup archives).
See:

 



 Comments   
Comment by Gerrit Updater [ 06/Jul/23 ]

"Stephane Thiell <sthiell@stanford.edu>" uploaded a new patch: https://review.whamcloud.com/c/doc/manual/+/51599
Subject: LUDOC-514: add --acls and -P for MDT backup/restore
Project: doc/manual
Branch: master
Current Patch Set: 1
Commit: 610458bc82d5a51308e906d82527863e242c76f4

Comment by Gerrit Updater [ 07/Jul/23 ]

"Andreas Dilger <adilger@whamcloud.com>" merged in patch https://review.whamcloud.com/c/doc/manual/+/51599/
Subject: LUDOC-514: add --acls and -P for MDT backup/restore
Project: doc/manual
Branch: master
Current Patch Set:
Commit: da6e9fdcc2fcacc234ba9b472124d4d2a89d855a

Generated at Sat Feb 10 03:43:33 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.