James C. McPherson wrote:
Hi everybody,
with the NV gate machine now running OpenSolaris, we need to get
our procedures straight for updating between builds.
At the moment we've got an snv_121 "whole build" (for want of a
better term), and a few child BEs for nightly builds which we operate
on like this:
beadm create nightly-2009-08-31
beadm mount nightly-2009-08-31 /mnt
bfu /path/to/archives /mnt
acr /mnt
beadm umount nightly-2009-08-31
beadm activate nightly-2009-08-31
reboot
Which is all well+good but when we want to go from, eg,
snv_121 to snv_122 there's a bit of uncertainty about an
appropriately blessed procedure.
What I did today was to run
beadm mount snv_121 /mnt
pkg -R /mnt image-update
beadm umount snv_121
beadm activate snv_121
which was fine except that this updated the actual snv_121
BE to be snv_122 - not what I expected! Perhaps I should have
created a new BE first and then used the --be-name arg?
you can use the -e option to beadm create.
beadm create -e snv121 snv122
beadm mount snv122 /mnt
I usually do an install entire vs image-update so you can
explicitly choose the build you want to upgrade to. Doesn't
really apply to you as much, but I though I'd point it out.
pkg -R /mnt install SUNWipkg
pkg -R /mnt install [email protected]
bootadm update-archive -R /mnt
beadm umount snv122
beadm activate snv122
In theory, the "pkg install entire" should
really be using pkg from the BE updating.
I haven't bothered doing that though...
MRJ
In order to go from a non-whole build to a whole build, do we
have to reboot back to the previous whole build, or can we just
pkg image-update and trust that the right thing will be done?
Thankyou in advance for any+all clarification.
James C. McPherson
--
Senior Kernel Software Engineer, Solaris
Sun Microsystems
http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss