[OmniOS-discuss] Upgrading from OI to OmniOS

Randy S sim.ple at live.nl
Thu Dec 4 12:16:47 UTC 2014



From: sim.ple at live.nl
To: jg at osn.de
Subject: RE: [OmniOS-discuss] Upgrading from OI to OmniOS
Date: Thu, 4 Dec 2014 12:45:10 +0100




Hi,
 Not a stupid question at all.
I fought with this for quite a while. I did it in quite an elaborate way and I am certain this can be done in fewer steps so I hope that one of the guru's in here can step in to correct my way of doing this.
Perhaps with a pkg install entire sort of a command ?

But anyway the following works for me :

On a vm I install the Omnios vm  and configure it
In this vm I do a beadm create BEname.
Do:
beadm mount BEname /mnt

create a compressed file of this BE

tar --create --bzip2 --absolute-names 
--preserve-permissions --preserve-order --verbose 
--file=/tmp/omni.tar.bz2 
/mnt

Copy this to the machine where you want to install to e.g. /tmp

On the destination (vm)machine create a BE ( beadm create whatever and also mount it on e.g /mnt)
cd to /mnt on the destination and rm -rf *

untar the bz2 file (cd /tmp) :

tar --extract --bzip2 --absolute-names --preserve-permissions --same-owner --verbose  --file=omni.tar.bz2

This will populate the /mnt with the omnios be
On this machine (destination) I also do a  

:;zpool status rpool 

to identify the disks used by rpool and then do e.g. 

ls -l /dev/dsk/c4t50014EE002EC010Bd0s0

and register the physical device in the bootenv.rc file of the omnios

:;vi /mnt/boot/solaris/bootenv.rc

and add e.g. lines like:

setprop bootpath /scsi_vhci/disk at g50014ee002ec010b:asetprop altbootpath /scsi_vhci/disk at g50014ee0ad96d82a:a <== in case of mirrorsetprop bootfile kernel/amd64/unix
After this do:
:;/usr/sbin/devfsadm -r /mnt

Now you can reboot into your new Omni bootenv and clean stuff up. Again do not upgrade zfs version until satiesfied.

I am certain this can be a lot better but this works 4 me (being an autodidact)

HTH
And as others usually end their helpful hints,... typo's courtesy of ehh my keyboard...

R



> Date: Wed, 3 Dec 2014 18:20:40 +0100
> From: jg at osn.de
> To: sim.ple at live.nl
> Subject: Re: [OmniOS-discuss] Upgrading from OI to OmniOS
> 
> Hi Randy,
> 
> sorry this may be a stupid question, but how can I install
> a fresh Omnios in an existing bootenv? Or how do you create
> the bootenv? bootadm create ?
> 
> Kind regards,
> 
>   - Joerg
> 
> On 03.12.2014 13:44, Randy S wrote:
> > should have send this to the list.... again.... ;-)
> >
> > ------------------------------------------------------------------------
> >
> >
> > Hi,
> >
> > The safest way I could think of to do this is as follows:
> > create a bootenv in OI en install Omnios fresh into this
> > Start omnios and if you need any settings you can mount the be of OI to
> > e.g. /mnt and copy the config files from there to the Omnios install.
> >
> > I had to keep track of config files in /etc and /kernel/drv
> > I have noticed that both oses are quite compatible
> >
> > Above procedure can first be tested with vm's
> >
> > Do not upgrade any pools untill you are satisfied with the new situation
> > since there might be a diff in zfs version. If you do you won't be able
> > to go back to your OI install.
> >
> > Please first test with vm's!
> >
> > Rgds
> >
> > R
> >
> >
> >
> >> Date: Tue, 2 Dec 2014 14:47:50 +0000
> >> From: cal-s at blue-bolt.com
> >> To: omnios-discuss at lists.omniti.com
> >> Subject: [OmniOS-discuss] Upgrading from OI to OmniOS
> >>
> >> Hi
> >>
> >> I have a server hosting 65TB of RAIDZ2 storage that's currently running
> >> OI (oi_151a8), which i really want to get off of given that OI has
> >> bitten the dust support-wise.  I found one brief discussion on the topic
> >> but it wasn't terribly detailed and was missing critical steps like
> >> configuration protection/retention. I'd like to preserve network and esp
> >> LDAP (client) settings as they were kind of a pain to establish in the
> >> first instance for quick reapplication. If anyone has or is interested
> >> in cobbling together a checklist of steps to upgrade OI to OmniOS that
> >> takes configuration into account, i'd very much appreciate seeing it.
> >>
> >> thank you
> >>
> >> - cal sawyer
> >> _______________________________________________
> >> OmniOS-discuss mailing list
> >> OmniOS-discuss at lists.omniti.com
> >> http://lists.omniti.com/mailman/listinfo/omnios-discuss
> >
> >
> > _______________________________________________
> > OmniOS-discuss mailing list
> > OmniOS-discuss at lists.omniti.com
> > http://lists.omniti.com/mailman/listinfo/omnios-discuss
> >
> 
> -- 
> OSN Online Service Nuernberg GmbH, Bucher Str. 78, 90408 Nuernberg
> Tel: +49 911 39905-0 - Fax: +49 911 39905-55 - http://www.osn.de
> HRB 15022 Nuernberg, USt-Id: DE189301263, GF: Joerg Goltermann
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20141204/99f5e518/attachment-0001.html>


More information about the OmniOS-discuss mailing list