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

Reply via email to