[LUDOC-131] ACLs and extended attributes not preserved on MDS move Created: 25/Mar/13  Updated: 11/Mar/17  Resolved: 11/Mar/17

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

Type: Bug Priority: Minor
Reporter: Christopher J. Walker (Inactive) Assignee: Lustre Manual Triage
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Lustre 1.8.8-wc1 moving to Lustre 1.8.9-wc1


Severity: 3
Rank (Obsolete): 7348

 Description   

On 23/03/13 15:59, Christopher J. Walker wrote:
> I have moved the metadata server on a lustre 1.8 filesystem (previously
> upgraded from 1.6) to new hardware.
>
> The posix acls and extended user attributes don't seem to have been
> preserved.
>
[snip]
>
> What I did was:
>
> # On old server
> mount -t ldiskfs /dev/sdb /mnt/mgs

The problem is the following:

Although that's what is documented in the Lustre 1.8 manual, it seems I should have done is:

mount -t ldiskfs -o user_xattr -o acl /dev/sdb /mnt/mgs

to preserve the extended attributes and acls.

> cd /mnt/mgs
> getfattr -R -d -m '.*' -P .

To get out of this, I've done the following on the old MDS

getfattr -R -d -P . >aclfile

and then setfattr --restore=aclfile

and similarly with the acls.

Chris



 Comments   
Comment by Andreas Dilger [ 11/Mar/17 ]

All modern ext4/ldiskfs filesystems will mount with "-o user_xattr,acl" enabled by default, and these options have been removed from 3.3+ kernels so I don't think this is needed anymore.

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