[lustre-discuss] [EXTERNAL] permission denied for some files
Robert Redl
robert.redl at lmu.de
Tue Dec 15 05:25:15 PST 2020
Dear Chad,
thanks a lot! That is apparently the solution. The files did have the
immutable attribute set:
lsattr file
----i----------- file
removing it with:
chattr -i file
fixed the problem.
I have no idea how this attribute was set, but at least now I know how
to remove it.
Thank you!
Robert
On 15.12.20 14:16, Chad DeWitt wrote:
> Hi Robert,
>
> Just rolling dice, but is it possible that the append only attribute
> is set on the files in question?
>
> For instance, I have the attribute set on a file named /testing/ (the
> append attribute is shown by the 'a' flag):
>
> # lsattr testing
> -----a---------- testing
>
> When I try to remove /testing/ with the append flag set:
>
> # rm testing
> rm: remove regular empty file ‘testing’? y
> rm: cannot remove ‘testing’: Operation not permitted
>
>
> If that flag is set on your problematic files, the unsetting the flag
> will allow you to delete them:
>
> # chattr -a testing
> # rm testing
> rm: remove regular empty file ‘testing’? y
>
>
> BTW - You have to use lsattr to see the append flag; a normal ls will
> not show it...
>
> Chad
>
> ------------------------------------------------------------
>
> Chad DeWitt, CISSP | University Research Computing
>
> UNC Charlotte *| *Office of OneIT
>
> ccdewitt at uncc.edu <mailto:ccdewitt at uncc.edu> *| *https://oneit.uncc.edu
>
> ------------------------------------------------------------
>
>
>
> On Tue, Dec 15, 2020 at 8:02 AM Robert Redl <robert.redl at lmu.de
> <mailto:robert.redl at lmu.de>> wrote:
>
> Dear Lustre Users,
>
> we have some files in the system, that are not writable anymore.
> Symptoms:
>
> - normal rm fails: rm: cannot remove 'file': Operation not permitted.
> - lfs rmfid fails without error message. The file is just not deleted.
> - lfs migrate fails: file: no write permission, skipped
> - all commands are executes as root on a node which is listed in
> nosquash_nids.
> - other files with the same permissions located in the same folder
> are writable.
> - the affected file are readable. Creating a copy is possible, but
> deleting the original file not.
> - the problem remains after running lfsck.
>
> We use Lustre 2.12.5 on Centos 7 with ZFS backend.
>
> Has anyone had such issues before? Any ideas how to delete these
> files?
>
> Thank you!
> Robert
>
> --
>
> Dr. Robert Redl
> Scientific Programmer, "Waves to Weather" (SFB/TRR165)
> Meteorologisches Institut
> Ludwig-Maximilians-Universität München
> Theresienstr. 37, 80333 München, Germany
>
> [Caution: Email from External Sender. Do not click or open links
> or attachments unless you know this sender.]
>
>
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> <mailto:lustre-discuss at lists.lustre.org>
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20201215/983d10f9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20201215/983d10f9/attachment-0001.sig>
More information about the lustre-discuss
mailing list