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.
# svcs stmf disabled 15:58:17 svc:/system/stmf:default
- Enable the stmf service.
# svcadm enable stmf
- Verify that the service is active.
# svcs stmf online 15:59:53 svc:/system/stmf:default
- You can view the current state of the service.
# stmfadm list-state Operational Status: online Config Status: initialized

