I haven't verified with pvfs2-rm that it cleans up all the pieces that it
can get to for the file (i.e. all the valid bstreams), but pvfs2-rm does get
rid of the file so that it quits complaining. 


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Rob
Ross
Sent: Thursday, May 28, 2009 2:24 PM
To: Phil Carns
Cc: [email protected]
Subject: Re: [Pvfs2-developers] Trove DBPF error

Can we make a "-f" option do what we want with pvfs2-rm?

Rob

On May 28, 2009, at 9:22 AM, Phil Carns wrote:

> There is actually an admin tool (pvfs2-rm-object) that does what  
> Kevin described (used for testing pvfs2-fsck mainly).  That can be  
> used to get rid of each handle/object in the file, but that would  
> still leave a directory entry to get rid of...
>
> Does pvfs2-rm not remove the entire file?  It may be easier to tweak  
> pvfs2-rm to continue in your case (if it doesn't already) to clear  
> it out.
>
> -Phil
>
> Kevin Harms wrote:
>>  I'm not saying this is sanctioned or a good idea but pvfs2-fsck.c  
>> uses the PVFS_mgmt_remove_object interface.
>> PVFS_error PVFS_mgmt_remove_object(
>>    PVFS_object_ref object_ref,
>>    PVFS_credentials *credentials,
>>    PVFS_hint hints)
>>  Assuming you know the handle, you could write a small code to  
>> delete it.
>> kevin
>> On May 26, 2009, at 1:14 PM, Bart Taylor wrote:
>>> Hey guys,
>>>
>>> We have a particular file on our 12 node file system that is  
>>> giving us some problems. A /bin/ls and pvfs2-ls both return the  
>>> correct file listing, but adding a -l option to both of those  
>>> return with ENOENT "No such file or directory". All of the  
>>> utilities that do a getattr on the file fail. One of the twelve  
>>> servers is reporting this error:
>>>
>>> PVFS2: [E] TROVE:DBPF:Berkeley DB: DB->get: DB_NOTFOUND: No  
>>> matching key/data pair found
>>>
>>> How do we go about removing this file so that we can recreate it?  
>>> We cannot run an fsck on the entire file system, so we need a way  
>>> to remove just this file.
>>>
>>>
>>> Thanks,
>>> Bart.
>>> _______________________________________________
>>> Pvfs2-developers mailing list
>>> [email protected]
>>> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>> _______________________________________________
>> Pvfs2-developers mailing list
>> [email protected]
>> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>
> _______________________________________________
> Pvfs2-developers mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to