<div dir="ltr">I see. So you changed the DATASTORE_BASE_PATH after the DB was bootstrapped.<div><br></div><div>I don't see clearly how we should handle this. You can't delete the default datastores and create new ones, but if we allow to change the base_path, existing images will have the old one in their source.</div>
<div><br></div><div>On the other hand, this is something that only the admin will change, and we can assume he understands the implications of the datastore base path.</div><div><br></div><div>We'll think about it for the next releases [1]</div>
<div><br></div><div>Best regards.</div><div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/2554">http://dev.opennebula.org/issues/2554</a><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">
--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 4:39 PM, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Carlos, </div>
<div>I found what was wrong with my configuration;</div>
<div><br>
</div>
<div>onedatastore show default reveals that BASE_PATH was pointing at the wrong path.</div>
<div>(This is because I started with one path and then later renamed the directory.)</div>
<div><br>
</div>
<div>onedatastore update default did not let me change this BASE_PATH,</div>
<div>so I had to modify the DB content directly,</div>
<div><br>
</div>
<div>mysql> update datastore_pool set body="<DATASTORE> … </DATASTORE>" where oid=1;</div>
<div>and also had to restart oned in order to flush the memory contents.</div>
<div><br>
</div>
<div>After this, onedatastore list now shows</div>
<div>
<div>-bash-4.1$ od list</div><div class="im">
<div> ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM</div>
<div> 0 system - - - 0 sys - ssh</div>
</div><div> 1 default 434.9G 91% production 0 img fs ssh</div>
<div> 2 files 0M - - 0 fil fs ssh</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks again,</div>
<div>HyunWoo</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, December 3, 2013 9:15 AM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>>, Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>><div>
<div class="h5"><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] oneimage create command in ON3.4 and up<br>
</div></div></div><div><div class="h5">
<div><br>
</div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Carlos, </div>
<div>in your email, you said,</div>
<div>"The datastore size is initialized to 0, and then populated with the right size"</div>
<div><br>
</div>
<div>What do you mean by "right size" here?</div>
<div>How do we set the right size in the first place?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>HyunWoo</div>
<div>FermiCloud</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, December 3, 2013 8:59 AM<br>
<span style="font-weight:bold">To: </span>Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] oneimage create command in ON3.4 and up<br>
</div>
<div><br>
</div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi,</div>
<div>Thanks for the reply.</div>
<div><br>
</div>
<div>My oned.log has those messages </div>
<div>
<div>Tue Dec 3 08:53:08 2013 [InM][I]: Monitoring datastore default (1)</div>
<div>Tue Dec 3 08:53:08 2013 [ImM][I]: Datastore default (1) successfully monitored.</div>
<div><br>
</div>
</div>
<div>but I still can not do oneimage create with the same error message;</div>
<div>
<div>-bash-4.1$ oneimage create firstimage.template --datastore default</div>
<div>Not enough space in datastore</div>
</div>
<div><br>
</div>
<div>Any other suggestion?</div>
<div><br>
</div>
<div>Thank you.</div>
<div>HyunWoo</div>
<div>FermiCloud</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, December 3, 2013 4:06 AM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] oneimage create command in ON3.4 and up<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>The datastore size is initialized to 0, and then populated with the right size after the monitorization begins to work. Maybe there was a problem trying to monitor it. Take a look at /var/log/one/oned.log, you should have messages like these:</div>
<div><br>
</div>
<div>Fri Nov 29 17:29:19 2013 [InM][D]: Monitoring datastore default (1)<br>
</div>
<div>
<div>Fri Nov 29 17:29:20 2013 [ImM][D]: Datastore default (1) successfully monitored.</div>
</div>
<div><br>
</div>
<div>Or an error message from the drivers.</div>
<div><br>
</div>
<div>Regards</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">--<br>
<div>Carlos Martín, MSc<br>
Project Engineer</div>
<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> |
<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> |
<a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On Mon, Dec 2, 2013 at 11:37 PM, Hyun Woo Kim <span dir="ltr">
<<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>Hi,</div>
<div><br>
</div>
<div>Let me ask a basic question.</div>
<div><br>
</div>
<div>I just started testing ON4.2</div>
<div>and when I use oneimage command to register a first image,</div>
<div>I am getting the following error message</div>
<div><br>
</div>
<div>
<div>-bash-4.1$ oneimage create firstimage.template --datastore default</div>
<div>Not enough space in datastore</div>
</div>
<div><br>
</div>
<div>I guess this is because the "default" datastore has "0M" size as shown below,</div>
<div>
<div>-bash-4.1$ onedatastore list</div>
<div> ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM </div>
<div> 0 system - - - 0 sys - ssh</div>
<div> 1 default 0M - production 0 img fs ssh</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>My question is, how can I increase this size?</div>
<div><br>
</div>
<div>I could not find relevant information from onedatastore help,</div>
<div>I guessed this size will increase when I add a new host, create a cluster, add the host in this cluster</div>
<div>and create a new virtual network and add it to the cluster etc,</div>
<div>but I am still getting the same error message..</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div>HyunWoo KIM</div>
<div>FermiCloud</div>
</div>
<div><br>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</span></div>
</div>
</div></div></span>
</div>
</blockquote></div><br></div></div>