Feature request regarding size and min_size on pools
A message that is not in the archive (sent off-list or not yet received): 1712504592.851.1378813557601.JavaMail.root@mail
Hello,
We are implementing ceph as storage backend for some systems. Unfortunately we have to use a posix filesystem for storing the data.
To accomplish this we have implemented a solution quite similar to what Sebastien Han has described on his blog here http://www.sebastien-han.fr/blog/2012/07/06/nfs-over-rbd/
Now to our problem. We want to be sure that a write is replicated before we get a ack. Therefor we have set pg size to 2, and min_size to 2 as we have seen that a sudden removal of one osd can lead to data loss with min_size set to 1.
The problem now is that if one osd goes down some pg's will end up incomplete, and no io operations will be allowed to the rbd.
This problem could be solved a couple of ways
1) An option could be set so that writes always is done to the number of replicas as size before the write is acknowledged.
2) If a situation where one a pg ends up in a incomplete state ceph tries to resolv the situation by doing a recovery of the pg's in question.
For us adding a third replica isn't a feasible solution, 1) we have our data in two locations 2) The cost would be to high.
Hi,
Quoted 1 line
Now to our problem. We want to be sure that a write is replicated before we get a ack.
That should be the case AFAIU.
There was however a bug that was recently fixed that make RBD ack too early.
Quoted 1 line
one osd can lead to data loss with
min_sizeset to 1.
It definitely shouldn't. Unless of course the only remaining OSD fails as well.
Quoted 1 line
The problem now is that if one osd goes down some pg's will end up incomplete, and no io operations will be allowed to the rbd.
Well yeah, that's exactly the semantic of the min_size option ...
Cheers,
Sylvain