glyustb / mogilefs

Automatically exported from code.google.com/p/mogilefs
0 stars 0 forks source link

[Question][One of the storage is broken physically] #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a question regarding replication policy.

Last week, one of our storage servers has been badly broken.

Therefore, we make the storage server down and we request for fixing the 
storage server.

Then, if we wait for 1 or 2 weeks, is the mogilefs auto-replicate the files?

We have two copy of the data.

So, I guess mogilefs should replicate missing data from one to other.

If you need more information regarding this issue, please let us know.

Reagards,

Original issue reported on code.google.com by masao.so...@gmail.com on 27 Oct 2014 at 2:03

GoogleCodeExporter commented 9 years ago
If you do not mark the devices on the storage server dead, it will not fix 
replication:

https://code.google.com/p/mogilefs/wiki/Maintenance#Re-Replicating_Files

you have to mark the drives on the host as dead, if you want to avoid the 
broken server.

Original comment by dorma...@rydia.net on 27 Oct 2014 at 2:07

GoogleCodeExporter commented 9 years ago
Thank you very much for your quick reply.

I really appreciate it.

Here we did only down.

So, I thought it will automatically replicate the file from one to the other.

Am I wrong?

I am sorry for asking you a lot of questions.

This is because we have to think of whether we might need to make new storage 
server from broken storage and set up new host and its device again, or we can 
use that broken server that has no data as soon as it is fixed.

But, it seems we better make the broken storage server as dead and replace it 
to new one.

Could you give me some comments?

Best regards,

Original comment by masao.so...@gmail.com on 27 Oct 2014 at 2:29

GoogleCodeExporter commented 9 years ago
again, it will only re-replicate if you mark them as *dead*. the wiki pages 
explain this as well.

if your broken server will take a long time to repair, it might be better to 
mark them as dead. When the new server is up, add the new drives under new 
numbers. Then use rebalance to copy data into it.

Original comment by dorma...@rydia.net on 27 Oct 2014 at 2:32

GoogleCodeExporter commented 9 years ago
Dear sir,

Thank you very much for your comments.

Sorry for asking the same question.

Well, we will make it as dead.

Thanks,

Original comment by masao.so...@gmail.com on 27 Oct 2014 at 2:49