Cindy,

Here is what I was trying to do..

I have some scripts that allows to quickly deploy LDOM guest domains. The
Golden OS Image of guest domain boot disk is on a ZFS Volume. This ZFS
Volume has been Snapshot and Cloned for the quick deployment of guest
domains.

To build new ldom, create a new Clone, asssign it to Control Domain as a
'vdisk',  edit files in vdisk as required for giving a new hostname, IP,
etc, then unassign vdisk from control domain, and assign it back to the
guest domain.

As control domain is already booted from 'rpool', importing another rpool
from vdisk required renaiming the rpool on vdisk.
But, I couldn't see how rpool on vdisk can be renamed back to its original
name 'rpool' after the files in it have been updated.

I think, the solution here is to have different name for boot pool on
control domain and on the ldom boot disk (one being Cloned)


Thanks
Arjun


On Fri, Apr 8, 2011 at 10:46 PM, Cindy Swearingen <
cindy.swearin...@oracle.com> wrote:

> Arjun,
>
> Yes, you an choose any name for the root pool, but an existing
> limitation is that you can't rename the root pool by using the
> zpool export/import with new name feature.
>
> Too much internal boot info is tied to the root pool name.
>
> What info are you changing? Instead, could you create a new BE
> and update the info in the new BE.
>
> Creating a new BE is the best solution.
>
> Another solution is to create a mirrored root pool and then use the
> zpool split option to create an identical root pool (that is then
> imported with a new name, like rpool2), but this identical root pool
> won't be bootable either. You would then need to mount rpool2's file
> systems and copy whatever data you needed.
>
> Thanks,
>
> Cindy
>
>
>
>
> On 04/08/11 01:24, Arjun YK wrote:
>
>> Hi,
>>
>> Let me add another query.
>> I would assume it would be perfectly ok to choose any name for root
>> pool, instead of 'rpool', during the OS install. Please suggest
>> otherwise.
>>
>> Thanks
>> Arjun
>>
>> On 4/8/11, Arjun YK <arju...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I have a situation where a host, which is booted off its 'rpool', need
>>> to temporarily import the 'rpool' of another host, edit some files in
>>> it, and export the pool back retaining its original name 'rpool'. Can
>>> this be done ?
>>>
>>> Here is what I am trying to do:
>>>
>>> # zpool import -R /a rpool temp-rpool
>>> # zfs set mountpoint=/mnt temp-rpool/ROOT/s10_u8
>>> # zfs mount temp-rpool/ROOT/s10_u8
>>> ### For example, edit /a/mnt/etc/hosts
>>> # zfs set mountpoint=/  temp-rpool/ROOT/s10_u8
>>> # zfs export temp-rpool    --> But, I want to give temp-rpool its
>>> original name 'rpool' before or after this export.
>>>
>>> I cannot see how this can be achieved. So, I decided to live with the
>>> name 'temp-rpool'. But, is renaming 'rpool'  recommended or supported
>>> parctice ?
>>>
>>> Any help is appreciated.
>>>
>>> Thanks
>>> Arjun
>>>
>>>  _______________________________________________
>> zfs-discuss mailing list
>> zfs-discuss@opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>>
>
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to