Re: [Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Felix Kölzow

Dear Mauro,

I also faced this issue several times, even on a host with single brick
and single volume.


The solution for me was: I figured out the leftover file-names and
directory-names in the brick directory.

Let's suppose the file name is hiddenFile and hiddenDirectory.
Afterwards, go to

the corresponding path on mount directory which is related to your issue
and try to remove the file and directory, i.e.:

cd RECOVERY20190416/GlobNative/20190505/

rm hiddenFile

rm -r hiddenDirectory


I would be interested if this procedure is also working for you.

Regards,

Felix


On 25/03/2020 21:55, Mauro Tridici wrote:

Hi Strahil,

unfortunately, no process is holding file or directory.
Do you know if some other community user could help me?

Thank you,
Mauro




On 25 Mar 2020, at 21:08, Strahil Nikolov mailto:hunter86...@yahoo.com>> wrote:

You can also check if there is a process holding a file that was
deleted there:
lsof /tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505

If it's not that one , I'm out of ideas :)

It's not recommended to delete it from the bricks , so avoid that if
possible.

Best Regards,
Strahil Nikolov






В сряда, 25 март 2020 г., 21:12:58 Гринуич+2, Mauro Tridici
mailto:mauro.trid...@cmcc.it>> написа:





Hi Sttrahil,

thank you for your answer.
Directory is empty and no immutable bit has been assigned to it.

[athena-login2][/tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505]>
ls -la
total 8
drwxr-xr-x 2 das oclab_prod 4096 Mar 25 10:02 .
drwxr-xr-x 3 das oclab_prod 4096 Mar 25 10:02 ..

Any other idea related this issue?
Many thanks,
Mauro



On 25 Mar 2020, at 18:32, Strahil Nikolov mailto:hunter86...@yahoo.com>> wrote:

On March 25, 2020 3:32:59 PM GMT+02:00, Mauro Tridici
mailto:mauro.trid...@cmcc.it>> wrote:

Dear All,

some users tht use regularly our gluster file system are experiencing a
strange error during attempting to remove a empty directory.
All bricks are up and running, no perticular error has been detected,
but they are not able to remove it successfully.

This is the error they are receiving:

[athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not
empty

I tried to delete this directory from root user without success.
Do you have some suggestions to solve this issue?

Thank you in advance.
Kind Regards,
Mauro


What do you have in 'RECOVERY20190416/GlobNative/20190505' ?

Maybe you got an immutable bit (chattr +i) on any file/folder  ?

Best Regards,
Sttrahil Nikolov












Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users




Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Strahil Nikolov
Take a look at Stefan Solbrig's e-mail 


Best Regards,
Strahil Nikolov


В сряда, 25 март 2020 г., 22:55:23 Гринуич+2, Mauro Tridici 
 написа: 





Hi Strahil,

unfortunately, no process is holding file or directory.
Do you know if some other community user could help me?

Thank you,
Mauro



> On 25 Mar 2020, at 21:08, Strahil Nikolov  wrote:
> 
> You can also check if there is a process holding a file that was deleted 
> there:
> lsof /tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505
> 
> If it's not that one , I'm out of ideas :)
> 
> It's not recommended to delete it from the bricks , so avoid that if possible.
> 
> Best Regards,
> Strahil Nikolov
> 
> 
> 
> 
> 
> 
> В сряда, 25 март 2020 г., 21:12:58 Гринуич+2, Mauro Tridici 
>  написа: 
> 
> 
> 
> 
> 
> Hi Sttrahil,
> 
> thank you for your answer.
> Directory is empty and no immutable bit has been assigned to it.
> 
> [athena-login2][/tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505]>
>  ls -la
> total 8
> drwxr-xr-x 2 das oclab_prod 4096 Mar 25 10:02 .
> drwxr-xr-x 3 das oclab_prod 4096 Mar 25 10:02 ..
> 
> Any other idea related this issue?
> Many thanks,
> Mauro
> 
> 
>> On 25 Mar 2020, at 18:32, Strahil Nikolov  wrote:
>> 
>> On March 25, 2020 3:32:59 PM GMT+02:00, Mauro Tridici 
>>  wrote:
>>> Dear All,
>>> 
>>> some users tht use regularly our gluster file system are experiencing a
>>> strange error during attempting to remove a empty directory.
>>> All bricks are up and running, no perticular error has been detected,
>>> but they are not able to remove it successfully.
>>> 
>>> This is the error they are receiving:
>>> 
>>> [athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
>>> rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not
>>> empty
>>> 
>>> I tried to delete this directory from root user without success.
>>> Do you have some suggestions to solve this issue?
>>> 
>>> Thank you in advance.
>>> Kind Regards,
>>> Mauro
>> 
>> What do you have in 'RECOVERY20190416/GlobNative/20190505' ?
>> 
>> Maybe you got an immutable bit (chattr +i) on any file/folder  ?
>> 
>> Best Regards,
>> Sttrahil Nikolov
> 
> 
> 







Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Mauro Tridici
Hi Strahil,

unfortunately, no process is holding file or directory.
Do you know if some other community user could help me?

Thank you,
Mauro



> On 25 Mar 2020, at 21:08, Strahil Nikolov  wrote:
> 
> You can also check if there is a process holding a file that was deleted 
> there:
> lsof /tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505
> 
> If it's not that one , I'm out of ideas :)
> 
> It's not recommended to delete it from the bricks , so avoid that if possible.
> 
> Best Regards,
> Strahil Nikolov
> 
> 
> 
> 
> 
> 
> В сряда, 25 март 2020 г., 21:12:58 Гринуич+2, Mauro Tridici 
>  написа: 
> 
> 
> 
> 
> 
> Hi Sttrahil,
> 
> thank you for your answer.
> Directory is empty and no immutable bit has been assigned to it.
> 
> [athena-login2][/tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505]>
>  ls -la
> total 8
> drwxr-xr-x 2 das oclab_prod 4096 Mar 25 10:02 .
> drwxr-xr-x 3 das oclab_prod 4096 Mar 25 10:02 ..
> 
> Any other idea related this issue?
> Many thanks,
> Mauro
> 
> 
>> On 25 Mar 2020, at 18:32, Strahil Nikolov  wrote:
>> 
>> On March 25, 2020 3:32:59 PM GMT+02:00, Mauro Tridici 
>>  wrote:
>>> Dear All,
>>> 
>>> some users tht use regularly our gluster file system are experiencing a
>>> strange error during attempting to remove a empty directory.
>>> All bricks are up and running, no perticular error has been detected,
>>> but they are not able to remove it successfully.
>>> 
>>> This is the error they are receiving:
>>> 
>>> [athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
>>> rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not
>>> empty
>>> 
>>> I tried to delete this directory from root user without success.
>>> Do you have some suggestions to solve this issue?
>>> 
>>> Thank you in advance.
>>> Kind Regards,
>>> Mauro
>> 
>> What do you have in 'RECOVERY20190416/GlobNative/20190505' ?
>> 
>> Maybe you got an immutable bit (chattr +i) on any file/folder  ?
>> 
>> Best Regards,
>> Sttrahil Nikolov
> 
> 
> 






Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Strahil Nikolov
You can also check if there is a process holding a file that was deleted there:
lsof /tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505

If it's not that one , I'm out of ideas :)

It's not recommended to delete it from the bricks , so avoid that if possible.

Best Regards,
Strahil Nikolov






В сряда, 25 март 2020 г., 21:12:58 Гринуич+2, Mauro Tridici 
 написа: 





Hi Sttrahil,

thank you for your answer.
Directory is empty and no immutable bit has been assigned to it.

[athena-login2][/tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505]> 
ls -la
total 8
drwxr-xr-x 2 das oclab_prod 4096 Mar 25 10:02 .
drwxr-xr-x 3 das oclab_prod 4096 Mar 25 10:02 ..

