How to Enable the STMF Service

How to Enable the STMF Service

COMSTAR uses smf(5) to store its persistent state (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. If you have not rebooted the server since installing the SUNWstmf package, the service might not be enabled correctly.

On a newly installed OpenSolaris system, the STMF service is disabled by default. You must complete this task to enable the STMF service.

  1. View the existing state of the service.
    # svcs stmf
    
    disabled    15:58:17 svc:/system/stmf: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. You can view the current state of the service.
    # stmfadm list-state
    
    Operational Status: online
    Config Status: initialized
    
Where to Go Next

Labels

smallsiteadmin smallsiteadmin Delete
task task Delete
storage storage Delete
configuring configuring Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact