Lee Packham’s Corner
The rants of a software busy body
  • Home
  • Gallery
  • About
  • dtrace Stuff

Open Solaris Category

pkgsrc and OpenSolaris 2008.05 - made easy

Open Solaris 1 Comment »

This is something that’s been bugging me for ages. I could not easily make pkgsrc bootstrap and compile packages under OpenSolaris. Today I cracked it:

  1. Grab the latest stable tarball and gtar xzf it somewhere sensible (under /usr is good).
  2. pfexec pkg install SUNWgcc sunstudioexpress SUNWgmake
  3. pfexec pkg install SUNWxwinc
  4. pfexec pkg install SUNWcvs SUNWgnome-common-devel
  5. su
  6. cd /usr/pkgsrc/bootstrap
  7. export PATH=/usr/ccs/bin:$PATH
  8. ./bootstrap
  9. <patience>
  10. Edit your .bash_profile to make sure /usr/pkg is in your path

And you’re done! Working a charm for me here.


September 12th, 2008 |



Adding disks in ESXi to OpenSolaris

Open Solaris 1 Comment »

Cool, I’ve got my VM up and running with OpenSolaris 2008.05 @ snv_95 in ESXi 3.5 U2 on my nice new server.

Now - to add more disks. I wanted to add 3 new hard disks to use RAID-Z. Obviously I would be using 3 physically seperate disks, but make vmdk’s on each of them. I wanted to do this without rebooting at all, and manged it. Here’s how:

  1. Create new DataStores in the VMware Infrastructure Manager.
  2. Add 3 new virtual hard disks to the VM, making sure they are all the same size but on 3 different data stores.
  3. Apply the changes
  4. SSH into the VM (or use the console… SSH is better)
  5. pfexec devfsadm -c disk
  6. pfexec zpool create <name here> raidz c4t1d0p0 c4t2d0p0 c4t3d0p0

Obviously device nodes might be different, those were what they were for me. Was very nice to be able to do this with zero downtime on the server itself.

Step 5 forces Solaris to reload the /dev structure in relation to disks. Means all the new /dev/rdsk and /dev/dsk nodes are created without the normal reboot. Step 6, obviously, is the creation of the zpool. Once you have that - go ahead and store lots of stuff!


August 17th, 2008 |



  • Friend's Blogs/Sites

    • David Rickard
    • Lloyd Pick
    • Michael Smith
  • Recent Posts

    • Is it any wonder the world is infested with spam?
    • The Wowhead Christmas Wallpaper
    • Unibody Macbook Pro constantly waking up
    • How Warcraft reigned supreme in 2008
    • CRY vs. DRY
  • Archives

    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • November 2007
    • October 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • January 2007
    • December 2006
    • October 2006
    • September 2006
  • Recent Tracks (last.fm)

    • Nickelback – Gotta Be Somebody 18 hours ago
    • Nickelback – Burn It to the Ground 18 hours ago
    • Nickelback – Something in Your Mouth 18 hours ago
    • Lisa Miskovsky – Still Alive (The Theme from Mirror's Edge) (Paul Van Dyk Mix) 18 hours ago
    • The Prodigy – Charly 22 hours ago
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Copyright © 2009 Lee Packham’s Corner All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress