<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Anyone please ?<br>
    </p>
    <div class="moz-cite-prefix">Le 08/12/2022 à 23:13, Jérôme BECOT a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:f32132a0-becd-9120-f6cf-34a95fc22124@deveryware.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hello Openstack,</p>
      <p>We have Ussuri deployed on a few clouds, and they're all
        plugged to PureStorage Arrays. We allow users to only use
        volumes for their servers. It means that each server disk is a
        LUN attached over ISCSI (with multipath) on the compute node
        hosting the server. Everything works quite fine, but we have a
        weird issue when extending volumes attached to running
        instances. The guests notice the new disk size .. of the last
        extent.</p>
      <p>Say I have a server with a 10gb disk. I add 5gb. On the guest,
        still 10gb. I add another 5gb, and on the guest I get 15, and so
        on. I've turned the debug mode on and I could see no error in
        the log. Looking closer at the log I could catch the culprit:</p>
      <p>2022-12-08 17:35:13.998 46195 DEBUG
        os_brick.initiator.linuxscsi [] Starting size: <b>76235669504</b><br>
        2022-12-08 17:35:14.028 46195 DEBUG os_brick.initiator.linuxscsi
        [] volume size after scsi device rescan <b>80530636800</b>
        extend_volume<br>
        2022-12-08 17:35:14.035 46195 DEBUG os_brick.initiator.linuxscsi
        [] Volume device info = {'device':
'/dev/disk/by-path/ip-1...1:3260-iscsi-iqn.2010-06.com.purestorage:flasharray.x-lun-10',
        'host': '5', 'channel': '0', 'id': '0', 'lun': '10'}
        extend_volume<br>
        2022-12-08 17:35:14.348 46195 INFO os_brick.initiator.linuxscsi
        [] Find Multipath device file for volume WWN 3624...<br>
        2022-12-08 17:35:14.349 46195 DEBUG os_brick.initiator.linuxscsi
        [] Checking to see if /dev/disk/by-id/dm-uuid-mpath-3624..
        exists yet. wait_for_path<br>
        2022-12-08 17:35:14.349 46195 DEBUG os_brick.initiator.linuxscsi
        [] /dev/disk/by-id/dm-uuid-mpath-3624... has shown up.
        wait_for_path<br>
        2022-12-08 17:35:14.382 46195 INFO os_brick.initiator.linuxscsi
        [] mpath(/dev/disk/by-id/dm-uuid-mpath-3624) <b>current size
          76235669504</b><br>
        2022-12-08 17:35:14.412 46195 INFO os_brick.initiator.linuxscsi
        [] mpath(/dev/disk/by-id/dm-uuid-mpath-3624) <b>new size
          76235669504</b><br>
        2022-12-08 17:35:14.413 46195 DEBUG oslo_concurrency.lockutils
        [] Lock "extend_volume" released by
        "os_brick.initiator.connectors.iscsi.ISCSIConnector.extend_volume"
        :: held 2.062s inner 2022-12-08 17:35:14.459 46195 DEBUG
        os_brick.initiator.connectors.iscsi [] <== extend_volume:
        return (2217ms) <b>76235669504</b> trace_logging_wrapper<br>
        2022-12-08 17:35:14.461 46195 DEBUG
        nova.virt.libvirt.volume.iscsi [] Extend iSCSI Volume
        /dev/dm-28; new_size=<b>76235669504</b> extend_volume <br>
        2022-12-08 17:35:14.462 46195 DEBUG nova.virt.libvirt.driver []
        Resizing target device /dev/dm-28 to <b>76235669504</b>
        _resize_attached_volume <br>
        <br>
      </p>
      <p>The logs clearly shows that the rescan confirm the new size but
        when interrogating multipath, it does not. But requesting
        multipath few seconds after on the command line shows the new
        size as well. It explains the behaviour.<br>
      </p>
      <p>I'm running Ubuntu 18.04 with multipath 0.7.4-2ubuntu3.2. The
        os-brick code for multipath is far more basic than the one in
        master branch. Maybe the multipath version installed is too
        recent for os-brick.</p>
      <p>Thanks for the help</p>
      <p>Jerome<br>
      </p>
      <p><br>
      </p>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <div class="moz-signature"><b><span style="color:#002060">Jérôme
            BECOT</span></b> <span style="color:#002060"></span><br>
        <span style="color:#002060">Ingénieur DevOps Infrastructure </span><br>
        <br>
        <span style="color:#002060">Téléphone fixe: </span> <span
          style="color:#002060;mso-fareast-language:FR">01 82 28 37 06</span><br>
        <span style="color:#002060">Mobile : +33 757 173 193</span><br>
        <span style="color:#002060">Deveryware - 43 rue Taitbout - 75009
          PARIS</span><br>
        <a moz-do-not-send="true" href="https://www.deveryware.com"> <span
            style="color:#002060"><span tyle="color:#002060">
              https://www.deveryware.com</span></span></a></div>
      <div class="moz-signature"> <span
          style="color:#002060;mso-fareast-language:FR"></span><br>
        <img moz-do-not-send="false"
          src="cid:part1.vECTIo69.tEcBgy6I@deveryware.com"
          alt="Deveryware_Logo" width="402" height="107"><br>
        <a href="https://www.deveryware.com"> <span
style="font-size:10.0pt;color:#08638F;mso-fareast-language:FR;text-decoration:none"></span></a></div>
    </div>
  </body>
</html>