[one-users] How to change cluster ID

Carlos Martín Sánchez cmartin at opennebula.org
Wed Apr 3 05:43:20 PDT 2013


Hi,

Sorry, I forgot to mention that you must stop OpenNebula before touching
the DB. Otherwise, oned will continue to use the cached information.

Regards

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>


On Wed, Apr 3, 2013 at 5:57 AM, Sharuzzaman Ahmat Raslan <
sharuzzaman at gmail.com> wrote:

> Hi Carlos,
>
> I change cluster_pool last_oid in table pool_control to 99, but when I
> execute the command onecluster create Testing, it creates a new cluster
> with ID 102, not 100.
>
> Somehow the system knows that there are previously cluster ID 101, and
> disregard the number set in DB table.
>
> Appreciate explanation on this matter.
>
> Thanks.
>
>
>
>
> On Tue, Apr 2, 2013 at 5:52 PM, Carlos Martín Sánchez <
> cmartin at opennebula.org> wrote:
>
>> Hi,
>>
>> On Tue, Apr 2, 2013 at 10:00 AM, Sharuzzaman Ahmat Raslan <
>> sharuzzaman at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I'm just trying out Opennebula.
>>>
>>> In my installation, when I type the command
>>>
>>> onecluster create Testing
>>>
>>> it will create a new cluster named Testing with ID 100
>>>
>>> Why it start with 100? How do I make is start with 1, instead of 100?
>>>
>>
>> This way we reserve the first 100 IDs for internal or default clusters we
>> may add in the future.
>>
>>
>>> If I delete the cluster, then issue the command again, it will create a
>>> cluster of ID 101
>>>
>>> How do I change the cluster ID to 100 back?
>>>
>>
>> This is not supported, but if it is really crucial you can fiddle with
>> the database directly. Look for the pool_control table.
>>
>>
>>> The reason is that I need it to be identical to another setup that we
>>> already have in the company, created by another engineer.
>>>
>>
>> Maybe you can clone the entire database?
>>
>> Regards
>>
>>
>>>
>>> Thanks.
>>>
>>>
>>> --
>>> Sharuzzaman Ahmat Raslan
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>> --
>> Carlos Martín, MSc
>> Project Engineer
>> OpenNebula - The Open-source Solution for Data Center Virtualization
>> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>>  | @OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
>>
>>
>
>
> --
> Sharuzzaman Ahmat Raslan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130403/b8d01d83/attachment-0002.htm>


More information about the Users mailing list