Sun StorageTek 5800 System SDK Developer's Guide

Schema Modification

To add a custom schema to the 5800 system, create an XML file detailing your custom schema. Refer to the XML files in the config directory for examples of a custom schema. Also, see “Configuring Metadata and File System View” in Sun StorageTek 5800 System Administration Guide.

Once your XML schema file is complete, stop the emulator and run the metadata_merge_config.sh script (metadata_merge_config.bat on Windows) located in the bin directory. This script takes one command-line argument, which is the full path to your XML schema file. The emulator should be stopped while updating the schema.

To use a new schema in the emulator you should first do a manual wipe of the emulator contents.

ProcedureTo Manually Clear the Emulator Contents

  1. Shut down the emulator if it is currently running.

  2. Remove the emulator var directory and all of its contents.

    For example:

    rm -fr SDK directory name/emulator/var

    where SDK directory name is the directory into which you unzipped the 5800 system SDK.

  3. Run the metadata_merge_config program to activate the new schema.

  4. Restart the emulator.