<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Manuel, Tru,<br>
<br>
first of all thanks for the quick replies.<br>
See comments inline.<br>
<br>
On 02/20/2014 04:21 PM, Tru Huynh wrote:<br>
</div>
<blockquote cite="mid:20140220142111.GM18778@sillage.bis.pasteur.fr"
type="cite">
<pre wrap="">Hi,
On Thu, Feb 20, 2014 at 04:00:48PM +0200, Manuel Wolfshant wrote:
</pre>
<blockquote type="cite">
<pre wrap="">#pay attention to the comments inline !!
</pre>
</blockquote>
<pre wrap="">...
</pre>
<blockquote type="cite">
<pre wrap="">part /boot --fstype ext3 --size=250
part pv.2 --size=5000 --grow
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512
</pre>
</blockquote>
<pre wrap="">
<a class="moz-txt-link-freetext" href="http://www.synnefo.org/docs/snf-image-creator/latest/usage.html#some-caveats-on-image-creation">http://www.synnefo.org/docs/snf-image-creator/latest/usage.html#some-caveats-on-image-creation</a>
Warning
During the installation, you will be asked about the partition scheme.
Don’t use LVM partitions. They are not supported by snf-image-creator.
-> Not sure if that applies here.
<a class="moz-txt-link-freetext" href="http://www.synnefo.org/docs/snf-image-creator/latest/usage.html#image-partition-schemes-and-shrinking">http://www.synnefo.org/docs/snf-image-creator/latest/usage.html#image-partition-schemes-and-shrinking</a>
When image shrinking is enabled, snf-image-creator will shrink the last
partition on the disk. If this is a swap partition, it will remove it,
save enough information to recreate it during image deployment and
shrink the partition that lays just before that. This will make the
image smaller which speeds up the deployment process.
During image deployment, the last partition is enlarged to occupy the
available space in the VM’s hard disk and a swap partition is added at
the end if a SWAP image property is present.
-> Maybe a single / partition and a possible swap space at the end ?
part / --fstype ext4 --size=1000 --asprimary --ondisk=sda
part swap --size=128 --asprimary --ondisk=sda --fstype swap
</pre>
</blockquote>
<br>
The above docs have to do with the 'snf-image-creator' tool which<br>
we use to create our images. After the image is prepared this tool<br>
does not get in the path. The image gets deployed and customized<br>
by the 'snf-image' tool:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.synnefo.org/docs/snf-image/latest/">http://www.synnefo.org/docs/snf-image/latest/</a><br>
<br>
However, since snf-image does not operate on LVM partitions,<br>
that's why snf-image-creator doesn't support LVM too.<br>
<br>
Regarding swap:<br>
<br>
The image doesn't need to have a swap partition, since snf-image<br>
has a corresponding option to add one dynamically. That's why<br>
snf-image-creator removes the swap if it finds it at the end and<br>
sets that property accordingly during registration of the image.<br>
If the swap is not at the end, it leaves it as is. So, the best
thing<br>
to do in our case is to *not* have any swap at all in the image.<br>
<br>
Thanks,<br>
Constantinos<br>
<br>
<br>
P.S.: snf-image's SWAP property should have been documented<br>
here:<br>
<a class="moz-txt-link-freetext" href="http://www.synnefo.org/docs/snf-image/latest/interface.html#image-properties-img-properties">http://www.synnefo.org/docs/snf-image/latest/interface.html#image-properties-img-properties</a><br>
but I just saw it's missing. We'll be patching the docs right away.<br>
<br>
<blockquote cite="mid:20140220142111.GM18778@sillage.bis.pasteur.fr"
type="cite">
<pre wrap="">
Cheers,
Tru
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
CentOS-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos-devel">http://lists.centos.org/mailman/listinfo/centos-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>