- 论坛徽章:
- 0
|
正在研究kfs文件系统,目前遇到一个问题:使用cptokfs将本地文件拷贝到kfs上后,文件变成了空文件,研究了下,但不知道问题出在哪儿了,大家遇到过这个问题吗,如何解决的? 谢谢:)\r\n\r\n执行情况:\r\n在metaserver上运行\r\ncptokfs -s localhost -p 20000 -d /home/wangl/libuuid.a -k / -v\r\n\r\n命令打出日志:\r\n09-09-2009 14:25:13.479 DEBUG - (KfsClient.cc:1079) Size of / is 0\r\n09-09-2009 14:25:13.479 DEBUG - (KfsClient.cc:1079) Size of / is 0\r\n09-09-2009 14:25:13.479 DEBUG - (KfsClient.cc:2678) file-id for dir: / (file = libuuid.a) is 2\r\n09-09-2009 14:25:13.479 DEBUG - (KfsClient.cc:2678) file-id for dir: / (file = libuuid.a) is 2\r\nConnect: : Connection refused\r\n09-09-2009 14:25:13.484 INFO - (KfsClient.cc:1635) Unable to connect to 127.0.0.1 30000, retrying allocation\r\n09-09-2009 14:25:13.484 INFO - (KfsClient.cc:1635) Unable to connect to 127.0.0.1 30000, retrying allocation\r\nConnect: : Connection refused\r\n09-09-2009 14:25:18.484 INFO - (KfsClient.cc:1635) Unable to connect to 127.0.0.1 30000, retrying allocation\r\n09-09-2009 14:25:18.484 INFO - (KfsClient.cc:1635) Unable to connect to 127.0.0.1 30000, retrying allocation\r\nConnect: : Connection refused\r\n09-09-2009 14:25:23.484 INFO - (KfsClient.cc:1635) Unable to connect to 127.0.0.1 30000, retrying allocation\r\n09-09-2009 14:25:23.484 INFO - (KfsClient.cc:1635) Unable to connect to 127.0.0.1 30000, retrying allocation\r\n09-09-2009 14:25:23.485 DEBUG - (KfsWrite.cc:149) ----Write done: asked: 59888, got: 4294967307-----\r\n09-09-2009 14:25:23.485 DEBUG - (KfsWrite.cc:149) ----Write done: asked: 59888, got: 4294967307-----\r\n09-09-2009 14:25:23.485 DEBUG - (KfsClient.cc:1359) Closing filetable entry: 1\r\n09-09-2009 14:25:23.485 DEBUG - (KfsClient.cc:1359) Closing filetable entry: 1\r\n09-09-2009 14:25:23.485 DEBUG - (KfsClient.cc:2574) Closing filetable entry: 1, openmode = 2, path = /libuuid.a\r\n09-09-2009 14:25:23.485 DEBUG - (KfsClient.cc:2574) Closing filetable entry: 1, openmode = 2, path = /libuuid.a\r\n\r\n不知道它为什么要去连本机的30000端口,它只是metaserver,没有设置成chunkserver。\r\n\r\nmetaserver.log日志:\r\n09-09-2009 14:25:13.478 DEBUG - (ClientSM.cc:227) Got command: lookup: name = / (parent fid = 2) \r\n09-09-2009 14:25:13.480 DEBUG - (ClientSM.cc:227) Got command: create: name = libuuid.a (parent fid = 2) desired replication\r\n= 3\r\n09-09-2009 14:25:13.480 INFO - (ClientSM.cc:88) Client = 192.168.8.169, Command create: name = libuuid.a (parent fid = 2) des\r\nired replication = 3, Status: 0\r\n09-09-2009 14:25:13.481 DEBUG - (ClientSM.cc:227) Got command: allocate: path = /libuuid.a fid = 12 offset = 0\r\n09-09-2009 14:25:13.481 INFO - (ClientSM.cc:230) Got allocate: allocate: path = /libuuid.a fid = 12 offset = 0\r\n09-09-2009 14:25:13.481 DEBUG - (request.cc:647) Starting layout for req:2\r\n09-09-2009 14:25:13.483 DEBUG - (request.cc:685) Layout is done for req:2\r\n09-09-2009 14:25:13.483 DEBUG - (ClientSM.cc:83) Client = 192.168.8.169, Allocate: alloc: 10 1 127.0.0.1 30000 \r\n09-09-2009 14:25:13.483 INFO - (ClientSM.cc:88) Client = 192.168.8.169, Command allocate: path = /libuuid.a fid = 12 offset = 0, Status: 0\r\n09-09-2009 14:25:18.483 DEBUG - (ClientSM.cc:227) Got command: allocate: path = /libuuid.a fid = 12 offset = 0\r\n09-09-2009 14:25:18.483 INFO - (ClientSM.cc:230) Got allocate: allocate: path = /libuuid.a fid = 12 offset = 0\r\n09-09-2009 14:25:18.483 DEBUG - (request.cc:647) Starting layout for req:3\r\n09-09-2009 14:25:18.483 INFO - (LayoutManager.cc:925) Valid write lease exists for 10 (expires = Wed Sep 9 14:30:13 2009)\r\n09-09-2009 14:25:18.483 DEBUG - (request.cc:668) Got valid lease for req:3\r\n09-09-2009 14:25:18.483 DEBUG - (ClientSM.cc:83) Client = 192.168.8.169, Allocate: alloc: 10 1 127.0.0.1 30000\r\n09-09-2009 14:25:18.483 INFO - (ClientSM.cc:88) Client = 192.168.8.169, Command allocate: path = /libuuid.a fid = 12 offset = 0, Status: 0 \r\n09-09-2009 14:25:23.483 DEBUG - (ClientSM.cc:227) Got command: allocate: path = /libuuid.a fid = 12 offset = 0\r\n09-09-2009 14:25:23.483 INFO - (ClientSM.cc:230) Got allocate: allocate: path = /libuuid.a fid = 12 offset = 0\r\n09-09-2009 14:25:23.483 DEBUG - (request.cc:647) Starting layout for req:4\r\n09-09-2009 14:25:23.484 INFO - (LayoutManager.cc:925) Valid write lease exists for 10 (expires = Wed Sep 9 14:30:13 2009)\r\n09-09-2009 14:25:23.484 DEBUG - (request.cc:668) Got valid lease for req:4 \r\n09-09-2009 14:25:23.484 DEBUG - (ClientSM.cc:83) Client = 192.168.8.169, Allocate: alloc: 10 1 127.0.0.1 30000\r\n09-09-2009 14:25:23.484 INFO - (ClientSM.cc:88) Client = 192.168.8.169, Command allocate: path = /libuuid.a fid = 12 offset = 0, Status: 0 \r\n09-09-2009 14:25:23.485 DEBUG - (NetConnection.cc:56) Read 0 bytes...connection dropped |
|