View Source

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

# View the existing state of the service.
{code:none}
# svcs stmf

disabled 15:58:17 svc:/system/stmf:default
{code}
# Enable the {{stmf}} service.
{code}
# svcadm enable stmf
{code}
# Verify that the service is active.
{code:none}
# svcs stmf

online 15:59:53 svc:/system/stmf:default
{code}
# You can view the current state of the service.
{code}
# stmfadm list-state

Operational Status: online
Config Status: initialized
{code}

h5. Where to Go Next

* [How to Create SCSI Logical Units]

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