Upgrading Solaris 10 to Nevada

Posted by Doomshammer on Sunday, September 2. 2007 at 23:21 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts

As I am still running a very old version of Solaris 10 on one of my boxes, I wanted to verify if an upgrade to one of the current builds works w/o issues. So I downloaded Solaris Nevada build 64 and burned on DVD.

As expected the installer directly noticed that there is already Solaris installed on my disk, so it asked if I wanna upgrade. I selected "Upgrade" and the installer started working. It took about 2.5 hours, but no problem occured. The system rebooted and finally snv b64 started booting. I was very surprised that even the RAID-1 on the two root disks was still intact and that the system bootet from it - awesome :-)

After logging in, I noticed that the zpool (where my home directory lifes) was broken. All drives were unavailable and so I wasn't able to take it online again - probably as the ZFS pool was legacy version 3 and the current version of b64 is v6. Anyhow, as ZFS is pretty smart it was very easy to recover it...

QUOTE:
        NAME         STATE     READ WRITE CKSUM
        pool1        UNAVAIL      0     0     0  insufficient replicas
          raidz1     UNAVAIL      0     0     0  insufficient replicas
            c1t2d0   UNAVAIL      0     0     0  cannot open
            c1t3d0   UNAVAIL      0     0     0  cannot open
            c1t4d0   UNAVAIL      0     0     0  cannot open
            c1t5d0   UNAVAIL      0     0     0  cannot open
            c1t6d0   UNAVAIL      0     0     0  cannot open
            c1t8d0   UNAVAIL      0     0     0  cannot open
            c1t9d0   UNAVAIL      0     0     0  cannot open
            c1t10d0  UNAVAIL      0     0     0  cannot open
            c1t11d0  UNAVAIL      0     0     0  cannot open


I booted into single user mode (-m milestone=single) and removed the ZFS cache file (/etc/zfs/zfs.cache). Then I continued the boot sequence by running svcadm milestone all, to get into the multi-user milestone. A 'zpool status' confirmed that there was no zpool available anymore. Now I simply executed 'zpool import pool1' and my pool was online and healthy again - followed by 'zpool upgrade pool1' my pool was upgraded to v6 and that's it! :-)

QUOTE:
        NAME         STATE     READ WRITE CKSUM
        pool1        ONLINE       0     0     0
          raidz1     ONLINE       0     0     0
            c1t2d0   ONLINE       0     0     0
            c1t3d0   ONLINE       0     0     0
            c1t4d0   ONLINE       0     0     0
            c1t5d0   ONLINE       0     0     0
            c1t6d0   ONLINE       0     0     0
            c1t8d0   ONLINE       0     0     0
            c1t9d0   ONLINE       0     0     0
            c1t10d0  ONLINE       0     0     0
            c1t11d0  ONLINE       0     0     0


Love it! :-) Now i'm safe to upgrade my old system, as my test-system upgrade worked better than expected :-)

The broken ramdisk issue

Posted by Doomshammer on Saturday, September 1. 2007 at 18:27 in Anwendungen, English only, Linux/Unix, Privat

Some days ago I downloaded the latest Solaris Express Community Release (build 70) as I wanted to try out booting from a ZFS root. But after the installation was done, I ran into some troubles.

The installer automatically rebooted after the installation was done, GRUB came up as expected, but when I selected the corresponding SXCR b70 kernel, I ended up in an error I haven't seen before.

QUOTE:
start = 0x2000, size = 0x2000
diskread: reading beyond end of ramdisk
krtld: failed to open '/platform/i86pc/kernel/amd64/unix'
[...]


I asked in #opensolaris on Freenode, but nobody was able to provide help. So I tried figuring out what's wrong. I checked bootenv.rc if bootpath was set correctly, I added root(hd0,0,a) to the menu.lst of GRUB, reinstalled GRUB and mboot to the MBR but all I did, didn't help. Finally after re-reading the error message several times, I finally noticed the "reading beyond end of ramdisk". Sounded somehow odd to me - why should the bootload read beyond the ramdisk?

So I booted into failsafe again, mounted c1t0d0s0 to /a and started rebuilding the ramdisk:
QUOTE:
# /boot/solaris/bin/create_ramdisk -R /a

Followed by init 6 which directly updated boot_archive (which is good, as this means that the system noticed, that the ramdisk with the boot image has changed).

Indeed the rebuild of the ramdisk helped, as - after the box has been rebooted - the system came up as expected.

Calendar

Back May '13
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

ERROR: The HTTP server returned the error or the warning(result:403).

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL