<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 9:06 AM, Chris Bartels <span dir="ltr"><<a href="mailto:chris@christopherbartels.com" target="_blank">chris@christopherbartels.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="">

Hi,<u></u><u></u></p><p class=""><u></u> <u></u></p><p class="">I have questions regarding this part of the Grizzly install guide that’s up on github:<u></u><u></u></p><p class=""><u></u> <u></u></p><p style="margin-left:0.5in">

<u></u><span style="font-size:10pt;font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>Finally, don't forget to create a volumegroup and name it cinder-volumes:<u></u><u></u></p>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>losetup /dev/loop2 cinder-volumes<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>fdisk /dev/loop2<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>#Type in the followings:<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>n<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>p<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>1<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>ENTER<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>ENTER<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>t<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>8e<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>w<u></u><u></u></pre>

<p style="margin-left:0.5in"><u></u><span style="font-size:10pt;font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>Proceed to create the physical volume then the volume group:<u></u><u></u></p>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>pvcreate /dev/loop2<u></u><u></u></pre>

<pre style="margin-left:0.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">         </span></span></span><u></u>vgcreate cinder-volumes /dev/loop2<u></u><u></u></pre>

<p><strong>Note:</strong> Beware that this volume group gets lost after a system reboot. (Click <a href="https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/Tricks%26Ideas/load_volume_group_after_system_reboot.rst" target="_blank">Here</a> to know how to load it after a reboot)<u></u><u></u></p>

<p class=""><u></u> <u></u></p><p class="">First, I don’t know what all those commands are doing, in particular with the dd stuff, and I’m reluctant to be doing stuff with that which I don’t understand, so if someone could explain what that’s all about I’d appreciate it. If that’s how it _<i>must</i>_ be done, I’d like to know.<u></u><u></u></p>

<p class=""><u></u> <u></u></p><p class="">Secondly, I’m wondering if I could make life easier and not have to bother with the extra stuff regarding making the vg come back after reboot, which the instructions link to how to do, if I were to simply do the cinder vg with the installer & install Ubuntu with 100GB (out of 1000GB) of the disk made available to the guided LVM partitioning during the initial install, and use the rest as a cinder-volumes vgcreate’d group that gets mounted normally at each boot like everything else does.<u></u><u></u></p>

<p class=""><u></u> <u></u></p><p class="">Wouldn’t that work? Seems easier to me.<u></u><u></u></p><p class=""><u></u> <u></u></p><p class="">Please advise.<u></u><u></u></p><p class=""><u></u> <u></u></p><p class="">Thanks,<u></u><u></u></p>

<p class="">Chris<u></u><u></u></p></div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div>Hey Chris,</div><div class="gmail_extra"><br></div><div class="gmail_extra" style>What's listed above is standard unix commands to build a loop-back device file that can be used as a Physical Volume to build Volume Groups.  To be honest, this isn't really how you should deploy Cinder in a real environment, but it really just for testing and things like Devstack.</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>For a production setup, you'd actually want to have a raw disk or two on the system, add them as an LVM Physical Volume.  The create the Volume Group, in other words the only steps you would need are:</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>    pvcreate /dev/sdc (or some disk or partition that you have available)</div><div class="gmail_extra" style>    vgcreate cinder-volumes /dev/sdc</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>That's about it, that will give you dedicated partitions/volume groups and it will persist over reboots.  I'd also suggest you read up a big on LVM to get a better idea of what those commands do and how all of this works.</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Hope that helps,</div><div class="gmail_extra" style>John</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><pre style="margin-left:0.5in">

<br></pre></div></div>