[zfs-discuss] ZFS

Andrew Gabriel
2008-11-13T10:40:51Z

Ian Collins wrote:
> Anthony Ladd wrote:
>> Spoke with customer, David Radden they have applied update 06.  Now
they
>> are having an issue with ZFS.
>>
>> Customer is attempting to clone a zone.  Normally when source and
target
>> are in the same pool ZFS uses snapshop.
>>
>> Now its using  CPIO to copy instead of snapshot.
>>
>> Any suggestions?
>>
>>
> Double check if that feature made it in to Update 6, I don''t think
it did.

No, it''s not in Update 6.
This feature is only in Nevada at the moment.

It''s easy to hack in an unsupported way.
IIRC, I did something like this:

Get the new zone setup as far as the ''configured'' state. Easy
way is to
dump the existing zone''s configuration
zonecfg -z existingzone export -f /tmp/x
Edit /tmp/x changing things (rootpath, any IP addresses, etc)
zonecfg -z newzone -f /tmp/x

Snapshot and clone the existing zone into /path/for/new/zone.

Run sys-unconfig -R /path/for/new/zone

Edit /etc/zones/index to change new zone''s state from configured to
installed.

Done. (You can now boot newzone)

--
Andrew