A place for Unix Thoughts and Ideas

Configuring ODM devices in a Solaris 11 Zone

I was happy to see that Symantec supplied a IPS repository for Storage Foundation 6.0pr1.

I was disappointed to see that the documentation for installed and enable Storage foundation for Solaris 11 zones was incomplete and didn’t work.

After digging through the documentation and performing a little troubleshooting, here is the procedure for installing and enable ODM support for Solaris 11 Zones.

1. The first step is to add the IPS repository as a publisher &  install the packages, then unset the publisher

root@testzone: # ls
VRTSpkgs.p5p  info
pkg set-publisher -P -g `pwd`/VRTSpkgs.p5p Symantec
pkg install --accept   VRTSvlic VRTSodm VRTSperl

If you are using the Zone with VCS, you can also install the 3 VCS packages specified in the install docs

pkg install --accept   VRTSvcs VRTSvcsag VRTSvcsea

Unset the publisher

pkg unset-publisher Symantec

2. Now we will update the zone configuration to add the lofs mount for the veritas license files, the odm device mapping and then the adding permission to the zone to make a odm mount. You will want to reboot the zone after this step.

cat > /tmp/odm_zonecfg << EOF
set fs-allowed=default,odm
add fs
set dir=/etc/vx/licenses/lic
set special=/etc/vx/licenses/lic
set type=lofs
add device
set match=/dev/odm

zonecfg -z testzone-01 -f /tmp/odm_zonecfg

3. After reboot the zone, login to the zone and verify that the /dev/odm mapping is present in the zone and test the /dev/odm mount.

root@testzone-01:~# ls -d /dev/odm
root@testzone-01:~# mount -F odm /dev/odm /dev/odm
root@testzone-01:~# ls /dev/odm
cluster  ctl      fid      ktrace   stats

if you get a error on the mount such as

mount -F odm /dev/odm /dev/odm
Not owner: /dev/odm

Then the fs-allow property for the zone is not set to allow for odm filesystem types.

Now you have a working ODM configuration, However /dev/odm will not mount on reboot. This can easily be handled with a solaris service.

Here I created a service called odm_mount to handle the odm mounting at boot.  You can download a tarball of the service and install script here.

Here is the installation process

root@testzone:/var/tmp/odm_mount# ./install.sh
copying odm_mount manifest and script into place
importing odm_mount manifest and enabling service
STATE          STIME    FMRI
online         13:24:32 svc:/system/filesystem/odm_mount:default
root@testzone:/var/tmp/odm_mount# df -h /dev/odm
Filesystem             Size   Used  Available Capacity  Mounted on
/dev/odm                 0K     0K         0K     0%    /dev/odm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: