<html><head><style>.em-message p{margin:0px}</style></head><body><div class="em-message"><font face="arial">Hello,<br><br>It seems a bit overkill for what I want to achieve here, but the product is interesting, I keep it in mind :)<br><br>Does anyone has an idea to keep a base image at 3G pointing /var /usr in a volatile storage ? startup script seems not so adequate...<br><br>Thanks in advance.<br>Cyrille<br><div id="EmailSignature"><br>"Imagination is more important than Knowledge"<br>
Albert Einstein</div><br><br><br>Lundi 03/12/2012 à 23:28 Evan Fraser a écrit:<br><blockquote style="border:0;border-left: 2px solid #22437f; padding:0px; margin:0px; padding-left:5px; margin-left: 5px; ">


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Cyrille,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Try taking a look at UnionFS:
<a href="http://unionfs.filesystems.org/">http://unionfs.filesystems.org/</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">It can be mounted overtop of the root filesystem giving you access to the files in the filesystem beneath, while changes are recorded in the unionfs filesystem.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">An example using a compressed squashfs image as the root filesystem and then mounting unionfs over top can be found here:
<a href="http://www.tldp.org/HOWTO/html_single/SquashFS-HOWTO/#sqwrite">http://www.tldp.org/HOWTO/html_single/SquashFS-HOWTO/#sqwrite</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cheers, Evan.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> users-bounces@lists.opennebula.org [mailto:users-bounces@lists.opennebula.org]
<b>On Behalf Of </b>Duverne, Cyrille<br>
<b>Sent:</b> Tuesday, 4 December 2012 11:12 a.m.<br>
<b>To:</b> Mailing List OPENNEBULA<br>
<b>Subject:</b> [one-users] Info on Partition and volatile disks</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif"">Dear mailing list,<br>
<br>
I always have some topics to make your brain run as fast as light <img src="http://euranova.eu/myoffice/themes/Default/images/emoticons/normal/smile.gif" alt=":)"> :<br>
<br>
- I have a base image of 3Gb of Ubuntu Server<br>
- Depending on the request I add a volatile disk of 15 / 50 / 150 Gb (this to avoid copying 150G each time I deploy a VM)<br>
<br>
But since the root partition is 3G large, some users are making it exploding without using the 15G free.<br>
<br>
I'd like to use the free storage as hosting partition for /var, /usr, /home.<br>
How could I achieve this since the disk volatile and provisioned on the fly at the deployment.<br>
<br>
I'm trying to mv /var etc... in init.sh at startup, but it make the VM to never start (maybe because /var/lock, /var/run aren't accessible)<br>
<br>
I think symlinks are the best way to do this, I might be wrong.<br>
<br>
Please help <img src="http://euranova.eu/myoffice/themes/Default/images/emoticons/normal/smile.gif" alt=":)"><br>
Regards<br>
CyD</span></p>
</div>
</div>


</blockquote></font></div></body></html>