OpenSolaris 2008.11 COMSTAR Administration Guide
Previous Next

Enabling the STMF Service

COMSTAR uses smf(5) to store its persistent state, or current configuration, such as logical unit mapping, host group definitions, and target group definitions. When the service is enabled during boot or by svcadm, 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 a service, just like any other smf(5) service. The name of the service is stmf. By default, the service is disabled. You have to enable the service to use COMSTAR functionality. You can locate the service with the svcs(1) command.

To Enable the STMF Service

  1. View the existing state of the service.
    # svcs stmf
    
    disabled    15:58:17 svc:/system/stmf:default

    On a newly installed OpenSolaris system, the STMF service is disabled by default.

  2. Enable the stmf service.
    # svcadm enable stmf
  3. Verify that the service is active.
    # svcs stmf
    
    online    15:59:53 svc:/system/stmf:default
  4. Optionally, you can view the current state of the service.
    # stmfadm list-state
    
    Operational Status: online   
    Config Status: initialized
Previous Next