<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <b>1. Feature<br>
        <br>
      </b>LVM support in prl_disk_tool<br>
      <br>
      <b>2. Description</b><br>
      <br>
      The <i>prl_disk_too</i><i>l</i> utility now can resize/compact
      images containing LVM.<br>
      <br>
      <i>prl_disk_tool resize --resize_partition</i> now expands/shrinks
      partition, PV, LV and filesystem on last partition.<br>
      The chosen LV is one which segment is the last in PV layout (e.g.
      displayed by <i>pvresize -m</i>).<br>
      LVM on logical partitions is also supported.<br>
      <br>
      As before, you will need <br>
      <i>libguestfs-winsupport</i> for last ntfs partition/LV<br>
      <i>libguestfs-xfs </i>for last xfs partition/LV<br>
      <i>btrfs-progs </i>for last btrfs partition/LV<br>
      <br>
      To get the lvm information, we parse the output of <i>vgcfgbackup</i><i>
      </i>(run using libguestfs: guestfs_vgmeta)<br>
      using our script <i>/usr/share/prl-disk-tool/lvm_parser.py<br>
        <br>
      </i>Other work is performed using standard lvm utilities using
      libguestfs (<i>pvresize, lvresize</i>).<br>
      LVM metadata size is estimated as 14336s (usually 512b -&gt; 7168K
      = 7M) - taken from previous version.<br>
      <br>
      <b>3. Products</b><br>
      <br>
      Virtuozzo 7<br>
      <br>
      Packages:<b><br>
      </b>
      <ul>
        <li>prl-disk-tool &gt;= 7.0.15</li>
        <li>libguestfs &gt;= 1.32.1</li>
        <li> btrfs-progs &gt;= 4.2 (optional)<br>
        </li>
        <li>libguestfs-winsupport &gt;= 7.2.1 (optional)<br>
        </li>
        <li>libguestfs-xfs (in dependencies)<br>
        </li>
        <li>qemu-img &gt;= 1.5.3-86</li>
      </ul>
      <b>4. Testing</b><br>
      <br>
      Need to test the following cases:<i><br>
      </i>
      <ul>
        <li><i>resize --resize_partition</i> works for all supported
          filesystems (except ntfs - hopefully it is not the case) and
          MBR/GPT when last partition contains LVM PV</li>
        <li>resize --info displays minimum size for LVM last partition
          (may be not minimum possible, see known issues)</li>
        <li><i>compact [--info] </i>works for LVM-containing images<br>
        </li>
      </ul>
      <p><b>5. Known issues<br>
        </b></p>
      Due to metadata estimation of 7M the minimum size displayed by <i>resize

        --info </i>may be not minimum possible <br>
      (i.e. there may be one empty extent in the end of PV if metadata
      is smaller than 3M and extent size is 4M)<br>
      <p><span id="OLK_SRC_BODY_SECTION"> </span></p>
      <pre class="moz-signature" cols="72">-- 
Your sincerely,
Maxim Perevedentsev</pre>
      <br>
    </div>
    <br>
  </body>
</html>