Archive for March, 2010

MegaRAID PERC 3/SC on Opensolaris

Friday, March 12th, 2010

Opensolaris (as new as snv_133) does not automatically detect disks on this hardware (specifically on an older Dell PowerEdge 6000SC). I did the following on the LiveCD to get it to work:

add_drv -i ‘pci1028,475′ lsimega

I got the numbers above from the “prtpicl” tool, using “prtpicl -v” and searching for MegaRaid:

:name      pci1028,475
sd (block, b6000002f8)
:class         scsi
:inquiry-device-type   0
:inquiry-vendor-id     MegaRAID
:inquiry-product-id    LD 0 RAID0  139G

Hope this helps someone other than myself. I also added a blank file named “ADD_DRV_IGNORE_ROOT_BASEDIR” to / as per a bug post but I do not believe that had any effect. I did stumble a bit before I found this (chasing around a PERC 5 driver) but I don’t recall trying to install this driver beforehand.

OpenSolaris – What do you do when your image-update doesn’t work?

Thursday, March 4th, 2010

I’ve been a long time user of/tinkerer with OpenSolaris on my desktop (for the obvious reasons: Time Slider, ZFS, DTrace, etc). I am going to start posting tips & tricks. To start off, here is one way I have found to “fix” a “pkg image-update” failure. All it does is create a new boot environment and install to it, which can solve a lot of the problems that might occur when running on the pkg.opensolaris.org/dev repository when you update:

beadm create osol-snv_1XX
mkdir /mnt/osol-snv_1XX
beadm mount osol-snv_1XX /mnt/osol-snv_1XX
pkg -R osol-snv_1XX install SUNWipkg
pkg -R osol-snv_1XX image-update
bootadm update-archive -R /mnt/osol-snv_1XX
beadm activate osol-snv_1XX

Notes:

  1. osol-snv_1XX is simply the name you give the new boot environment. XX being the snv version (currently 133).
  2. beadm is the command for working with boot environments in zfs. Create makes a snapshot, mount mounts it to a particular directory, and activate makes it the default on the next reboot.
  3. pkg -R does the update on the alternate boot env.
  4. bootadm adds the boot environment to grub (update the archive using that directory as the root is what we are telling it to do here, just like the pkg -R cmd).

If someone visiting this blog has alternate methods, I’d be interested in knowing about it.