Hi,

I have changed the the LDOM rootdisk from UFS to ZFS.
I can temporarily mount LDOM's  rpool  on control domain and update the
hosts file in it as required.
It works fine in both the methods.

METHOD1
 # ldm add-vdsdev /dev/zvol/rdsk/pool/volume zvol@primary-vds0
 # ldm add-vdisk vdisk_zvol zvol@primary-vds0 primary
 # zpool import -f  -R /mnt rpool  temp-name


METHOD2
# zpool import -f -d /dev/zvol/rdsk/big/ -R /mnt 17625453751871434467
temp-name
# zfs set mountpoint=/rootdir temp-name/ROOT/s10s_u8wos_08a
# zfs mount temp-name/ROOT/s10s_u8wos_08a


Issue I have now is, how do I put the 'temp-name' back to its original name
'rpool' so that LDOM can boot ?
I am kind of stuck with this. Please help


Thanks
Arjun


On Thu, Mar 17, 2011 at 12:39 AM, Alexandre Chartre <
[email protected]> wrote:

>
> On 03/16/11 06:50, Arjun YK wrote:
>
>> Hello,
>>
>> I am looking for a clean way of accessing data in ZFS Volume from Control
>> Domain.
>>
>
>  Just add the ZFS volume as a vdisk to the control domain.
>
>  E.g.:
>
>  # ldm add-vdsdev /dev/zvol/rdsk/pool/volume zvol@primary-vds0
>  # ldm add-vdisk vdisk_zvol zvol@primary-vds0 primary
>
>  Basically the primary domain export a vdisk to itself.
>
> alex.
>
>  I have a setup that allows to quickly deploy 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.
>>
>> The vdisk has slices for  root(/), /var and swap. Filesysem on vdisk is
>> UFS
>>
>> To make the build process more hands off, I am looking for a way to access
>> the ZFS Volume (new Clone) from Control Domain during the build,  and edit
>> files in UFS as required for giving a new hostname, IP, etc.
>>
>> Can someone please suggest a method ?
>>
>> I would prefer this method over the sys-unconfig, as I need to make only
>> very less changes for a new build.  Need to change only the hostname, IP and
>> the savecore path.
>>
>>
>> Thanks in advance.
>> Arjun
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> ldoms-discuss mailing list
>> [email protected]
>> http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss
>>
>
_______________________________________________
ldoms-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss

Reply via email to