How to backup and restore COMSTAR (stmf) configurations on OpenIndiana and Solaris.

STMF/COMSTAR configuration data is maintained in the service configuration repository, just like processes started by the service management facility. Like all system configuration data, it is important to maintain backups of your system configuration for all the obvious reasons.

Coming from a standard SYSV or BSD background does not prepare most admins for Sun’s service management facility or its data repository.

If systems under management use COMSTAR for iSCSI, iSER, FCoE or other services it is good practice to dump and maintain copies of your configuration over time. While this is simple to do, it is not obvious to the uninitiated.

To dump the STMF portion of the repo into a text file, run these commands:

# DATE=`date +%Y%m%d%H%M`
# svccfg export -a stmf > svccfg-stmf.backup.${DATE}

To restore your COMSTAR config, run the following command:

# svccfg import svccfg-stmf.backup.${DATE}

Obviously, you want to keep your backups in safe place.

This entry was posted in IllumOS, OpenIndiana, OpenSolaris, Nexenta, & Solaris, iSCSI, OpenIndiana, ZFS and tagged , , , , , . Bookmark the permalink.

2 Responses to How to backup and restore COMSTAR (stmf) configurations on OpenIndiana and Solaris.

  1. Pingback: My Homepage

  2. Does this work equally well when you’re migrating from Nexenta NCP to OmniOS, or will the configuration data also include information on how the various services are started as well, and they might’ve changed on the other platform.

    I’m just worried that when I migrate I will not get the benefit of any improvements that have been done in the recent years with regards to how the services start up, their dependencies etc.

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>