Having your OpenSolaris cake and eating it

Previous to my post about inplace upgrade of OpenSolaris.com snv_134 to OpenIndiana.org oi_147, what if you wanted to keep both?

Here’s how:

root@opensolaris:~# beadm create oi_147
root@opensolaris:~# beadm mount oi_147 /a
root@opensolaris:~# pkg -R /a set-publisher --non-sticky opensolaris.org
root@opensolaris:~# pkg -R /a set-publisher -p http://pkg.openindiana.org/dev
pkg set-publisher:
  Added publisher(s): openindiana.org
root@opensolaris:~# pkg -R /a set-publisher -P openindiana.org
root@opensolaris:~# pkg -R /a uninstall entire
PHASE                                        ACTIONS
Removal Phase                                  54/54
root@opensolaris:~# pkg -R /a image-update
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              729/729 37176/37176  478.9/478.9

PHASE                                        ACTIONS
Removal Phase                            16221/16221
Install Phase                            24572/24572
Update Phase                             37148/37148
oi_147 has been updated successfully
root@opensolaris:~# beadm umount oi_147
root@opensolaris:~# beadm activate oi_147
root@opensolaris:~# beadm list
BE          Active Mountpoint Space   Policy Created
--          ------ ---------- -----   ------ -------
oi_147      R      -          5.81G   static 2010-09-19 12:12
opensolaris N      /          115.85M static 2010-09-18 22:58
root@opensolaris:~# init 6

And that’s it!

The only thing to remember is to not “zpool upgrade”, or “zfs upgrade” until you’re happy you don’t want to revert.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: