<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Well,</div>
<div> </div>
<div>and for MD usage with files i.e with Xen .. if some don´t mind ..</div>
<div>see http://unix.stackexchange.com/questions/17084/mounting-multiple-img-files-as-single-loop-device</div>
<div> </div>
<div>dd ...<>..</div>
<div>losetup</div>
<div>...</div>
<div>mdadm ...</div>
<div>xenstore add ..</div>
<div> </div>
<div>xen-create-image /xen-tools cover the dd image create funtions ,</div>
<div> but currently not the losetup & mdadm required here.</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div class="signature">--<br/>
Mit freundlichen Grüßen / Best Regards<br/>
<br/>
Horst Venzke ; PGP NET : 1024G/082F2E6D ; http://www.remsnet.de<br/>
<br/>
Legal Notice: This transmittal and/or attachments may be privileged or confidential. It is intended solely for the addressee named above. Any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you.</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Donnerstag, 11. September 2014 um 10:34 Uhr<br/>
<b>Von:</b> support@remsnet.de<br/>
<b>An:</b> "nik0 vp" <nik0_vp@hotmail.fr><br/>
<b>Cc:</b> "xen-tools-discuss@xen-tools.org" <xen-tools-discuss@xen-tools.org><br/>
<b>Betreff:</b> Re: [xen-tools-discuss] Automatic LVM-based FS creation on Debian guest installation</div>
<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hello Nick</div>
<div> </div>
<div>To explain xen usage with LVM with SAN disk based or Filebased :</div>
<div> </div>
<div>1:) LVM usage with xen for rootdisk</div>
<div>- create an MD from <san/nas disk1><san/nas disk2> i.e as md1</div>
<div>- create an vg named like <vmname>-vg0 on dom0</div>
<div>- create an lv volume <vmname>-vg0-root</div>
<div>- attach lv to xenstore for <vmname> i.e as xvda</div>
<div> </div>
<div>2.) For application disks (non-root ):</div>
<div>
<div> </div>
<div>LVM usage with xen for appdisks</div>
<div>- create an MD from <san/nas disk1><san/nas disk2> i.e as md2</div>
<div>- attach md2 to xenstor for <vmname> i.e as xvdb on dom0</div>
<div>- pvcreate on xvdb inside <vmname></div>
<div>- vgcreate <vmname>-vg1 inside <vmname></div>
<div>- create an lv volume <vmname>-vg1-<applvname></div>
<div> </div>
<div>VG Names must be uniq - existing once the at all assigned "xen farmservers" .</div>
<div>Haveing VG Names more then twice can confuse the LVM at start as the xen dom0 kernel see everything ...</div>
<div> </div>
</div>
<div>Currently the MD creations are not automated covered - my own tests failed using file based images .</div>
<div>seems that xen-create-image needs some fix patches .. like i.e new options to code --image=rootmd<no>,swapmd<no>,appmd<no></div>
<div>.... some extra VG/LV like --guestlvm=<rootvgname>,<rootvgname> may required then,</div>
<div>xen-tools currently don´t create these nessary MD witch are required to get LVM on relaible to workpath ( extent /scrink /.. ) INSIDE the xen guest .</div>
<div> </div>
<div>With xen-create-image --lvm=<vg> you autocreate the ROOT lv based at given VG ( must preexist for now on XEN dom0 ) ,</div>
<div>this are not provide raw image PV ( MD required for that ) as required for LVM with INSIDE the xen guest .</div>
<div> </div>
<div>.. some more shell /perl scriptinging just ...</div>
<div> </div>
<div>Espacaly SuSE xen kernels with > 3.x autodetect MD ,activate them on boot</div>
<div>There are patches for all this if not supported by your xen guest kernel ...</div>
<div>
<div class="signature">--<br/>
Mit freundlichen Grüßen / Best Regards<br/>
<br/>
Horst Venzke ; PGP NET : 1024G/082F2E6D ; <a href="http://www.remsnet.de" target="_blank">http://www.remsnet.de</a><br/>
<br/>
Legal Notice: This transmittal and/or attachments may be privileged or confidential. It is intended solely for the addressee named above. Any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you.</div>
<div>
<div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 01. September 2014 um 10:23 Uhr<br/>
<b>Von:</b> "nik0 vp" <nik0_vp@hotmail.fr><br/>
<b>An:</b> "xen-tools-discuss@xen-tools.org" <xen-tools-discuss@xen-tools.org><br/>
<b>Betreff:</b> [xen-tools-discuss] Automatic LVM-based FS creation on Debian guest installation</div>
<div>
<div class="hmmessage">
<div>Hi,<br/>
<br/>
I'm new to Xen, i've search through wiki and different site/help/discuss archives but didn't find the solution to my little problem.<br/>
<br/>
Well, I'd like to create a debian VM with the cmd tool xen-create-image but i'd like to create it with lvm on the guest AND on the dom0 BUT with partitioning only on the domU side.<br/>
<br/>
Scheme :<br/>
<br/>
FS (/, /tmp, /var ....)<br/>
|<br/>
lv_* (LV)<br/>
|<br/>
rootvg (VG)<br/>
|<br/>
xvdap1 (PV)<br/>
|<br/>
Dom U xvda (Disk)<br/>
|<br/>
lv_vm (LV)<br/>
|<br/>
Dom0 vmVG (VG)<br/>
<br/>
<br/>
As for creating VG/LV on the dom0, it's ok.<br/>
As for using the LV as a block device to create the domU, it's ok (--image-dev option)<br/>
<br/>
Now i'm stuck, how can I create FS on the domU ? There is a nice directory to describe the partitions (/etc/xen-tools/partitions.d/) but the xen-tools create them on the dom0.<br/>
<br/>
I know that what I'm trying to achieve is possible since I've done it manually using the debian installer, but i'd like to automate it.<br/>
<br/>
Thanks for your time and answers,<br/>
Regards,<br/>
</div>
_______________________________________________ xen-tools-discuss mailing list xen-tools-discuss@xen-tools.org <a href="https://xen-tools.org/mailman/listinfo/xen-tools-discuss" target="_blank">https://xen-tools.org/mailman/listinfo/xen-tools-discuss</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ xen-tools-discuss mailing list xen-tools-discuss@xen-tools.org <a href="https://xen-tools.org/mailman/listinfo/xen-tools-discuss" target="_blank">https://xen-tools.org/mailman/listinfo/xen-tools-discuss</a></div>
</div>
</div>
</div></div></body></html>