[indiana-discuss] new updates! CORRECTION

Bryan Boone Bryan.Boone at sas.com
Sat Nov 17 06:38:05 PST 2007


This is great!!!
I feel a "real install" non-vm install is on the horizon;)
-B

________________________________________
From: indiana-discuss-bounces at opensolaris.org [indiana-discuss-bounces at opensolaris.org] On Behalf Of Bart Smaalders [bart.smaalders at Sun.COM]
Sent: Friday, November 16, 2007 9:34 PM
To: Marian Mihailescu
Cc: indiana-discuss at opensolaris.org
Subject: Re: [indiana-discuss] new updates! CORRECTION

The instructions I sent out included an incorrect step
we used internally.  The following are correct:

**** How to upgrade your Indiana bits by hand.*****

In the future, the pkg command will take care of
this for you.  For now, it's a manual process,
since the pkg command doesn't yet do image
management.

Assuming you're running as-installed Indiana bits:

1) snapshot and clone your root and opt filesystems,
    and mount them spliced togetther under /mnt:

    # zfs snapshot zpl_slim/root at 2
    # zfs clone zpl_slim/root at 2 zpl_slim/root2
    # zfs set mountpoint=/mnt zpl_slim/root2
    # zfs snapshot zpl_slim/opt at 2
    # zfs clone zpl_slim/opt at 2 zpl_slim/opt2
    # zfs set mountpoint=/mnt/opt zpl_slim/opt2

2) edit your /zpl_slim/boot/grub/menu.lst file and prepend:

title OpenSolaris Developer Preview snv_75a X86 UPDATED
bootfs zpl_slim/root2
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive

3) Add this line to your /etc/vfstab to mount /opt in legacy mode:

zpl_slim/opt   -               /opt            zfs     -       yes     -

4) Fix the vfstab in the new root image (/mnt/etc/vfstab) to mount root2
and opt2:

zpl_slim/root2  -               /               zfs     -       no      -
zpl_slim/opt2   -               /opt            zfs     -      yes     -

5) <OMITTED for use outside Sun firewall>

6) get a fresh copy of the catalog from the new server w/

# pkg refresh

7) get a better copy of the pkg command:

# pkg install SUNWipkg

8) update the image's catalog as well:

# pkg -R /mnt refresh

9) update all the software on your new image:

# pkg -R /mnt image-update

10) update the boot archive (not strictly needed this time, but a good
habit to get into until this is automated):

# bootadm update-archive -R /mnt

11) fix the mountpoints:

# zfs set mountpoint=legacy zpl/opt2
# zfs set mountpoint=legacy zpl/root2
# zfs set mountpoint=legacy zpl/opt

12) reboot and enjoy the fresh new bits


--
Bart Smaalders                  Solaris Kernel Performance
barts at cyber.eng.sun.com         http://blogs.sun.com/barts
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


More information about the indiana-discuss mailing list