Re: Unable to delete file in CephFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 26, 2016 at 3:16 PM, Burkhard Linke
<Burkhard.Linke@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> On 01/26/2016 07:58 AM, Yan, Zheng wrote:
>
> *snipsnap*
>
>> I have a few questions
>>
>> Which version of ceph are you using? When was the filesystem created?
>> Did you manually delete 10002af7f78.00000000 from pool 8?
>
>
> Ceph version is 0.94.5. The filesystem was created about 1.5 years ago using
> a Firefly release. The exact order of commands was:

The FS was created 1.5 years ago can explain the issue.


here is way to fix other potential bad files in the FS.

1. List all object whose name end with .00000000  in pool 7
2. Find all non-directory inodes in the FS
3. For all non-directory inodes without corresponding object in pool
7, create an empty object in pool 7 and copy xattr 'parent' from
corresponding object in pool 12 or pool 20.

Regards
Yan, Zheng

>
> - restarting MDS due to full log partition
> - trying to remove the file via a ceph-fuse client
> - restarting MDS due to log output
> - trying to move the file to a different directory (was blocked nightly
> backup)
> - restarting MDS due to log output
>
> After the last restart the file was present in the new directory, but was
> removed without any further interaction from our side. The remove command
> seems to be executed after the file was moved to the new location.
>
> I did not remove any objects from the rados pools manually. The file content
> itself is still available in pool 12 as 10002af7f78.00000000 object. It also
> still has its 'parent' xattr. Its content is
>
> # ceph-dencoder import test.parent type inode_backtrace_t decode dump_json
> {
>     "ino": 1099556683640,
>     "ancestors": [
>         {
>             "dirino": 1541,
>             "dname": "10002af7f78",
>             "version": 52554232
>         },
>         {
>             "dirino": 256,
>             "dname": "stray5",
>             "version": 79097792
>         }
>     ],
>     "pool": 12,
>     "old_pools": [
>         7
>     ]
> }
>
>
> Regards,
> Burkhard
>
> --
> Dr. rer. nat. Burkhard Linke
> Bioinformatics and Systems Biology
> Justus-Liebig-University Giessen
> 35392 Giessen, Germany
> Phone: (+49) (0)641 9935810
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux