Phil and list,

Here is what I learned from my pvfs2-cp failure. It turned
out that I did not install my Berkeley DB which I thought
I did. 

I found that without Berkeley DB, pvfs2.8.1 deamon can 
still be installed, be configured and be run partially 
(only pvfs2-cp and pvfs2-touch failed). For me, that makes
debugging difficult because there is no reminder for missing 
a DB in the verbose message.Correct me if I was wrong.

But after I installed the DB 4.3, pvfs2.8.1-ping gave me a new failure:

(1) Parsing tab file...

(2) Initializing system interface...

(3) Initializing each file system found in tab file: 
/home/bhuang2/research/pvfs/swfs/pvfs2/pvfs2-build/pvfs2tab...

   PVFS2 servers: tcp://rsass-homer:3334
   Storage name: pvfs2-fs
   Local mount point: /mnt/pvfs2
[E 10:53:34.815650] Error: poorly formatted protocol message received.
[E 10:53:34.815763]    Protocol version mismatch: received major version 5 when 
expecting 6.
[E 10:53:34.815778]    Please verify your PVFS2 installation
[E 10:53:34.815790]    and make sure that the version is consistent.
[E 10:53:34.815813] msgpairarray decode error: Protocol not supported
   /mnt/pvfs2: FAILURE!

Failure: could not initialze at least one of the target file systems.

(4) Searching for /mnt/pvfs2 in pvfstab...
[E 10:53:34.815869] Error: /mnt/pvfs2/ resides on a PVFS2 file system that has 
not yet been initialized.
Failure: could not find filesystem for /mnt/pvfs2 in pvfs2tab 
/home/bhuang2/pvfs2-build/pvfs2tab
Entry 0: /mnt/pvfs2

I have tried this patch by kevin but that does not help:
http://www.pvfs.org/fisheye/rdiff/PVFS?csid=MAIN:slang:20090306220603&u&N

Maybe I will switch back to the stable pvfs2.7.1.

Thanks for all your helping.

Ben


-----Original Message-----
From: Phil Carns [mailto:[email protected]]
Sent: Fri 10/2/2009 9:43
To: Huang, Bin
Cc: [email protected]
Subject: Re: [Pvfs2-users] Some verbose logging from  pvfs2-cp failure
 
Hi Ben,

I actually don't see any problems in the log file that you posted.  The 
"CANNOT cache" messages are normal with verbose logging turned on. 
Those happen whenever PVFS encounters a metadata key that it isn't 
configured to cache by default.

Looking through the log for just error codes returned to the client, 
this is all that shows up:

grep error_code pvfs2-cp-fail.txt
[D 12/31 19:38] (s_op 0x1011cab8) getconfig (FR sm) state: release: 
(error_code = 0)
[D 12/31 19:38] (s_op 0x1011dc58) lookup_path (FR sm) state: release: 
(error_code = -1073742082)
[D 12/31 19:38] (s_op 0x1011edf8) getattr (FR sm) state: release: 
(error_code = 0)
[D 12/31 19:38] (s_op 0x1011ff98) create (FR sm) state: release: 
(error_code = 0)

This shows that pvfs2-cp did the following steps:

- got configuration info from the server
   (success)
- checked to see if the target file already existed
   1073742082 = "no such file or directory"
- retrieved attributes on the parent directory
   (success)
- created the target file
   (success)

All of that is normal from the server's perspective.  Is there anything 
else in the log after that?

You can also turn on logging for the pvfs2-cp executable itself by 
setting the PVFS2_DEBUGMASK environment variable (export 
PVFS2_DEBUGMASK=verbose) before running it.

-Phil

Huang, Bin wrote:
> Hi, list,
> 
> I ran into a pvfs2-cp failure several months ago and
> received lots of helps from the list. But I had
> to leave my pvfs2 problem unsolved since I was
> assigned to a new project at that time.
> 
> Now I have some time to attack this problem again. 
> (hate to see a project fail especially when there is
> a clear start guide). Here is my verbose logging
> from the following attempt:
> 
> "/usr/local/bin/pvfs2-cp -t /usr/lib/libc.a /mnt/pvfs2/testfile"
> 
> The logging is gonna be long but the crucial message
> I think is " CANNOT cache data retrieved (key is de)"
> Maybe my Berkely DB is not working correctly.
> 
> BTW, my pvfs2-touch also fails and I can show
> verbose message if needed.
> 
> I appreciate any thought and help from you.
> 
> Ben
> 
>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Pvfs2-users mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users


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

Reply via email to