How to change the Veritas vxodm Solaris 11.4 SMF service dependent links for SMF "svc:/system/zones:default" service

book

Article ID: 100052933

calendar_today

Updated On:

Description

Description


The boot sequence has changed surrounding Solaris Local Zones related Service Management Facility (SMF) services in Solaris 11.4.
 

Figure 1.0

image.png


To ensure the Solaris Local Zones do not start before the required Veritas SMF services have all been started, Veritas recommends setting the "autoboot" zonecfg attribute to "false".

See articles:
 

Solaris 11.4 introduced changes to the boot sequence for Solaris Zone related services impacting Veritas vxodm startup
 Article: 100052932

Veritas recommends setting autoboot=false with zonecfg for Solaris Local Zones to manage the startup sequence
Article: 100052931
 

How to add a Solaris 11.4 SMF dependency within a Solaris Local Zone using zonecfg for Veritas vxodm service "svc:/system/vxodm:default"
Article: 100052934


Veritas has enhanced the vxodm dependent relationship with the Solaris SMF zone related services.

 

The steps have been outlined as follows:


1.] The odm.xml manifest file location is shown by "svcs -l svc:/system/vxodm:default"
 

# svcs -l svc:/system/vxodm:default
fmri         svc:/system/vxodm:default
name         VERITAS Oracle Disk Manager
enabled      true
state        online
next_state   none
state_time   April 21, 2022 at  5:47:10 PM IST
logfile      /var/svc/log/system-vxodm:default.log
restarter    svc:/system/svc/restarter:default
manifest     /var/svc/manifest/system/vxodm/odm.xml
dependency   optional_all/none svc:/system/gab (online)
dependency   require_all/none svc:/system/filesystem/root (online)
dependency   require_all/none svc:/system/vxfs/vxfsldlic (online)
dependency   optional_all/none svc:/system/vxvm/vxvm-recover (online)
 

 

2.] The following "dependent" section can be added after the "dependency" items within the Veritas vxodm manifest "/var/svc/manifest/system/vxodm/odm.xml" file.

 

        <dependent
</dependent
                name='vxodm_zones_dependency'
                grouping='require_all'
                restart_on='none'>
               
       


3.] Sample File contents:
 

# cat  /var/svc/manifest/system/vxodm/odm.xml


 

<service
</service
        name='system/vxodm'
        type='service'
        version='1'>

       

       

        <dependency
</dependency
                name='vxfsldlic'
                grouping='require_all'
                restart_on='none'
                type='service'>
               
       

        <dependency
</dependency
                name='gab'
                grouping='optional_all'
                restart_on='none'
                type='service'>
               
       

        <dependency
</dependency
                name='vxvm-recover'
                grouping='optional_all'
                restart_on='none'
                type='service'>
               
       

        <dependency
</dependency
                name='root'
                grouping='require_all'
                restart_on='none'
                type='service'>
               
       

        <dependent
</dependent
                name='vxodm_zones_dependency'
                grouping='require_all'
                restart_on='none'>
               
       

        <exec_method
</exec_method
                type='method'
                name='start'
                exec='/lib/svc/method/odm start'
                timeout_seconds='180' />

        <exec_method
</exec_method
                type='method'
                name='stop'
                exec='/lib/svc/method/odm stop'
                timeout_seconds='180' />

        <exec_method
</exec_method
                type='method'
                name='restart'
                exec='/lib/svc/method/odm restart'
                timeout_seconds='60' />

        <property_group
</property_group
                name='startd'
                type='framework'>
                <propval
</propval
                        name='duration'
                        type='astring'
                        value='transient' />
       

       

       
               
                       
                                VERITAS Oracle Disk Manager
                       
               
               
                        <manpage
</manpage
                                title='mount_odm'
                                section='1'
                                manpath='/opt/VRTS/man' />
               
       


 


4.] Once the odm.xml manifest changes have been implemented, the configuration changes can be validated and refreshed.

 

# svccfg validate /var/svc/manifest/system/vxodm/odm.xml
# svcadm refresh manifest-import


5.] The updated dependency can be listed multiple ways:

# svcs -l svc:/system/zones:default
fmri         svc:/system/zones:default
name         zones delegated restarter
enabled      true
state        online
next_state   none
state_time   April 21, 2022 at  5:47:10 PM IST
logfile      /var/svc/log/system-zones:default.log
restarter    svc:/system/svc/restarter:default
contract_id  191
manifest     /lib/svc/manifest/system/zones.xml
manifest     /var/svc/manifest/system/vxodm/odm.xml
manifest     /lib/svc/manifest/system/zonestat.xml
dependency   require_all/none svc:/system/vxodm (online)
dependency   optional_all/none svc:/system/pools:default (disabled) svc:/system/zones-monitoring:default (online) svc:/application/pkg/zones-proxyd:default (online)
dependency   require_all/none svc:/system/filesystem/local:default (online) svc:/milestone/devices:default (online) svc:/milestone/name-services:default (online) svc:/milestone/network:default (online)
dependency   optional_all/none svc:/system/zones-monitoring (online)
 

# svcs -d vxodm
STATE          STIME           FMRI
online         17:42:41        svc:/system/filesystem/root:default
online         17:43:29        svc:/system/vxfs/vxfsldlic:default
online         17:43:37        svc:/system/gab:default
online         17:43:41        svc:/system/vxvm/vxvm-recover:default

# svcs -d zones
STATE          STIME           FMRI
disabled       17:42:40        svc:/system/pools:default
online         17:42:54        svc:/system/filesystem/minimal:default
online         17:42:54        svc:/system/zones-monitoring:default
online         17:42:54        svc:/system/zones-monitoring:default
online         17:42:56        svc:/milestone/devices:default
online         17:43:00        svc:/milestone/network:default
online         17:43:01        svc:/milestone/name-services:default
online         17:43:29        svc:/system/filesystem/local:default
online         17:47:10        svc:/system/vxodm:default
online         17:47:13        svc:/application/pkg/zones-proxyd:default

# svcs -D svc:/system/vxodm:default
STATE          STIME           FMRI
online         17:43:43        svc:/system/vcs:default
online         17:47:10        svc:/system/zones:default
online         17:47:33        svc:/system/zones/zone:ldom06_zone15

# svcs -D svc:/system/zones:default
STATE          STIME           FMRI
online         17:47:10        svc:/system/zones-install:default
online         17:47:33        svc:/system/zones/zone:ldom06_zone15
 

 

 

Issue/Introduction

How to change the Veritas vxodm Solaris 11.4 SMF service dependent links for SMF "svc:/system/zones:default" service