Loading...

2009-06-01

OpenSolaris preview 2009.06 build on snv_111a, "pkg image-update" to snv_111b

On Sunday, 2009-May-31, via IPS, executed "# pkg image-update" command, then the kernel was upgraded snv_111a to snv_111b.

一昨日(2009-May-31)、パッケージ更新マネージャーの指示によって、アップデート有効なパッケージ情報を得る。
そこで、"pkg image-update" して新しいBE opensolaris-5 が作成された。システムの再起動後に、kernel が snv_111b にアップグレードされたことを知った。
これをデフォルトにして運用して行くことにした。ついでに ブートメニューを編集しておく。
以下は、この作業手順の覚え書きである。

$ pfexec pkg refresh --full
$ pfexec pkg install pkg:/SUNWipkg@0.5.11,5.11-0.111:20090508T161015Z
$ pfexec pkg image-update
$ reboot
$ pfexec beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
opensolaris - - 49.27M static 2009-04-20 16:49
opensolaris-4 - - 22.27M static 2009-05-07 10:11
opensolaris-5 NR / 18.38G static 2009-05-31 00:57

$ pfexec zfs list
NAME                       USED   AVAIL    REFER   MOUNTPOINT
rpool                     29.4G   9.73G     83K   /rpool
rpool/ROOT                15.0G   9.73G     19K   legacy
rpool/ROOT/opensolaris    49.3M   9.73G   7.02G   /BE/opensolaris
rpool/ROOT/opensolaris-4  22.3M   9.73G   11.3G   /
rpool/ROOT/opensolaris-5  14.9G   9.73G   11.4G   /
rpool/dump                1019M   9.73G   1019M   -
rpool/export              12.4G   9.73G     21K   /export
rpool/export/home         12.4G   9.73G   12.4G   /export/home
rpool/swap                1019M   10.1G    595M   -

Both opensolaris-4 and opensolaris-5 ware mounted in the "/" directory.
So to mount the only one BE:opensolaris-5 in there, took the following procedures.

Move the previous BE: opensolaris-4 to the directory /BE
# zfs set mountpoint=/BE/opensolaris-4 rpool/ROOT/opensolaris-4
# zfs mount rpool/ROOT/opensolaris-4
# zfs unmount rpool/ROOT/opensolaris-4

Then only the BE:opensolaris-5 ware mounted in the "/" directory.
$ pfexec zfs list
NAME                       USED    AVAIL   REFER   MOUNTPOINT
rpool                      29.4G   9.73G     83K    /rpool
rpool/ROOT                 15.0G   9.73G     19K    legacy
rpool/ROOT/opensolaris     49.3M   9.73G   7.02G    /BE/opensolaris
rpool/ROOT/opensolaris-4   22.3M   9.73G   11.3G    /BE/opensolaris-4
rpool/ROOT/opensolaris-5   14.9G   9.73G   11.4G    /
rpool/dump                 1019M   9.73G   1019M    -
rpool/export               12.4G   9.73G     21K    /export
rpool/export/home          12.4G   9.73G   12.4G    /export/home
rpool/swap                 1019M   10.1G    595M    -

BE(Boot Environment) の確認:confirm the current BE.
$ pfexec beadm list
BE          Active  Mountpoint  Space  Policy  Created
--          ------ -----------  -----  ------  -------
opensolaris -       -           49.27M static 2009-04-20 16:49
opensolaris-4 -     -           22.27M static 2009-05-07 10:11
opensolaris-5 NR /              18.38G static 2009-05-31 00:57

$ uname -a
SunOS xxxxxx 5.11 snv_111b i86pc i386 i86pc Solaris

$ more /etc/release
OpenSolaris 2009.06 snv_111b X86
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 May 2009  

Raw Disk Device の確認:
$ pfexec format
Searching for disks...done
AVAILABLE DISK SELECTIONS: 0.
c9d0 /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0 
Specify disk (enter its number): 0 
selecting c9d0 
NO Alt slice No defect list found [disk formatted, no defect list found]
/dev/dsk/c9d0s0 is part of active ZFS pool rpool. 
Please see zpool(1M).  

GRUB ブートメニューの編集 (Edit my grub boot menu)  

$ pfexec vi /boot/grub/menu.lst 
------------------------------------------------------------------------

## Triple boot system: opensolaris preview snv_111b, ubuntu 9.04 Jaunty, Windoz XP SP3
## Grub Boot Menu has been modified by Baian on Sunday, May/31th/2009
##

splashimage /boot/grub/splash.xpm.gz 
background 215ECA 
timeout 15 
default 0 

# title opensolaris-5 verbose mode 
title opensolaris 2009.06 based on snv_111b (verbose mode) 
findroot (pool_rpool,2,a) 
bootfs rpool/ROOT/opensolaris-5 
# splashimage /boot/solaris.xpm 
# foreground d25f00 
# background 115d93 
# kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS -v
module$ /platform/i86pc/$ISADIR/boot_archive

# Unknown partition of type 5 found on /dev/rdsk/c9d0p0 partition: 4 
# It maps to the GRUB device: (hd0,3) . 

##
## ====== Added from ubuntu 9.04 /boot/grub/menu.lst =====

# title Ubuntu 9.04 Jaunty Jackalope, kernel 2.6.28-11-generic (quiet splashy mode)
# uuid dec16e4b-f793-46ad-ac09-09f80f8e41ba
# root (hd0,4)
# kernel /vmlinuz-2.6.28-11-generic root=UUID=3496cec6-c9bf-448c-96e2-b3ff63f4d1b8 ro quiet splash
# initrd /initrd.img-2.6.28-11-generic
# quiet

title Ubuntu 9.04 Jaunty Jackalope, kernel 2.6.28-11-generic 
root (hd0,4) # add boot directory
# uuid dec16e4b-f793-46ad-ac09-09f80f8e41ba
kernel /vmlinuz-2.6.28-11-generic root=UUID=3496cec6-c9bf-448c-96e2-b3ff63f4d1b8 NETWORKING_IPV6=no ro video=vesa:ywrap,mtrr vga=0x317
initrd /initrd.img-2.6.28-11-generic

title Ubuntu 9.04 Jaunty Jackalope, kernel 2.6.28-11-generic (recovery mode) 
root (hd0,4) # add boot directory
# uuid dec16e4b-f793-46ad-ac09-09f80f8e41ba
kernel /vmlinuz-2.6.28-11-generic root=UUID=3496cec6-c9bf-448c-96e2-b3ff63f4d1b8 NETWORKING_IPV6=no ro single video=vesa:ywrap,mtrr vga=0x317
initrd /initrd.img-2.6.28-11-generic

title Ubuntu Jaunty, memtest86+
#uuid dec16e4b-f793-46ad-ac09-09f80f8e41ba
root (hd0,4)
kernel /memtest86+.bin
quiet

title Windows XP Professional +SP3
rootnoverify (hd0,0)
chainloader +1 

##===== End of ubuntu 9.04 added from /boot/grub/menu.lst =====

title opensolaris preview 2009.06 based on snv_111a (prev) 
# title opensolaris-4 
findroot (pool_rpool,2,a) 
bootfs rpool/ROOT/opensolaris-4 
# splashimage /boot/solaris.xpm 
# foreground d25f00 # background 115d93 
# kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS, -v 
module$ /platform/i86pc/$ISADIR/boot_archive

#============ End of LIBBE entry ======================== 


GRUB の再インストール 
$ pfexec /sbin/installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/dsk/c9d0s0
$ reboot

*Note:
Platform/Dell Latitude D410, Intel Pentium M1.6GHz, Intel 915GM, SODIMM 2045MB(533MHz), 40GB/160GB

追記:2009-June-03(Wed) 一連のパッケージアップデートによって、OpenSolaris 2009.06 正式版にアップグレードされた模様である。

0 Comments::