pkg image-update - Solaris

This is a discussion on pkg image-update - Solaris ; I tried to update my system. Before I began, I saved the old system with a zfs snapshot. The update with "pkg image-update" seems to run well. After finished I rebootet and had a new entry in the grub menu ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: pkg image-update

  1. pkg image-update

    I tried to update my system. Before I began, I saved the old system with
    a zfs snapshot. The update with "pkg image-update" seems to run well.
    After finished I rebootet and had a new entry in the grub menu list. If
    I select the new entry "opensolaris-1" the system always fell at once
    back into the bios mode. If I choose the original entry point the system
    boots with the original software packages. Now my question. What I
    must do to boot the updatet system?

    The zfs listing show the following configuration.

    > Sun Microsystems Inc. SunOS 5.11 snv_86 January 2008
    > -bash-3.2# zfs list
    > NAME USED AVAIL REFER MOUNTPOINT
    > rpool 34,1G 330G 56,5K /rpool
    > rpool@install 16K - 55K -
    > rpool@rpool-snapshot1 17K - 56K -
    > rpool/ROOT 7,46G 330G 18K /rpool/ROOT
    > rpool/ROOT@install 15K - 18K -
    > rpool/ROOT/opensolaris 19,7M 330G 3,24G legacy
    > rpool/ROOT/opensolaris-1 7,44G 330G 3,46G legacy
    > rpool/ROOT/opensolaris-1@install 65,4M - 2,22G -
    > rpool/ROOT/opensolaris-1@static:-:2008-08-08-09:53:08 172M - 3,25G -
    > rpool/ROOT/opensolaris-1/opt 2,30G 330G 1,78G /opt
    > rpool/ROOT/opensolaris-1/opt@install 81K - 3,61M -
    > rpool/ROOT/opensolaris-1/opt@static:-:2008-08-08-09:53:08 538M - 2,25G -
    > rpool/ROOT/opensolaris/opt 231K 330G 2,25G /opt
    > rpool/export 25,3G 330G 19K /export
    > rpool/export@install 15K - 19K -
    > rpool/export/home 25,3G 330G 25,3G /export/home
    > rpool/export/home@install 17K - 18K -
    > rpool/local-repo 1,30G 330G 1,30G /var/local-repo


    All lines which contains "opensolaris-1" are new after updating. The
    "rpool@rpool-snapshot1" is the system backup.

    Stefan

  2. Re: pkg image-update

    On Fri, 08 Aug 2008 13:16:47 +0200, Stefan Sprungk wrote:

    > I tried to update my system. Before I began, I saved the old system with
    > a zfs snapshot. The update with "pkg image-update" seems to run well.
    > After finished I rebootet and had a new entry in the grub menu list. If
    > I select the new entry "opensolaris-1" the system always fell at once
    > back into the bios mode. If I choose the original entry point the system
    > boots with the original software packages. Now my question. What I
    > must do to boot the updatet system?


    You must perform a grub update. The instructions for doing so are in the
    OpenSolaris announce forum:

    http://www.opensolaris.org/jive/forum.jspa?forumID=76


  3. Re: pkg image-update

    On 2008-08-08 12:16:47 +0100, Stefan Sprungk said:

    > I tried to update my system. Before I began, I saved the old system
    > with a zfs snapshot.


    There's no need to take a snapshot yourself. The image-update clones
    your current boot environment, and does the upgrade on the clone. You
    can switch boot environments (and list them, delete them, etc) with the
    beadm command.

    Cheers,

    Chris



  4. Re: pkg image-update

    Dave Uhring schrieb:
    > On Fri, 08 Aug 2008 13:16:47 +0200, Stefan Sprungk wrote:
    >
    >> I tried to update my system. Before I began, I saved the old system with
    >> a zfs snapshot. The update with "pkg image-update" seems to run well.
    >> After finished I rebootet and had a new entry in the grub menu list. If
    >> I select the new entry "opensolaris-1" the system always fell at once
    >> back into the bios mode. If I choose the original entry point the system
    >> boots with the original software packages. Now my question. What I
    >> must do to boot the updatet system?

    >
    > You must perform a grub update. The instructions for doing so are in the
    > OpenSolaris announce forum:
    >
    > http://www.opensolaris.org/jive/forum.jspa?forumID=76
    >


    Thank you! I found the description in the html link above. Know I can
    boot the updatet system via grub menu. If I have testet the new
    version I want to delete the old version. If the listing below shows my
    zfs configuration can I delete the old version with thiese commands?

    > # zfs list
    > NAME USED AVAIL REFER MOUNTPOINT
    > rpool 34,2G 330G 59K /rpool
    > rpool@install 16K - 55K -
    > rpool@rpool-snapshot1 17K - 56K -
    > rpool/ROOT 7,60G 330G 18K /rpool/ROOT
    > rpool/ROOT@install 15K - 18K -
    > rpool/ROOT/opensolaris 22,7M 330G 3,24G legacy
    > rpool/ROOT/opensolaris-1 7,58G 330G 3,53G legacy
    > rpool/ROOT/opensolaris-1@install 65,4M - 2,22G -
    > rpool/ROOT/opensolaris-1@static:-:2008-08-08-09:53:08 182M - 3,25G -
    > rpool/ROOT/opensolaris-1/opt 2,30G 330G 1,78G /opt
    > rpool/ROOT/opensolaris-1/opt@install 81K - 3,61M -
    > rpool/ROOT/opensolaris-1/opt@static:-:2008-08-08-09:53:08 538M - 2,25G -
    > rpool/ROOT/opensolaris/opt 231K 330G 2,25G /opt
    > rpool/export 25,3G 330G 19K /export
    > rpool/export@install 15K - 19K -
    > rpool/export/home 25,3G 330G 25,3G /export/home
    > rpool/export/home@install 17K - 18K -
    > rpool/local-repo 1,30G 330G 1,30G /var/local-repo


    zfs destroy rpool/ROOT/opensolaris
    zfs destroy rpool@rpool-snapshot1

    Stefan

  5. Re: pkg image-update

    On Fri, 08 Aug 2008 16:55:40 +0200, Stefan Sprungk wrote:

    > Thank you! I found the description in the html link above. Know I can
    > boot the updatet system via grub menu. If I have testet the new
    > version I want to delete the old version. If the listing below shows my
    > zfs configuration can I delete the old version with thiese commands?


    Doing so will cause problems. The correct method is to use beadm. Please
    read the man page.


+ Reply to Thread