<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-17 16:23 GMT+02:00 Liu Yuan <span dir="ltr"><<a href="mailto:namei.unix@gmail.com" target="_blank">namei.unix@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
- if disks are unplugged by io error, we should reweight automatically.<br></blockquote><div><br></div><div>Yes, this has to be done.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- if disks are plugged/unplugged by users, we don't do auto-reweight.<br></blockquote><div><br></div><div>I also have another idea about it, but I'll discuss it on a new topic. <br></div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">
<br>
</div>Try to pass '--strict' option to sheep daemon. It tell the cluster to stop the<br>
service if nodes number is less than required redundancy policy.<br></blockquote><div><br></div><div>I may try but I don't think it's going to work because, as you say, <br>"...if node number is less..."<br>
not<br>"...if lost devices number is equal or greater than redundancy policy".<br><br></div><div>Keep my cluster with -c 2 as an example.<br></div><div>If 2 hosts were going down at the same time...what was going to happen? (Option --strict was not used)<br>
If 2 devices were going down at the same time (as it happened)...does sheepdog react in the same way?<br></div><div>In both cases we don't have enough objects.<br></div><div><br></div><div>Generalizing, the problem is not solved using -c 3, it's just more unlike to happen.<br>
<br></div><div>Obviously, it doesn't matter if I loose 1,2,3 or all devices on a single host at the same time.<br></div><div>It's very different if it happens on more hosts.<br><br></div><div>(Sorry if I repeat the same concept in different ways).<br>
<br></div><div><br><br></div><div><br></div><div><br></div></div></div></div>