Hi,
What i am going to say to you will/may make others howl like wolves.
I am not answering your question fully but i will just give you some materials
to think on ...
If you had used ZFS boot pool in your guests from a vdisk made from a zvol at
primary level :
you could have clone this zvol and import it as a pool in the primary :
in primary :
big/boot <= My zvol made a vdisk which is used as a boot
pool in my guest
big/boot@fresh-zfs-install <= A snapshot of this zvol
big/tryclone <= A clone from this zvol
# zpool import -d /dev/zvol/rdsk/big
<...>
pool: rpool
id: 17625453751871434467
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://www.sun.com/msg/ZFS-8000-EY
config:
rpool ONLINE
/dev/zvol/rdsk/big/tryclone ONLINE
# zpool import -f -d /dev/zvol/rdsk/big/ -R /mnt 17625453751871434467 temp-name
# zfs list | grep temp-name
temp-name 7.29G 41.7G 97K /mnt/rpool
temp-name/ROOT 3.29G 41.7G 21K legacy
temp-name/ROOT/s10s_u8wos_08a 3.29G 41.7G 3.23G /mnt
temp-name/ROOT/s10s_u8wos_08a/var 61.6M 41.7G 61.6M /mnt/var
temp-name/dump 2.00G 41.7G 2.00G -
temp-name/export 44K 41.7G 23K /mnt/export
temp-name/export/home 21K 41.7G 21K /mnt/export/home
temp-name/swap 2G 43.7G 16K -
# zfs set mountpoint=/rootdir temp-name/ROOT/s10s_u8wos_08a
# zfs mount temp-name/ROOT/s10s_u8wos_08a
# cat /mnt/rootdir/etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.0.2 demo loghost
192.168.0.1 book
# zfs umount temp-name/ROOT/s10s_u8wos_08a
# zfs set mountpoint=/ temp-name/ROOT/s10s_u8wos_08a
# zpool export temp-name
well it seems to be working ... "seems" ...
my 2c.
F.
On 03/16/11 02:50 PM, Arjun YK wrote:
Hello,
I am looking for a clean way of accessing data in ZFS Volume from
Control Domain.
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
--
Oracle Global Customer Services
Francois Napoleoni / TSC Engineer Solaris & Networking, Global Systems Support
Email : [email protected]
Phone : +33 (0)1 34 03 17 07
Fax : +33 (0)1 34 03 11 14
_______________________________________________
ldoms-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss