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

book

Article ID: 100052934

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

See related article:

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

https://supportinfoscale.cloud.com/support-home/kbsearch/article?articleNumber=100052932&articleTitle=solaris-114-introduced-changes-to-the-boot-sequence-for-solaris-zone-related-services-impacting-veritas-vxodm-startup&

 


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

How to change the Veritas vxodm Solaris 11.4 SMF service dependent links for SMF "svc:/system/zones:default" service
https://supportinfoscale.cloud.com/support-home/kbsearch/article?articleNumber=100052933&articleTitle=how-to-change-the-veritas-vxodm-solaris-114-smf-service-dependent-links-for-smf-svcsystemzonesdefault-service&

 

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".

Veritas recommends setting autoboot=false with zonecfg for Solaris Local Zones to manage the startup sequence
https://supportinfoscale.cloud.com/support-home/kbsearch/article?articleNumber=100052931&articleTitle=veritas-recommends-setting-autobootfalse-with-zonecfg-for-solaris-local-zones-to-manage-the-startup-sequence&



in addition to the above, a SMF dependency on the Veritas vxodm service "svc:/system/vxodm:default" can be created within the Solaris Local Zone configuration as follows:


Steps:

 

1.] Edit the Solaris Local Zone configuration using the zonecfg command and specify the Solaris Local Zone name:

# zonecfg -z ldom06_zone15
 

2.] Display the current  Solaris Local Zone settings

zonecfg:ldom06_zone15> info

zonename: ldom06_zone15
zonepath: /export/zones/ldom06_zone15
brand: solaris
autoboot: true
bootargs: -m verbose
fs-allowed: vxfs,odm
fs 0:
        dir: /etc/vx/licenses/lic
        special: /etc/vx/licenses/lic
        type: lofs
        options: []
net 0:
        physical: vnic15
anet 0:
        linkname: net0
        configure-allowed-address: true
device 0:
        match: /dev/llt
device 1:
        match: /dev/lmx
device 2:
        match: /dev/odm/*
device 3:
        match: /dev/vxportal
device 4:
        match: /dev/fdd
device 5:
        match: /dev/vx/rdsk/Zone15_Dg/Zone15_Dg_Vol
device 6:
        match: /dev/vx/dsk/Zone15_Dg/Zone15_Dg_Vol

 

2.] Add the SMF dependency on Veritas vxodm service "svc:/system/vxodm:default" within the Solaris Local Zone


zonecfg:ldom06_zone15> add smf-dependency
zonecfg:ldom06_zone15:smf-dependency> set name=vxodm
zonecfg:ldom06_zone15:smf-dependency> set fmri=svc:/system/vxodm:default
zonecfg:ldom06_zone15:smf-dependency> set grouping=require_all
zonecfg:ldom06_zone15:smf-dependency> end

 

3.] Display the updated changes


zonecfg:ldom06_zone15> info
zonename: ldom06_zone15
zonepath: /export/zones/ldom06_zone15
brand: solaris
autoboot: true
bootargs: -m verbose
fs-allowed: vxfs,odm
fs 0:
        dir: /etc/vx/licenses/lic
        special: /etc/vx/licenses/lic
        type: lofs
        options: []
net 0:
        physical: vnic15
anet 0:
        linkname: net0
        configure-allowed-address: true
smf-dependency 1:
        name: vxodm
        fmri: svc:/system/vxodm:default
device 0:
        match: /dev/llt
device 1:
        match: /dev/lmx
device 2:
        match: /dev/odm/*
device 3:
        match: /dev/vxportal
device 4:
        match: /dev/fdd
device 5:
        match: /dev/vx/rdsk/Zone15_Dg/Zone15_Dg_Vol
device 6:
        match: /dev/vx/dsk/Zone15_Dg/Zone15_Dg_Vol

 

4.] Verify & commit changes to Solaris Local Zone configuration.

zonecfg:ldom06_zone15> verify
zonecfg:ldom06_zone15> commit
zonecfg:ldom06_zone15> exit

 

The SMF dependency created within the Solaris Local Zone configuration can be removed as follows:


Steps:

 

1.] Edit the Solaris Local Zone configuration using the zonecfg command and specify the Solaris Local Zone name:

# zonecfg -z ldom06_zone15
zonecfg:ldom06_zone15> info
 

zonecfg:ldom06_zone15> remove smf-dependency

2.] Display the updated changes.

zonecfg:ldom06_zone15> info
zonename: ldom06_zone15
zonepath: /export/zones/ldom06_zone15
brand: solaris
autoboot: true
bootargs: -m verbose
fs-allowed: vxfs,odm
fs 0:
        dir: /etc/vx/licenses/lic
        special: /etc/vx/licenses/lic
        type: lofs
        options: []
net 0:
        physical: vnic15
anet 0:
        linkname: net0
        configure-allowed-address: true
device 0:
        match: /dev/llt
device 1:
        match: /dev/lmx
device 2:
        match: /dev/odm/*
device 3:
        match: /dev/vxportal
device 4:
        match: /dev/fdd
device 5:
        match: /dev/vx/rdsk/Zone15_Dg/Zone15_Dg_Vol
device 6:
        match: /dev/vx/dsk/Zone15_Dg/Zone15_Dg_Vol

 

3.] Verify & commit changes to Solaris Local Zone configuration.

zonecfg:ldom06_zone15> verify
zonecfg:ldom06_zone15> commit
zonecfg:ldom06_zone15> exit

 

 

Issue/Introduction

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