[LU-692] error setting xattrs moving read-only files Created: 20/Sep/11 Updated: 31/Oct/11 Resolved: 31/Oct/11 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 1.8.6 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Ned Bass | Assignee: | Andreas Dilger |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Rank (Obsolete): | 9729 |
| Description |
|
When moving (or cp'ing with --preserver=all) read-only files out of a lustre filesystem, errors are produced as follows % touch /p/lscratcha/bass6/asdf This isn't really a bug, but rather an unfortunate consequence of the design decision to use the 'lustre' namespace for extended attributes. If Lustre instead used the conventional 'system' namespace then the utilities wouldn't try to preserve them and the errors would be avoided. While harmless, the errors do cause some alarm to users who then wonder if their files have been corrupted. It would be nice to handle this more gracefully in future designs. |
| Comments |
| Comment by Andreas Dilger [ 20/Sep/11 ] |
|
The root of this issue is that /tmp has gained xattrs, but it isn't happy with the lustre.* attributes. Is this related to read-only files at all? If yes, then it would seem to be an error in the cp/mv utility to try and set the xattrs after the file is changed read-only. Using the "system." namespace is troublesome, because it cannot be accessed from userspace at all, and this would make it impossible to backup/restore the file layout with tar --xattr. We originally just used the "trusted." namespace (which allows both userspace and kernel xattr access), but it is limited to root only so regular users could not use tar (in RHEL6 or lustre-patched to save/restore xattrs first) to backup/restore their files and maintain striping. |
| Comment by Ned Bass [ 20/Sep/11 ] |
|
> The root of this issue is that /tmp has gained xattrs, but it isn't happy with the lustre.* attributes. I should have mentioned the same error occurs if read-only files are moved between different Lustre filesystems as well. > Is this related to read-only files at all? Yes, if the file is writeable the lsetxattr() call instead returns EOPNOTSUPP, but the error is not reported back to the user. % strace -e lsetxattr mv /p/lscratcha/bass6/asdf /tmp |
| Comment by Ned Bass [ 23/Sep/11 ] |
|
Andreas, I noticed on our 2.1 test filesystem the following EAs are set trusted.lma whereas on 1.8 only lustre.lov is. Are the trusted attributes supposed to be there or is this a regression? |
| Comment by Andreas Dilger [ 25/Sep/11 ] |
|
I believe that this is a regression, as described in |
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Peter Jones [ 24/Oct/11 ] |
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Build Master (Inactive) [ 24/Oct/11 ] |
|
Integrated in Johann Lombardi : 1cf716f1521a2beacafd0d24c4deac0c9d7af662
|
| Comment by Andreas Dilger [ 25/Oct/11 ] |
|
My mistake - the above patch should have been attributed to |
| Comment by Peter Jones [ 31/Oct/11 ] |
|
Duplicate of LU532 |