<div dir="ltr">dog has a command " dog node md plug & unplug. "<br><div class="gmail_extra"><br></div><div class="gmail_extra">When sheep found a store path unreachable, sheep could do some work like "dog node md unplug" to solve this problem, no need to execute by system administrator .</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-10 21:41 GMT+08:00 徐舫 <span dir="ltr"><<a href="mailto:xufango@gmail.com" target="_blank">xufango@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">We are doing a test simulating disk fail. The test step is described as follows:</span><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
<br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">1. start sheep on each node like this<span style="text-align:-webkit-auto">:</span></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
<br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">sheep -n /home/admin/sheepdogmetadata/,/disk1/sheepdogstoredata/,/disk2/sheepdogstoredata/,/disk3/sheepdogstoredata/,/disk4/sheepdogstoredata/,/disk5/sheepdogstoredata/,/disk6/sheepdogstoredata/,/disk7/sheepdogstoredata/,/disk8/sheepdogstoredata/,/disk9/sheepdogstoredata/ -b 0.0.0.0 -y *.*.*.* -c zookeeper:*.*.*.*:2181</div>
<div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
2. umount a disk on a node:</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
sudo umount /disk5</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div>
<div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">3. then sheep.log on this node output:</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
<br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">Jun 10 20:55:37 ERROR [io 122878] err_to_sderr(96) /disk5/sheepdogstoredata corrupted<br>
Jun 10 20:55:37 ERROR [io 122878] err_to_sderr(96) /disk5/sheepdogstoredata corrupted<br>
Jun 10 20:55:37 ERROR [io 122871] err_to_sderr(96) /disk5/sheepdogstoredata corrupted<br>
Jun 10 20:55:37 ERROR [io 122702] err_to_sderr(96) /disk5/sheepdogstoredata corrupted</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
The log is growing fast, and may fill the log disk.</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
--------------------------------------------------------------------------------------------------------------------------------</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
<br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">Should sheep panic and exit when the store path does not exist? </div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
<br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">If sheep on this node does not exit, all vms on other nodes want to read or write on this store path may hang.</div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">
<br></div><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">Do you agree with this?</div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>
<br></div>-- <br>Xu Fang<br><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Xu Fang<br>School of Computer Science and Engineering, Beihang University<br>State Key Laboratory of Virtual Reality Technology and Systems,<br>Beijing,P.R.China<br>
Address: <br> Beihang University<br> Room727, NewMain Building, <br> No. 35 Xueyuan Road, Haidian Distric, <br> Beijing,P.R.China,100191<br>
</div></div>