[Pvfs2-developers] db tools

Sam Lang slang at mcs.anl.gov
Thu Feb 8 16:54:35 EST 2007


I've attached three tools that might be useful for debugging metadata  
corruption.  They're probably fairly raw, I've only used them for my  
own purposes mostly, so they haven't gotten much testing.  Let me  
know what you think.  These work directly on the storage space.   
pvfs2-cleanup runs through each dspace entry, checks its type,  
verifies that it has appropriate attributes, and that its associated  
keyval entries in the keyval db are valid.  It only runs on one local  
storage space though, so it doesn't check validity of directory  
entries (as the pvfs2-validate does).  pvfs2-dump-all iterates  
through each dspace entry and prints the attrs and keyvals associated  
with each handle.  Its rather verbose, but helpful in finding  
corruption in the db somewhere.  pvfs2-dump-object dumps the handle  
specified on the command line.   All of these tools operate directly  
on the dbs, so they don't require a PVFS install.  Updates to dbpf  
with different storage formats or changes to the DB interfaces will  
have to be fixed individually in these tools as well.  In CVS, we  
have a showcoll and migrate-collection as tools in apps/admin/ that  
work directly on the storage spaces.  If these other tools seem  
useful we could have a separate directory that works on storage  
spaces, to keep stuff independent from the client tools.

-sam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvfs2-cleanup.c
Type: application/octet-stream
Size: 23156 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20070208/cce36816/pvfs2-cleanup-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvfs2-dump-all.c
Type: application/octet-stream
Size: 8600 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20070208/cce36816/pvfs2-dump-all-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvfs2-dump-object.c
Type: application/octet-stream
Size: 7489 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20070208/cce36816/pvfs2-dump-object-0001.obj


More information about the Pvfs2-developers mailing list