Hello,

I am trying to update files on LDOM boot disk from Control Domain, but I
can't get it working fully.

I have a setup 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.
 Filesystem in both the control domain and guest domain is ZFS.

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 ZFS  as required for giving a new hostname, IP, etc.

I have been able to mount volume on control domain, and edit the files:

 ### From control domain, import LDOM's rpool using its backend zvol device
file
 # zpool import -f -d /dev/zvol/rdsk/ldm1_bootvol/ -R /mnt
17625453751871434467 temp-name

 ## Mount and edit hosts file
 # zfs set mountpoint=/rootdir temp-name/ROOT/s10s_u8wos_08a
 # zfs mount temp-name/ROOT/s10s_u8wos_08a
 # edit /mnt/rootdir/etc/hosts

Issue I have now is how do I put this pool 'temp-name' back to its original
name 'rpool' so that LDOM can boot ? Could someone share some idea ?

Thanks
Arjun
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to