I create a couple of zones. I have a zone path like this:

r...@vps1:~# zfs list -r zones/cars
NAME                  USED  AVAIL  REFER  MOUNTPOINT
zones/fans           1.22G  3.78G    22K  /zones/fans
zones/fans/ROOT      1.22G  3.78G    19K  legacy
zones/fans/ROOT/zbe  1.22G  3.78G  1.22G  legacy

I then upgrade the global zone, this creates the zfs clones/snapshots for the 
zones:

r...@vps1:~# zfs list -r zones/fans
NAME                    USED  AVAIL  REFER  MOUNTPOINT
zones/fans             4.78G  5.22G    22K  /zones/fans
zones/fans/ROOT        4.78G  5.22G    19K  legacy
zones/fans/ROOT/zbe    2.64G  5.22G  2.64G  legacy
zones/fans/ROOT/zbe-1  2.13G  5.22G  3.99G  legacy

I create a couple of new zones, the mounted zfs tree looks like this:

r...@vps1:~# zfs list -r zones/cars
NAME                  USED  AVAIL  REFER  MOUNTPOINT
zones/cars           1.22G  3.78G    22K  /zones/cars
zones/cars/ROOT      1.22G  3.78G    19K  legacy
zones/cars/ROOT/zbe  1.22G  3.78G  1.22G  legacy


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.

Here is a full hierarchy now:
r...@vps1:~# zfs get -r mounted,origin,mountpoint zones/fans
NAME                       PROPERTY    VALUE                      SOURCE
zones/fans                 mounted     yes                        -
zones/fans                 origin      -                          -
zones/fans                 mountpoint  /zones/fans                default
zones/fans/ROOT            mounted     no                         -
zones/fans/ROOT            origin      -                          -
zones/fans/ROOT            mountpoint  legacy                     local
zones/fans/ROOT/zbe        mounted     no                         -
zones/fans/ROOT/zbe        origin      -                          -
zones/fans/ROOT/zbe        mountpoint  legacy                     local
zones/fans/ROOT/z...@zbe-1  mounted     -                          -
zones/fans/ROOT/z...@zbe-1  origin      -                          -
zones/fans/ROOT/z...@zbe-1  mountpoint  -                          -
zones/fans/ROOT/zbe-1      mounted     yes                        -
zones/fans/ROOT/zbe-1      origin      zones/fans/ROOT/z...@zbe-1  -
zones/fans/ROOT/zbe-1      mountpoint  legacy                     local


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?

Thanks!
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to