[indiana-discuss] cleaning up cloned zones

Jerry Jelinek Gerald.Jelinek at Sun.COM
Thu Jul 30 06:29:11 PDT 2009


Anil wrote:
...
> So, now the problem is, I have some zones that have a zbe-1 and some that have a zfs clone with just zbe name.
> 
> After making sure everything works for a month now, I want to clean up that. I want to promote all of them to be just zbe. I understand I won't be able to revert back to original zone bits, but I could have 40+ zones on this system, and I prefer them all to be consistent looking.
...
> How do I go about renaming and destroying the original zbe fs? I believe this will involve me to promote the zbe-1 and then destroy zbe followed by renaming zbe-1 to zbe. But this is a live system, I don't have something to play with first. Any tips?

You shouldn't do that.  Those clones are associated with
a different BE and they should get cleaned up automatically
when you delete the other BE using the 'beadm' command.
If they are not removed and if the clones are not promoted
correctly, then that would be a bug in beadm.  Until you
delete the BE which owns those clones, you should leave them
alone or else that other BE will be corrupted if you try
to boot back to it and its zones will no longer be usable.

Jerry



More information about the indiana-discuss mailing list