From: Michał B. <mic...@ge...> - 2010-05-07 13:43:58
|
The idea is shown on the “About MooseFS” webpage http://www.moosefs.org/about-mfs.html Regarding creating copies during writing process – each of the chunkservers (apart from the last one) connects to the next one and while writing data to its own disk sends the data to the next chunkserver and later sends back the status of the operation. So the extra copies are created at the same moment of writing data. The code is here: mfschunkserver/csserv.c Regarding creating copies when increasing the “goal” parameter or when a copy is lost (e.g. because of disconnecting chunkserver), the master server tells one of chunkservers to send the data to another chunkserver. The code is here: mfschunkserver/replicator.c Kind regards Michał From: 崔慎杰 [mailto:cui...@si...] Sent: Thursday, May 06, 2010 5:13 PM To: moosefs-users Subject: [Moosefs-users] seeking code segment for mfs(about making copies) Hello! I'm a student of China. Now I'm studying distributing file system, my lib use the MFS as a sample to study. I know MFS is a fault tolerant file system, I want to know how MFS build copies on chunkservers.(just as a question of "make a copy just after a write action or wait a free time to make copies.") I have reading the code try to find out where the code about "making copies" but I can't find it out. If you can help me or tell me the localtion of that code segment, I'm really thankful. (My MFS edition is 1.6.11) Thanks! Cui Shenjie 5/6/2010 |