<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Need to correct my statement from below:</div><div class="">It tries to get the root disk by label, that’s not working on ubuntu in combination with lvm. It might work if you put the root volume on a non lvm disk.</div><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">---</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Andreas Scheuring (andreas_s)</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<div><br class=""><div class="">On 27. Mar 2018, at 09:52, Andreas Scheuring <<a href="mailto:scheuran@linux.vnet.ibm.com" class="">scheuran@linux.vnet.ibm.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi, I recently did it like this:<div class=""><br class=""></div><div class=""><br class=""></div><div class="">For Ubuntu: Cherry picked: <a href="https://review.openstack.org/#/c/504588/" class="">https://review.openstack.org/#/c/504588/</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">export DIB_BLOCK_DEVICE_CONFIG='</div><div class="">  - local_loop:</div><div class="">      name: image0</div><div class="">      size: 3GB</div><div class=""><br class=""></div><div class="">  - partitioning:</div><div class="">      base: image0</div><div class="">      label: mbr</div><div class="">      partitions:</div><div class="">        - name: root</div><div class="">          flags: [ boot, primary ]</div><div class="">          size: 100%</div><div class="">  - lvm:</div><div class="">      name: lvm</div><div class="">      pvs:</div><div class="">        - name: pv</div><div class="">          options: ["--force"]</div><div class="">          base: root</div><div class=""><br class=""></div><div class="">      vgs:</div><div class="">        - name: vg</div><div class="">          base: ["pv"]</div><div class="">          options: ["--force"]</div><div class=""><br class=""></div><div class="">      lvs:</div><div class="">        - name: lv_root</div><div class="">          base: vg</div><div class="">          size: 1800M</div><div class=""><br class=""></div><div class="">        - name: lv_tmp</div><div class="">          base: vg</div><div class="">          size: 100M</div><div class=""><br class=""></div><div class="">        - name: lv_var</div><div class="">          base: vg</div><div class="">          size: 500M</div><div class=""><br class=""></div><div class="">        - name: lv_log</div><div class="">          base: vg</div><div class="">          size: 100M</div><div class=""><br class=""></div><div class="">        - name: lv_audit</div><div class="">          base: vg</div><div class="">          size: 100M</div><div class=""><br class=""></div><div class="">        - name: lv_home</div><div class="">          base: vg</div><div class="">          size: 200M</div><div class="">  - mkfs:</div><div class="">      name: root_fs</div><div class="">      base: lv_root</div><div class="">      label: cloudimage-root</div><div class="">      type: ext4</div><div class="">      mount:</div><div class="">        mount_point: /</div><div class="">        fstab:</div><div class="">          options: "defaults"</div><div class="">          fsck-passno: 1</div><div class=""><br class=""></div><div class="">'</div><div class=""><br class=""></div><div class=""># See <a href="https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1573982" class="">https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1573982</a></div><div class=""># See <a href="https://bugs.launchpad.net/diskimage-builder/+bug/1715686" class="">https://bugs.launchpad.net/diskimage-builder/+bug/1715686</a></div><div class=""># need to specify lvm2 module to include it into the ramdisk</div><div class="">disk-image-create -p lvm2 ubuntu-minimal</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""># -> During boot the kernel was still not able to find the root disk (identified along uuid)</div><div class=""># Executing the following command in the initramfs emergency shell made the volume appear for me</div><div class="">$ vgchange -ay</div><div class="">$ blkid</div><div class=""># /dev/vda1: UUID="O11hwE-0Efq-SwO7-Bko8-hVe6-jyOT-7UAiza" TYPE="LVM2_member" PARTUUID="7885c310-01"</div><div class=""># /dev/mapper/vg-lv_root: LABEL="cloudimage-root" UUID="bd6d2d2c-3ca6-4032-99fc-bf20e246e22a" TYPE=“ext4”</div></div><div class="">exit</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class="webkit-block-placeholder"></div><div class="">Maybe things are going more smoothly with other distros, or maybe things have been fixed in the meanwhile… Or I did something wrong…</div><div class=""><br class=""></div><div class="">Good luck!</div><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">---</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Andreas Scheuring (andreas_s)</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<div class=""><br class=""><div class="">On 26. Mar 2018, at 17:43, Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com" class="">ignaziocassano@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Hi all,<div dir="auto" class="">I read diskimage-builder  documentatio but is not clear for me how I can supply lvm configuration to the command. </div><div dir="auto" class="">Some yaml files are supplied but diskimage seems to expect json file.</div><div dir="auto" class="">Please, could anyone post an example? </div><div dir="auto" class="">Regards</div><div dir="auto" class="">Ignazio</div><div dir="auto" class=""><br class=""></div></div>
_______________________________________________<br class="">OpenStack-operators mailing list<br class=""><a href="mailto:OpenStack-operators@lists.openstack.org" class="">OpenStack-operators@lists.openstack.org</a><br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br class=""></div></div><br class=""></div></div>_______________________________________________<br class="">OpenStack-operators mailing list<br class=""><a href="mailto:OpenStack-operators@lists.openstack.org" class="">OpenStack-operators@lists.openstack.org</a><br class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators<br class=""></div></div><br class=""></body></html>