Any other idea related this issue?
Many thanks,
Mauro


> On 25 Mar 2020, at 18:32, Strahil Nikolov  wrote:
> 
> On March 25, 2020 3:32:59 PM GMT+02:00, Mauro Tridici  
> wrote:
>> Dear All,
>> 
>> some users tht use regularly our gluster file system are experiencing a
>> strange error during attempting to remove a empty directory.
>> All bricks are up and running, no perticular error has been detected,
>> but they are not able to remove it successfully.
>> 
>> This is the error they are receiving:
>> 
>> [athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
>> rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not
>> empty
>> 
>> I tried to delete this directory from root user without success.
>> Do you have some suggestions to solve this issue?
>> 
>> Thank you in advance.
>> Kind Regards,
>> Mauro
> 
> What do you have in 'RECOVERY20190416/GlobNative/20190505' ?
> 
> Maybe you got an immutable bit (chattr +i) on any file/folder  ?
> 
> Best Regards,
> Sttrahil Nikolov







Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Mauro Tridici
Hi Sttrahil,

thank you for your answer.
Directory is empty and no immutable bit has been assigned to it.

[athena-login2][/tier2/OPA/archive/GOFS/RECOVERY20190416/GlobNative/20190505]> 
ls -la
total 8
drwxr-xr-x 2 das oclab_prod 4096 Mar 25 10:02 .
drwxr-xr-x 3 das oclab_prod 4096 Mar 25 10:02 ..

Any other idea related this issue?
Many thanks,
Mauro


> On 25 Mar 2020, at 18:32, Strahil Nikolov  wrote:
> 
> On March 25, 2020 3:32:59 PM GMT+02:00, Mauro Tridici  
> wrote:
>> Dear All,
>> 
>> some users tht use regularly our gluster file system are experiencing a
>> strange error during attempting to remove a empty directory.
>> All bricks are up and running, no perticular error has been detected,
>> but they are not able to remove it successfully.
>> 
>> This is the error they are receiving:
>> 
>> [athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
>> rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not
>> empty
>> 
>> I tried to delete this directory from root user without success.
>> Do you have some suggestions to solve this issue?
>> 
>> Thank you in advance.
>> Kind Regards,
>> Mauro
> 
> What do you have in 'RECOVERY20190416/GlobNative/20190505' ?
> 
> Maybe you got an immutable bit (chattr +i) on any file/folder  ?
> 
> Best Regards,
> Sttrahil Nikolov






Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Strahil Nikolov
On March 25, 2020 3:32:59 PM GMT+02:00, Mauro Tridici  
wrote:
>Dear All,
>
>some users tht use regularly our gluster file system are experiencing a
>strange error during attempting to remove a empty directory.
>All bricks are up and running, no perticular error has been detected,
>but they are not able to remove it successfully.
>
>This is the error they are receiving:
>
>[athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
>rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not
>empty
>
>I tried to delete this directory from root user without success.
>Do you have some suggestions to solve this issue?
>
>Thank you in advance.
>Kind Regards,
>Mauro

What do you have in 'RECOVERY20190416/GlobNative/20190505' ?

Maybe you got an immutable bit (chattr +i) on any file/folder  ?

Best Regards,
Sttrahil Nikolov




Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


[Gluster-users] cannot remove empty directory on gluster file system

2020-03-25 Thread Mauro Tridici
Dear All,

some users tht use regularly our gluster file system are experiencing a strange 
error during attempting to remove a empty directory.
All bricks are up and running, no perticular error has been detected, but they 
are not able to remove it successfully.

This is the error they are receiving:

[athena-login2][/tier2/OPA/archive/GOFS]> rm -rf RECOVERY20190416/
rm: cannot remove `RECOVERY20190416/GlobNative/20190505': Directory not empty

I tried to delete this directory from root user without success.
Do you have some suggestions to solve this issue?

Thank you in advance.
Kind Regards,
Mauro



Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users