Hi Sriram,
I tried to run without cluster key and the log file seems to be the same
05-06-2011 10:29:33.746 INFO - (ChunkServer_main.cc:313) Starting chunkserver...
05-06-2011 10:29:33.794 DEBUG - (ChunkServer_main.cc:374) md5sum calculated from binary: 0c0eb3e3e5aeb78799e66fd74eded0cb
05-06-2011 10:29:33.794 INFO - (ChunkServer_main.cc:321) md5sum to send to metaserver: 0c0eb3e3e5aeb78799e66fd74eded0cb
05-06-2011 10:29:33.804 DEBUG - (ChunkManager.cc:346) setting # of open files to: 1024
05-06-2011 10:29:33.806 DEBUG - (ChunkManager.cc:2533) Dir: /home/mine/kfsRun/chunk/bin/kfschunk has space 23291871232
05-06-2011 10:29:33.806 INFO - (ChunkServer.cc:105) gethostname returned: lab314pc13
05-06-2011 10:29:34.797 INFO - (ChunkManager.cc:2568) Checking chunkdirs...
05-06-2011 10:29:34.797 INFO - (MetaServerSM.cc:169) connecting to metaserver mistserv 20100
05-06-2011 10:29:34.798 DEBUG - (ChunkManager.cc:2533) Dir: /home/mine/kfsRun/chunk/bin/kfschunk has space 23291871232
05-06-2011 10:29:34.798 INFO - (MetaServerSM.cc:250) Sent hello to meta server: meta-hello:  mylocation = 172.31.18.15 40000cluster key:
05-06-2011 10:29:34.799 DEBUG - (MetaServerSM.cc:479) recv meta cmd: seq: 928410945073645376 meta-heartbeat:
05-06-2011 10:29:34.800 DEBUG - (ChunkManager.cc:2533) Dir: /home/mine/kfsRun/chunk/bin/kfschunk has space 23291871232
05-06-2011 10:29:34.800 FATAL - (MetaServerSM.cc:372) Aborting due to cluster key mismatch; our key:


The cluster key in meta is the same with the chunk:
#vi MetaServer.prp
metaServer.clientPort = 20000
metaServer.chunkServerPort = 20100
metaServer.clusterKey = lagoon-cluster
metaServer.cpDir = /home/mine/kfsRun/meta/bin/kfscp
metaServer.logDir = /home/mine/kfsRun/meta/bin/kfslog

TT

--- On Fri, 5/6/11, Sriram Rao <sriramsrao@gmail.com> wrote:

From: Sriram Rao <sriramsrao@gmail.com>
Subject: Re: [Kosmosfs-users] KFS on Centos and Ubuntu
To: "Tung Nguyen" <betaisao@yahoo.com>
Date: Friday, May 6, 2011, 12:24 AM


Can you run without the cluster key in the chunkserver config?  Also, what is the cluster key in the metaserver's config?

Sriram

On Thu, May 5, 2011 at 9:07 PM, Tung Nguyen <betaisao@yahoo.com> wrote:
Sriram,
I got the followings in the logs dir. I hope this helps. However, the cluster key of the chunkserver and metaserver are the same.

05-06-2011 00:00:55.822 INFO - (ChunkServer_main.cc:313) Starting chunkserver...
05-06-2011 00:00:55.870 DEBUG - (ChunkServer_main.cc:374) md5sum calculated from binary: 0c0eb3e3e5aeb78799e66fd74eded0cb
05-06-2011 00:00:55.870 INFO - (ChunkServer_main.cc:321) md5sum to send to metaserver: 0c0eb3e3e5aeb78799e66fd74eded0cb
05-06-2011 00:00:55.880 DEBUG - (ChunkManager.cc:346) setting # of open files to: 1024
05-06-2011 00:00:55.882 DEBUG - (ChunkManager.cc:2533) Dir: /home/mine/kfsRun/chunk/bin/kfschunk has space 23321182208
05-06-2011 00:00:55.882 INFO - (ChunkServer.cc:105) gethostname returned: lab314pc13
05-06-2011 00:00:56.872 INFO - (ChunkManager.cc:2568) Checking chunkdirs...
05-06-2011 00:00:56.872 INFO - (MetaServerSM.cc:169) connecting to metaserver mistserv 20100
05-06-2011 00:00:56.873 DEBUG - (ChunkManager.cc:2533) Dir: /home/mine/kfsRun/chunk/bin/kfschunk has space 23321182208
05-06-2011 00:00:56.873 INFO - (MetaServerSM.cc:250) Sent hello to meta server: meta-hello:  mylocation = 172.31.18.15 40000cluster key: lagoon-cluster
05-06-2011 00:00:56.874 DEBUG - (MetaServerSM.cc:479) recv meta cmd: seq: 3342547832013168917 meta-heartbeat:
05-06-2011 00:00:56.875 DEBUG - (ChunkManager.cc:2533) Dir: /home/mine/kfsRun/chunk/bin/kfschunk has space 23321182208
05-06-2011 00:00:56.875 FATAL - (MetaServerSM.cc:372) Aborting due to cluster key mismatch; our key: lagoon-cluster



TT

--- On Thu, 5/5/11, Sriram Rao <sriramsrao@gmail.com> wrote:

From: Sriram Rao <sriramsrao@gmail.com>
Subject: Re: [Kosmosfs-users] KFS on Centos and Ubuntu
To: "Tung Nguyen" <betaisao@yahoo.com>
Cc: kosmosfs-users@lists.sourceforge.net
Date: Thursday, May 5, 2011, 5:27 PM

Hi Tung,
 
Can you load the core into gdb and get me a backtrace?
 
Thanks.
 
Sriram

On Thu, May 5, 2011 at 9:35 AM, Tung Nguyen <betaisao@yahoo.com> wrote:
Hi,
I would like to install KFS on a cluster that has chunkservers running in Centos and metaserver running in Ubuntu (our gateway). 

I ran the kfssetup script to distribute binary to the chunkservers but I failed to start the system. I checked the kfsping and there's no chunkserver connecting to the metaserver.

I digged into the chunkserver (CentOS) and modified the kfsrun script to print out the errors. I got:
#scripts/kfsrun.sh -s -c -f bin/ChunkServer.prp
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Starting chunkserver...
bin/chunkserver: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

In Centos /lib or /lib64, I only found libcrypto.so.0.9.8e
so I created symbolic link from  libcrypto.so.0.9.8 to libcrypto.so.0.9.8e and ran it again. I got:
scripts/kfsrun.sh -s -c -f bin/ChunkServer.prp
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Starting chunkserver...
bin/chunkserver: /lib64/libcrypto.so.0.9.8: no version information available (required by bin/chunkserver)
bin/chunkserver: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by bin/chunkserver)

Issuing:  "#ldd -v /bin/sh I" had:
        libtermcap.so.2 => /lib64/libtermcap.so.2 (0x0000003c4fc00000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003c4f800000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003c4f000000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003c4ec00000)

        Version information:
        /bin/sh:
                libdl.so.2 (GLIBC_2.2.5) => /lib64/libdl.so.2
                libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
        /lib64/libtermcap.so.2:
                libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
        /lib64/libdl.so.2:
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
                libc.so.6 (GLIBC_PRIVATE) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
        /lib64/libc.so.6:
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2

Please let me know what can I do? I also tried to download, compile from source and ran the kfsrun script but I got a core dump
...
Total space = 31457280
cleanup on start = 0
Chunk server rack: 18
using cluster key = lagoon-cluster
chunkserver: /home/mine/kfs-0.5/src/cc/chunk/ChunkManager.cc:388: KFS::ChunkManager::~ChunkManager(): Assertion `mChunkTable.empty() && ! mChunkManagerTimeoutImpl' failed.
scripts/kfsrun.sh: line 25: 12193 Aborted                 (core dumped) build/bin/$server $config $SERVER_LOG_FILE

Thank you
TT

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Kosmosfs-users mailing list
Kosmosfs-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kosmosfs-users