Aubrey Li
2008-May-15 07:38 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
Hi all, I''m new to zfs. Recently I compiled ON successfully on OpenSolaris 200805 release. So I want to upgrade kernel by my own image. Following the cap-eye-install, I got a tar ball and extract it under "/". I also added a entry in /rpool/boot/grub/menu.lst to boot my own kernel. After I selected the new enty on the grub menu, I was told kernel want to mount ufs, not zfs. Am I on the right way? Is there any guide doc about this issue? Thanks for your help! -Aubrey
Aubrey Li
2008-May-15 09:38 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
On Thu, May 15, 2008 at 3:38 PM, Aubrey Li <aubreylee at gmail.com> wrote:> Hi all, > > I''m new to zfs. > Recently I compiled ON successfully on OpenSolaris 200805 release. > So I want to upgrade kernel by my own image. > Following the cap-eye-install, I got a tar ball and extract it under "/". > I also added a entry in /rpool/boot/grub/menu.lst to boot my own kernel. > After I selected the new enty on the grub menu, I was told kernel want to > mount ufs, not zfs. > Am I on the right way? Is there any guide doc about this issue? >Here is the error on my side: SunOS Release 5.11 Version cpupm-gate 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. DEBUG enabled NOTICE: mount: not a UFS magic number (0x0) panic[cpu0]/thread=fffffffffbc250e0: cannot mount root path /ramdisk:a fffffffffbc44f80 genunix:rootconf+113 () fffffffffbc44fd0 genunix:vfs_mountroot+65 () fffffffffbc45010 genunix:main+128 () fffffffffbc45020 unix:_locore_start+92 () skipping system dump - no dump device configured I really appreciate any suggestions! Thanks, -Aubrey
Hi, Aubrey Could you point the entry you added into menu.lst? I think it might be the issue that syntax not correct. Thanks. Aubrey Li wrote: On Thu, May 15, 2008 at 3:38 PM, Aubrey Li wrote: Hi all, I''m new to zfs. Recently I compiled ON successfully on OpenSolaris 200805 release. So I want to upgrade kernel by my own image. Following the cap-eye-install, I got a tar ball and extract it under "/". I also added a entry in /rpool/boot/grub/menu.lst to boot my own kernel. After I selected the new enty on the grub menu, I was told kernel want to mount ufs, not zfs. Am I on the right way? Is there any guide doc about this issue? Here is the error on my side: SunOS Release 5.11 Version cpupm-gate 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. DEBUG enabled NOTICE: mount: not a UFS magic number (0x0) panic[cpu0]/thread=fffffffffbc250e0: cannot mount root path /ramdisk:a fffffffffbc44f80 genunix:rootconf+113 () fffffffffbc44fd0 genunix:vfs_mountroot+65 () fffffffffbc45010 genunix:main+128 () fffffffffbc45020 unix:_locore_start+92 () skipping system dump - no dump device configured I really appreciate any suggestions! Thanks, -Aubrey _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss -- Regards, Robin Guo, Xue-Bin Guo Solaris Kernel and Data Service QE, Sun China Engineering and Reserch Institute Phone: +86 10 82618200 +82296 Email: robin.guo@sun.com Blog: http://blogs.sun.com/robinguo _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Aubrey Li
2008-May-15 13:22 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
Robin Guo wrote:> Hi, Aubrey > > Could you point the entry you added into menu.lst? I think it might be > the > issue that syntax not correct. >Here is my menu.lst: aubrey at aubrey-os:~/work/cpupm-gate$ cat /rpool/boot/grub/menu.lst splashimage /boot/grub/splash.xpm.gz timeout 30 default 0 #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- title OpenSolaris 2008.05 snv_86_rc3 X86 bootfs rpool/ROOT/opensolaris kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS module$ /platform/i86pc/$ISADIR/boot_archive #---------------------END BOOTADM-------------------- #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- title OpenSolaris 2008.05 snv_86_rc3 X86 bootfs rpool/ROOT/opensolaris kernel$ /platform/i86pc/kernel.mine/$ISADIR/unix -B $ZFS-BOOTFS module$ /platform/i86pc/$ISADIR/boot_archive #---------------------END BOOTADM-------------------- #============ End of LIBBE entry =============
Darren J Moffat
2008-May-15 13:34 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
Aubrey Li wrote:> Robin Guo wrote: >> Hi, Aubrey >> >> Could you point the entry you added into menu.lst? I think it might be >> the >> issue that syntax not correct. >> > > Here is my menu.lst: > > aubrey at aubrey-os:~/work/cpupm-gate$ cat /rpool/boot/grub/menu.lst > splashimage /boot/grub/splash.xpm.gz > timeout 30 > default 0 > #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- > title OpenSolaris 2008.05 snv_86_rc3 X86 > bootfs rpool/ROOT/opensolaris > kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS > module$ /platform/i86pc/$ISADIR/boot_archive > #---------------------END BOOTADM-------------------- > #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- > title OpenSolaris 2008.05 snv_86_rc3 X86 > bootfs rpool/ROOT/opensolaris > kernel$ /platform/i86pc/kernel.mine/$ISADIR/unix -B $ZFS-BOOTFS > module$ /platform/i86pc/$ISADIR/boot_archive > #---------------------END BOOTADM-------------------- > #============ End of LIBBE entry ============You are loading your kernel but using the boot_archive from the already existing one, you need to fix the module$ path to the boot_archive. Also I think you should probably choose a different "title" so you actually know which entry is booting each kernel. -- Darren J Moffat
Aubrey Li
2008-May-15 13:48 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
On Thu, May 15, 2008 at 9:34 PM, Darren J Moffat <Darren.Moffat at sun.com> wrote:> Aubrey Li wrote: >> >> Robin Guo wrote: >>> >>> Hi, Aubrey >>> >>> Could you point the entry you added into menu.lst? I think it might be >>> the >>> issue that syntax not correct. >>> >> >> Here is my menu.lst: >> >> aubrey at aubrey-os:~/work/cpupm-gate$ cat /rpool/boot/grub/menu.lst >> splashimage /boot/grub/splash.xpm.gz >> timeout 30 >> default 0 >> #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- >> title OpenSolaris 2008.05 snv_86_rc3 X86 >> bootfs rpool/ROOT/opensolaris >> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS >> module$ /platform/i86pc/$ISADIR/boot_archive >> #---------------------END BOOTADM-------------------- >> #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- >> title OpenSolaris 2008.05 snv_86_rc3 X86 >> bootfs rpool/ROOT/opensolaris >> kernel$ /platform/i86pc/kernel.mine/$ISADIR/unix -B $ZFS-BOOTFS >> module$ /platform/i86pc/$ISADIR/boot_archive >> #---------------------END BOOTADM-------------------- >> #============ End of LIBBE entry ============> > You are loading your kernel but using the boot_archive from the already > existing one, you need to fix the module$ path to the boot_archive. > > Also I think you should probably choose a different "title" so you actually > know which entry is booting each kernel. >After build ON, I use cap-eye-install to install my own kernel image. # Install -G kernel.mine -k i86pc # tar xf /tmp/Install.aubrey/Install.i86pc.tar I have no idea how to create another boot_archive, Isn''t the existing boot_archive fit for zfs-rootfs boot? Thanks, -Aubrey
Mckay, Al
2008-May-15 14:10 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfsplatform
Remove me from this group!!! Al McKay EDS - Enterprise Labs Mail Stop 1A 585 South Blvd Pontiac, MI 48341 ( Phone:+1-248-365-1178) + mailto:al.mckay at eds.com pager: 866-693-0157 pager mail: 8666930157 at skytel.com -----Original Message----- From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss-bounces at opensolaris.org] On Behalf Of Aubrey Li Sent: Thursday, May 15, 2008 9:22 AM To: Robin Guo Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] how to upgrade kernel by my own on root-zfsplatform Robin Guo wrote:> Hi, Aubrey > > Could you point the entry you added into menu.lst? I think it mightbe> the > issue that syntax not correct. >Here is my menu.lst: aubrey at aubrey-os:~/work/cpupm-gate$ cat /rpool/boot/grub/menu.lst splashimage /boot/grub/splash.xpm.gz timeout 30 default 0 #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- title OpenSolaris 2008.05 snv_86_rc3 X86 bootfs rpool/ROOT/opensolaris kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS module$ /platform/i86pc/$ISADIR/boot_archive #---------------------END BOOTADM-------------------- #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- title OpenSolaris 2008.05 snv_86_rc3 X86 bootfs rpool/ROOT/opensolaris kernel$ /platform/i86pc/kernel.mine/$ISADIR/unix -B $ZFS-BOOTFS module$ /platform/i86pc/$ISADIR/boot_archive #---------------------END BOOTADM-------------------- #============ End of LIBBE entry ============_______________________________________________ zfs-discuss mailing list zfs-discuss at opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Tomas Ögren
2008-May-15 14:53 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfsplatform
On 15 May, 2008 - Mckay, Al sent me these 1,7K bytes:> Remove me from this group!!!Taken from the headers of your own mail: List-Unsubscribe: <http://mail.opensolaris.org/mailman/listinfo/zfs-discuss>, <mailto:zfs-discuss-request at opensolaris.org?subject=unsubscribe> /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
Aubrey Li
2008-May-15 15:12 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
On Thu, May 15, 2008 at 11:17 PM, Robin Guo <Robin.Guo at sun.com> wrote:> Yes, you may need to check if following steps are also done. > > mount -F zfs rpool/ROOT/opensolaris /mntmount failed: Device busy> bootadm update-archive -R /mnt > zpool set bootfs=rpool/ROOT/opensolaris rpooldepends the first step, :-) Thanks, -Aubrey
Robin Guo
2008-May-15 15:15 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
Hi, Aubrey, Do you ever do installgrub to the slice, and boot up from the disk/slice where ZFS resides on? It should be # mount -F zfs rpool/ROOT/opensolaris /mnt # installgrub /mnt/boot/grub/stage1 /mnt/boot/grub/stage2 /dev/rdsk/<slice> I think if not do installgrub, the grub is still boot from UFS slice. Aubrey Li wrote:> Robin Guo wrote: > >> Hi, Aubrey >> >> Could you point the entry you added into menu.lst? I think it might be >> the >> issue that syntax not correct. >> >> > > Here is my menu.lst: > > aubrey at aubrey-os:~/work/cpupm-gate$ cat /rpool/boot/grub/menu.lst > splashimage /boot/grub/splash.xpm.gz > timeout 30 > default 0 > #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- > title OpenSolaris 2008.05 snv_86_rc3 X86 > bootfs rpool/ROOT/opensolaris > kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS > module$ /platform/i86pc/$ISADIR/boot_archive > #---------------------END BOOTADM-------------------- > #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- > title OpenSolaris 2008.05 snv_86_rc3 X86 > bootfs rpool/ROOT/opensolaris > kernel$ /platform/i86pc/kernel.mine/$ISADIR/unix -B $ZFS-BOOTFS > module$ /platform/i86pc/$ISADIR/boot_archive > #---------------------END BOOTADM-------------------- > #============ End of LIBBE entry ============> _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080515/edf11092/attachment.html>
Robin Guo
2008-May-15 15:17 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
Yes, you may need to check if following steps are also done. mount -F zfs rpool/ROOT/opensolaris /mnt bootadm update-archive -R /mnt zpool set bootfs=rpool/ROOT/opensolaris rpool Aubrey Li wrote:> On Thu, May 15, 2008 at 9:34 PM, Darren J Moffat <Darren.Moffat at sun.com> wrote: > >> Aubrey Li wrote: >> >>> Robin Guo wrote: >>> >>>> Hi, Aubrey >>>> >>>> Could you point the entry you added into menu.lst? I think it might be >>>> the >>>> issue that syntax not correct. >>>> >>>> >>> Here is my menu.lst: >>> >>> aubrey at aubrey-os:~/work/cpupm-gate$ cat /rpool/boot/grub/menu.lst >>> splashimage /boot/grub/splash.xpm.gz >>> timeout 30 >>> default 0 >>> #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- >>> title OpenSolaris 2008.05 snv_86_rc3 X86 >>> bootfs rpool/ROOT/opensolaris >>> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS >>> module$ /platform/i86pc/$ISADIR/boot_archive >>> #---------------------END BOOTADM-------------------- >>> #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- >>> title OpenSolaris 2008.05 snv_86_rc3 X86 >>> bootfs rpool/ROOT/opensolaris >>> kernel$ /platform/i86pc/kernel.mine/$ISADIR/unix -B $ZFS-BOOTFS >>> module$ /platform/i86pc/$ISADIR/boot_archive >>> #---------------------END BOOTADM-------------------- >>> #============ End of LIBBE entry ============>>> >> You are loading your kernel but using the boot_archive from the already >> existing one, you need to fix the module$ path to the boot_archive. >> >> Also I think you should probably choose a different "title" so you actually >> know which entry is booting each kernel. >> >> > > After build ON, I use cap-eye-install to install my own kernel image. > # Install -G kernel.mine -k i86pc > # tar xf /tmp/Install.aubrey/Install.i86pc.tar > > I have no idea how to create another boot_archive, Isn''t the existing > boot_archive > fit for zfs-rootfs boot? >> Thanks, > -Aubrey >
Aubrey Li
2008-May-16 05:10 UTC
[zfs-discuss] how to upgrade kernel by my own on root-zfs platform
On Thu, May 15, 2008 at 11:15 PM, Robin Guo <Robin.Guo at sun.com> wrote:> Hi, Aubrey, > > Do you ever do installgrub to the slice, and boot up from the > disk/slice where ZFS resides on? > > It should be > > # mount -F zfs rpool/ROOT/opensolaris /mnt > # installgrub /mnt/boot/grub/stage1 /mnt/boot/grub/stage2 > /dev/rdsk/<slice> > > I think if not do installgrub, the grub is still boot from UFS slice. >The problem on my side is solved! grub is exactly the problem. Many thanks to Robin Guo, :-) -Aubrey