A place for Unix Thoughts and Ideas

Storage Foundation 5.1 Sp1 issues with Local zones

When Storage Foundation 5.1 Sp1 was released last year, I finally decided that it was time to start upgrading my servers to the new version.

I immediately found that the software was having issues with ODM.

The issues were different depending if it was a upgrade or a fresh install.

For fresh installs of 5.1, the vxodm service will fail to start:

root@testzone-01 # svcs -xv
svc:/system/vxodm:default (VERITAS Oracle Disk Manager)
State: offline since Fri Jan 27 13:27:52 2012
Reason: Dependency svc:/system/vxfs/vxfsldlic is absent.
See: http://sun.com/msg/SMF-8000-E2
See: man -M /opt/VRTS/man -s 1 mount_odm
Impact: This service is not running.

This is due to vxfsldlic missing in the local zone.

For upgrades, if you do a upgrade on attach, you will see the following error in the update_log for the installation of VRTSodm

===== VRTSodm ====
/var/tmp//installcgaGlC/checkinstallegaGlC: /tmp/sh144290: cannot create
pkgadd: ERROR: checkinstall script did not complete successfully

Installation of on zone failed.
No changes were made to the system.

To Fix this you have to remove and reinstall VRTSodm and the apply its patch from the Global zone. This is inaddtion to the fixes for vxfsldic.

For Fresh installs, here is a script I wrote for fixing the zone configuration. The script will copy the vxfsldlic manifest to the zone, import and then enable it.
Run this with your zones attached and booted. You will probably need to run this for any zones you create in the future.


if [ $# -ne 1 ]; then
        echo Error!
        echo Usage: $0 zonename
        exit 1

zoneadm list -c | egrep -v '^global$' | egrep -s "^${ZONE}$"
if [ "$?" != "0" ];then
        echo Error!
        echo Can\'t find Zone named $ZONE
        exit 2

i=`zoneadm list -v | tail +3 | grep ${ZONE} | awk '{print $4}'`
mkdir ${i}/root/var/svc/manifest/system/vxfs
if [ -d ${i}/root/var/svc/manifest/system/vxfs ] ; then
        cp /var/svc/manifest/system/vxfs/vxfsldlic.xml ${i}/root/var/svc/manifest/system/vxfs
        cp /lib/svc/method/vxfsldlic ${i}/root/lib/svc/method

zlogin $ZONE svccfg import /var/svc/manifest/system/vxfs/vxfsldlic.xml 
zlogin $ZONE svcadm enable vxfsldlic
zlogin $ZONE svcadm enable vxodm

For upgrades, here is a script I wrote for fixing the issues. Run this with your zones attached and running and this will fix all running zones on your system.

It assumes that you have the VRTSodm.pkg from the 5.1 SP1 media in the local directory as well patch 143271-01, which is the odm patch from the 5.1 SP1 RP2 bundle.

You can update that patch number in the script as newer versions come out

patchrm 143271-07
yes | pkgrm VRTSodm
yes | pkgadd -d ./VRTSodm.pkg all
patchadd 143271-07

for i in `zoneadm list -v | tail +3 | awk '{print $4}'` ; do
        mkdir ${i}/root/var/svc/manifest/system/vxfs
        if [ -d ${i}/root/var/svc/manifest/system/vxfs ] ; then
                cp /var/svc/manifest/system/vxfs/vxfsldlic.xml ${i}/root/var/svc/manifest/system/vxfs
                cp /lib/svc/method/vxfsldlic ${i}/root/lib/svc/method

for i in `zoneadm list | grep -v global`;do
        zlogin $i svccfg import /var/svc/manifest/system/vxfs/vxfsldlic.xml 
        zlogin $i svcadm enable vxfsldlic
        zlogin $i svcadm enable vxodm

After applying the fixes, you should be able to fully use ODM in your zones.

BTW, while the vxfsldlic issues is mentioned in the release notes, the VRTSodm package install issue is not.

I wouldn’t be surprised if this is the reason why non global zones are not supported on Storage Foundation 6.0.


One response to “Storage Foundation 5.1 Sp1 issues with Local zones

  1. Janusz June 27, 2013 at 4:34 am

    I see You have made this upgrade last year.
    Did You do it via LiveUpgrade ?

    I am planning an upgrade of Solaris 10 8/11 sparc server which by now has SF5.0MP3RP2 installed.

    It is a system with zones, the root fs is on a SVM-ufs volume. We plan to move to SF5.1SP1 and Solaris 1/13 ie u11.

    In a doc, included with the install package: sf_install_51sp1_sol.pdf , in a chapter 17 section: “Supported upgrade paths for Live Upgrade” there is a statement:

    “For Live Upgrade, if the alternative root environment also has a zone, you cannot
    install VRTSodm. You must remove the VRTSodm package first then install the
    Storage Foundation product. After you reboot the alternative root, you can install

    But when I read the doc on the web: http://sfdoccentral.symantec.com/sf/5.1/solaris/ht

    I do not see any special info about VRTSodm there.
    So my question is, which one is right ?

    Does VRTSodm need that special treatment during Live Upgrade?

    Thanks in advance

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: