<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#CCCCCC">
    <div class="moz-cite-prefix">On 10/20/2014 08:58 AM, dmitry wrote:<br>
    </div>
    <blockquote cite="mid:0feb2a54dab6b01839dd83d5cbff185e@bti.secna.ru"
      type="cite">Adding -x parameter to umountiscsi.sh
      <br>
      <br>
      And try to restart service:
      <br>
      root@archive:~# /etc/init.d/open-iscsi restart
      <br>
      <br>
      Look on exerpt output(full report in attached file):
      <br>
      <br>
      Here (the cause of problem):
      <br>
      + [ -d /sys/devices/platform/host4/iscsi_host ]
      <br>
      + [ -d /sys/devices/platform/host4/session1/target4:0:0 ]
      <br>
      + sed s/.*block\///
      <br>
      + echo <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>sys/devices/platform/host4/session1/target*/*:*/block<span
          class="moz-txt-tag">/</span></i>*
      <br>
      + BLOCK_DEV=*
      <br>
    </blockquote>
    <br>
    I still think we do not need the patch.  Because...<br>
    <br>
                            BLOCK_DEV=`echo "$BLOCK_FILE" | sed
    's/.*block\///'`<br>
                            if [ "${BLOCK_DEV}" = "*" ];then<br>
                                    log_warning_msg "iSCSI target
    without block devices found"<br>
                                    continue<br>
                            fi<br>
    <br>
    Ideally you should have seen this warning message. But you are not
    seeing this message. Which may be that you are using an older or
    tampered version of the init script.<br>
    <br>
    <br>
    And the patch you provided is wrong. Because those block devices we
    are looping for are not directories.<br>
    <br>
    <br>
    <blockquote cite="mid:0feb2a54dab6b01839dd83d5cbff185e@bti.secna.ru"
      type="cite">+ awk /^\/dev\/*/ { print $2; }
      <br>
      + DOS_PARTITIONS=/
      <br>
      + umount /
      <br>
      umount: /: 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>
      + exit_status=1
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ritesh Raj Sarraf
RESEARCHUT - <a class="moz-txt-link-freetext" href="http://www.researchut.com">http://www.researchut.com</a>
"Necessity is the mother of invention."
</pre>
  </body>
</html>