Manage your storage arrays Common Array Manager

Wednesday May 20, 2009

If you attempt to install CAM 6.4.0 or earlier into an OpenSolaris zone you'll find that the installer will exit with the following error

In a non-global zone.  You must manually install the following patches in the
global zone first:
119043-09
126539-01

What's going on here is that the version of the Sun Web Console that is bundled with CAM (version 3.0.5) requires these patches on Solaris 10 x86. The CAM installer logic assumes that a zone capable host is a Solaris 10 host (this assumption will be removed in the future) and since these patches can only be applied in the global zone it insists that they be applied before installing CAM.

To get around this you can modify line 170 in the RunMe.bin script. That line reads

found=0

If changed to

found=1

you can then install CAM into a zone. As mentioned before in this post, it is only possible to get Sun Web Console 3.0.2 on OpenSolaris.

Thursday May 14, 2009

CAM comes with two CLIs: a remotehost CLI and a localhost CLI. The remotehost CLI allows you to administrator another CAM management host. The remotehost CLI is written in Java. Due to 6771432 this CLI does not work on OpenSolaris 2008.11 assuming your are using the default system java (which is 1.6.0_10-b33). Your choices are to use java 1.6.0_07 or earlier or wait for 1.6.0_14 which is in early access. Alternatively, if you will only be accessing the localhost you can use the localhost CLI. The localhost CLI is available from /opt/SUNWstkcam/bin/sscs. The remote cli from /opt/SUNWsesscs/cli/bin/sscs.

Friday May 08, 2009

CAM uses the Sun Java Web Console to host its web application. Version 3.0.5 is bundled into the CAM distribution and is installed as required (Solaris 10 includes version 3.1 which CAM will use). In the case of OpenSolaris, which does not include any version of the Sun Java Web Console, you will end up with version 3.0.2 and not 3.0.5 after installing CAM. This is due to the fact that version 3.0.5 was actually a patch release. That is you first install 3.0.2 and then apply a patch to get to 3.0.5. Patches were released for Solaris 8, Solaris 9 and Solaris 10 --

SPARC Platform
x86 Platform

Since there are no patches for OpenSolaris there is no way to get to version 3.0.5 on an OpenSolaris host when installing CAM. In a future release we will address this and will allow the same version of the console to be installed on an OpenSolaris host.

It should be noted that Sun Web Java Console 3.0.2 does have a security vulnerability which is described here.

Wednesday May 06, 2009

Although not officially supported, CAM can be installed and used on OpenSolaris. (CAM 6.2 and earlier can not be installed in graphical mode since the installer uses java 1.4 which requires the Motif libraries; the other install modes do work). We have released patches for CAM and it was believed that since OpenSolaris includes the SVR4 patch utilities that the Solaris patches could be applied on an OpenSolaris host. Unfortunately, OpenSolaris only comes with ksh93 and the patch utilities were written using ksh88. Due to incompatbilities between ksh93 and ksh88 the patch utilities will not work. CAM is unbundled software that is released for Solaris, Windows and Linux and we intially want to release one distribution that can be used on both Solaris and OpenSolaris.

One option to get CAM or any other Solaris patches for unbundled software installed on OpenSolaris would be to get a copy of ksh88 and then use it with the patchadd script. Here are steps that worked sucessfully on 2008.11:

  1. Obtain Solaris 10 install media.
  2. Install the SUNWcsu package into an alternate root.
  3. Run the patchadd script using ksh88

For example. these commands can be used to apply the CAM 6.2 patches on a OpenSolaris 2008.11 host:

# pkgadd -R <path to tool root> -d <path to Solaris 10 install media>/Solaris 10/Product SUNWcsu

# <path to tool root>/usr/bin/ksh /usr/lib/patch/patchadd 140064-02

...

# <path to tool root>/usr/bin/ksh /usr/lib/patch/patchadd 140060-02

...

Long term this won't be a workable solution since the patch utilities are being removed from OpenSolaris. Ultimately CAM will be made available from an IPS repository (there are a few factors that prevent this today namely the CAM webapp is written to run in the Sun Java Web Console which is not present in OpenSolaris).

UPDATE (05/11/09):

Even with ksh88 the patch utilities may still not work. On a 2008.11 host with a large ZFS root (~ 114 GB), the following is seen:

Insufficient space in /var/sadm/pkg  to save old files Space
required in kilobytes 132579 Space available in kilobytes 1168640410
patchadd terminating

Without having looked at the patchadd script some sort of integer overflow is probably occuring which causes the space check to fail.

Now that CAM 6.4.0 has come out, which is a new, full package release, our recommendation is to use that version of CAM on OpenSolaris instead of CAM 6.2.