Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Enable the STMF Service

COMSTAR uses SMF to store its current, persistent configuration, such as logical unit mapping, host group definitions, and target group definitions. When the service is enabled during boot or when using the svcadm command, it clears any stale configuration data inside the kernel framework, and then reloads the configuration from the SMF repository into the driver. After the configuration is loaded, any changes that are made to the configuration are automatically updated inside the driver database, as well as inside the SMF repository. For example, any changes made through the stmfadm command are automatically updated in both areas.

The COMSTAR target mode framework runs as the stmf service. By default, the service is disabled. You must enable the service to use COMSTAR functionality. You can identify the service with the svcs command. If you have not rebooted the server since installing the group/feature/storage-server package, the service might not be enabled correctly.

  1. Install the COMSTAR storage server software.
    target# pkg install group/feature/storage-server
    Packages to install:    75
    Create boot environment:    No
    Services to restart:     7
    DOWNLOAD                                  PKGS       FILES    XFER (MB)
    Completed                                75/75   9555/9555  105.7/105.7
    
    PHASE                                        ACTIONS
    Install Phase                            13347/13347
    
    PHASE                                          ITEMS
    Package State Update Phase                     75/75
    Image State Update Phase                         2/2
    Loading smf(5) service descriptions: 17/17
    Loading smf(5) service descriptions: 3/3
    
    PHASE                                          ITEMS
    Reading Existing Index                           8/8
    Indexing Packages                              75/75
    Indexing Packages                              75/75
    Optimizing Index...
    
    PHASE                                          ITEMS
    Indexing Packages                            573/573 
  2. Enable the stmf service.
    target# svcadm enable stmf
    target# svcs stmf
    STATE          STIME    FMRI
    online         09:42:32 svc:/system/stmf:default