Showing posts with label Sun. Show all posts
Showing posts with label Sun. Show all posts

Wednesday, July 30, 2008

Upgrading OpenSolaris

Updated: Dec 12, 2008
OpenSolaris 2008.11 is officially out. Download link here. The new version is far superior than 2008.05 with a lot of new features and bug fixes.

=====


I just upgraded my OpenSolaris box from build86 (the version installed from the CD image) to build 93. To get the build number of your existing system, use 'uname -v' and it will show 'snv_xx' where xx is the build number. This post only discusses the upgrade from snv_86 to snv_93.

The upgrade process is not straightforward. First of all, use 'upgrade all' or install the 'entire' package in Package Manager will render the system unbootable because of changes in GRUB boot system. Second, direct 'image-update' may also fail due to another bug. Therefore we will do the update manually by creating and updating another BE (Build Environment).

My main reference is this post from OpenSolaris forum. I will list (read: copy directly from the post) the instructions that worked for me. Despite the dollar sign ($) at the following commands, you need root privilege to proceed.

Again, standard warnings in place: back up your important data, don't believe anything on internet, use at your own risk, call your mum, yadi yada.


Steps:
  1. Make sure the latest version of IPS software is installed

    $ BUILD=`uname -v | sed s/snv_//`
    $ pfexec pkg refresh
    $ pfexec pkg install SUNWipkg@0.5.11-0.$BUILD

  2. We will build our BE (Build Environment) manually:

    First, display the list of the existing BEs on the system

    $ beadm list
    BE Active Active on Mountpoint Space
    Name reboot Used
    ---- ------ --------- ---------- -----
    opensolaris yes yes legacy 2.23G

  3. Here we can see the machine only has one BE namely 'opensolaris'. We need to create another BE and populate it with build 93 files. After we are done, we tell opensolaris to boot the new BE in the next restarting of the machine. By convention, let's call the new BE 'opensolaris-'. Note the trailing hyphen (-).

  4. Execute the following sequence of commands to create, mount and update the new BE

    $ pfexec beadm create opensolaris-
    $ mkdir /tmp/mnt$$
    $ pfexec beadm mount opensolaris- /tmp/mnt$$
    $ pfexec pkg -R /tmp/mnt$$ image-update

  5. !!!IMPORTANT!!!: Failure to perform this step will render your machine a piece of dead meat. Update the GRUB configuration on your ZFS boot device(s):

    $ pfexec /tmp/mnt$$/boot/solaris/bin/update_grub -R /tmp/mnt$$

  6. Unmount and activate the newly created BE

    $ pfexec beadm unmount opensolaris-
    $ pfexec beadm activate opensolaris-

  7. [Optional] You can delete the old BE using beadm. Refer to the man page or google around...
  8. Reboot and you should be good to go. :)

Wednesday, June 04, 2008

Why Sun Has Potential

Sun Microsystems (Nasdaq: Java) should be quite a familiar name to techies, at least to those who are around my age.

Long long time ago when Linux was immature and M$ was shitty, Sun computer's Unix heritage and the Ultra-Sparc architecture at one time was synonymous to high computing power and solid performance.

Unfortunately, the past years Sun was not paranoid enough to sense how the market landscape has been changing: Moore's Law charges forward, and some OSes have advanced enough to be suitable for public consumption (what get in my mind are, in no particular order, Linux, BSD series of Unix including OS X, and Windows XP. Though I am no big fan of M$, but honestly I must admit Windows XP, up until SP2, is a pretty decent and usable OS now)

Sun got back to my radar when it introduced its open-source Niagara 2 processor. At that time I thought it was a publicity gimmick, because come on, how many people will and can manufacture processor in this world? Hacking processor source code for fun anyone? Not me.

Then Sun introduced the OpenSolaris with the ultra sexy ZFS. The development is getting more and more interesting when Sun acquires MySQL. Now Sun has in hand an impressive system portfolio which consists of processors, OS with fail-safe file system, and a database.

With the patents it currently holds, it is not likely those technologies will be implemented in competing products. To me, it seems Sun has the potential to be the Apple in the high margin, lucrative server market. The potential lies in a total solution for customers. Right until now, there is no single company that provides an integrated solution from chips to database.

There sits a huge market for servers. The tricky question is how Sun is gonna to monetize the products?

I must point out there is still a long way before Sun can build an eco-system that brings in profit. Cuppa's few pointers for Sun:
  • Make an impeccable system with all hardware and software components play well with each other. Apple is a good example
  • Maximize the adoption of its platforms so that there is a critical mass of people who are comfortable in using Solaris
  • Price the product competitively, especially in the early years where not many people have used Sun products before
Finally, will I buy its share now? I will say no, because I foresee there will be turbulences ahead. It will need sometime to digest the MySQL acquisition. However if I were to start a company, I will get a Sun server/workstation if its price is sane enough.

With the current price of $12.41 and PE ratio of 16.90, I think there will be more downward movement. I feel a PE ratio of 12 is more reasonable, which translates to a price of $8.81.

Recommendation: Wait and See if you wanna buy its shares