[chord] How to insert a directory in CHORD?

Bin YANG yangbinisme82 at gmail.com
Fri Aug 3 02:55:02 EDT 2007


Hi,

After many times of make, I build chord successfully. But it still has
some errors when I insert a directory.

I install the chord on two PCs. The one is ubuntu 7.04, the other is
CentOS 4.5(Redhat). Both can use the filestore to save and fetch a
file, but cannot use the filestore or sfsrodb to insert a file system
or a directory.

Insert a file successfully:
1. start the chord in a terminal:
# lsd/start-dhash --root /home/yangbin/CFS/dhash-2 --bindir
/home/yangbin/chord/2build/chord -j 10.11.3.25:10053 -p 10053 -S
/tmp/chord-sock -v 16
2. use filestore in another terminal:
# devel/filestore /tmp/chord-sock -s /home/yangbin/CFS/a.txt 1
3. I can retrieval the file a.txt successfully:
# devel/filestore /tmp/chord-sock -l 24c1a4b60b75a11e37bf39c9ce407ff7a7914c04 1
The retrieved file is still at /home/yangbin/CFS/a.txt

And then, I want to insert a directory using by filestore, but failed:
yangbin at yangbin:~/CFS$ ~/chord/2build/chord/devel/filestore
/tmp/chord-sock -s /home/yangbin/CFS/export/ 1
len 0 inflight 0
len 20
p
len 280
75a7713bc5a6623918d50c9c96ef419f367da967
yangbin at yangbin:~/CFS$ ~/chord/2build/chord/devel/filestore
/tmp/chord-sock -f 75a7713bc5a6623918d50c9c96ef419f367da967 1
retrieve 75a7713bc5a6623918d50c9c96ef419f367da967
fatal: can't open file for writing

It seems that there is the /home/yangbin/CFS/export/ already. After I
delete the directory, use the sudo(ubuntu) and root (centOS). It still
has the fatal error.

At last, I use sfsrodb to insert a file system according to HowTo Building CFS.
A terminal:
# lsd/start-dhash --root /home/yangbin/CFS/dhash-2 --bindir
/home/yangbin/chord/2build/chord -j 10.11.3.25:10053 -p 10053 -S
/tmp/chord-sock -v 16

The other terminal:
# /home/yangbin/chord/2build/chord/sfsrodb/sfsrodb -s key_file -d export/
sfsrodb: 0, sec/1k 0
sfsrodb: Database good from:
 Fri Aug  3 14:46:56 2007
until:
 Sat Aug  4 14:46:56 2007
sfsrodb: exported file system under 7c7abfff8ccab2548ae0c65f30b759663c19af7d
sfsrodb: dhashclient::insert failed (2):
7c7abfff8ccab2548ae0c65f30b759663c19af7d: DHASH_ERR
sfsrodb: Could not store block 7c7abfff8ccab2548ae0c65f30b759663c19af7d

And I still find the error message in log.lsd:
1186123616.987046 dhashcli: fragment/block store ok:
deed7251817bbb91041a06078fad8a563e963e7f fragment 0/14 at
fcc8603e5b9e7150db0cacde7b8fdc239f29708d
1186123616.989313 dhashcli: fragment/block store ok:
4fe99aab69afb6ff0164f22f25569d2e86d254a3 fragment 12/14 at
2befebb8f10066f81639dcae00dbae7f291119d7
1186123616.991793 dhashcli: fragment/block store ok:
deed7251817bbb91041a06078fad8a563e963e7f fragment 3/14 at
2befebb8f10066f81639dcae00dbae7f291119d7
1186123617.001264 dhashcli: fragment/block store failed:
7c7abfff8ccab2548ae0c65f30b759663c19af7d fragment 0/5: DHASH_STALE
1186123617.001496 dhashcli: fragment/block store failed:
7c7abfff8ccab2548ae0c65f30b759663c19af7d fragment 3/5: DHASH_RETRY
1186123617.002005 dhashcli: fragment/block store failed:
7c7abfff8ccab2548ae0c65f30b759663c19af7d fragment 4/5: DHASH_RETRY
1186123617.009706 dhashcli: fragment/block store failed:
7c7abfff8ccab2548ae0c65f30b759663c19af7d fragment 1/5: DHASH_RETRY
1186123617.033897 dhashcli: fragment/block store failed:
7c7abfff8ccab2548ae0c65f30b759663c19af7d fragment 2/5: DHASH_RETRY
1186123617.033975 dhashcli: 7e1333ccb2607f7d75cc729017de71ff14fb9707:
store (7c7abfff8ccab2548ae0c65f30b759663c19af7d): only stored 0 of 5
encoded.
1186123617.034009 dhashcli: 7e1333ccb2607f7d75cc729017de71ff14fb9707:
store (7c7abfff8ccab2548ae0c65f30b759663c19af7d): failed; insufficient
frags/blocks stored.

The sfsrodb still cannot insert a directroy. The log.lsd maybe inform
me that there is not enough space of disk(It said insufficient
frags/blocks stored.). I check this, the ubuntu machine has 7G, the
CentOS has 2.5G. (The two PC has a windows partition.)

My question is how to insert a directory or a file system in chord or CFS?

Thanks.

Bin YANG
-- 
Bin YANG
Department of Computer Science and Engineering
Fudan University
Shanghai, P. R. China
EMail: yangbinisme82 at gmail.com



More information about the chord mailing list