<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/3 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:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I can't reproduce the problem.<br></blockquote><div><br></div><div>Stange. I can reproduce it.<br></div><div>I stopped the cluster and checked that<br></div><div>  lsof /mnt/sdb2<br></div><div>was giving no output.<br>
<br></div><div>Then I restarted the cluster using md and repeated the procedure<br><br>root@test007:~# collie cluster shutdown<br>root@test007:~# lsof /mnt/sdb2/<br>root@test007:~# sheep /mnt/sheepdog/,/mnt/sheepdog/obj,/mnt/sdb2<br>
root@test007:~# lsof /mnt/sdb2/<br>COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME<br>sheep   3238 root   21u   REG   8,18  4198968 4129246 /mnt/sdb2/80257c8a00000000<br><br>root@test007:~# ps aux | grep sheepdog<br>
root      3238  0.1  2.1 130372 42264 ?        Sl   16:58   0:00 sheep /mnt/sheepdog/ /mnt/sheepdog/obj,/mnt/sdb2<br>root      3239  0.0  0.0  83408   472 ?        Ss   16:58   0:00 sheep /mnt/sheepdog/ /mnt/sheepdog/obj,/mnt/sdb2<br>
root      3258  0.0  0.0   7848   840 pts/1    S+   17:00   0:00 grep sheepdog<br><br>root@test007:~# collie node md unplug /mnt/sdb2/<br><br>root@test007:~# lsof /mnt/sdb2<br>COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME<br>
sheep   3238 root   21u   REG   8,18  4198968 4129246 /mnt/sdb2/80257c8a00000000<br><br>root@test007:~# umount /mnt/sdb2 <br>umount: /mnt/sdb2: device is busy.<br>        (In some cases useful info about processes that use<br>
         the device is found by lsof(8) or fuser(1))<br><br>root@test007:~# collie node md info<br>Id      Size    Use     Path<br> 0      193 GB  6.9 GB  /mnt/sheepdog/obj <br></div></div><br><br><br></div><div class="gmail_extra">
Also on the other node that has a second disk<br><br>root@test004:~# lsof /mnt/sdb1/<br>COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME<br>sheep   3510 root   18u   REG   8,17  4198968  173 /mnt/sdb1/80a34c6700000000<br>
<br>root@test004:~# collie node md unplug /mnt/sdb1<br><br>root@test004:~# lsof /mnt/sdb1<br>COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME<br>sheep   3510 root   18u   REG   8,17  4198968  173 /mnt/sdb1/80a34c6700000000<br>
<br>root@test004:~# umount /mnt/sdb1 <br>umount: /mnt/sdb1: device is busy.<br>        (In some cases useful info about processes that use<br>         the device is found by lsof(8) or fuser(1))<br><br></div></div>