OpenSolaris 2008.11 Media Management System Administration Guide

Table of Contents

Managing Libraries

To add a library to the database with the options you want:

mmsadm create -t library -o option=x library_name

To modify the attributes of a library, use the command with the new options:

mmsadm set -t library -o option=x library_name

To change the status of a library so that it is unavailable:

mmsadm set -t library -o state=offline library-name

You do this when you know the library is not available and do not want to include it in subsequent searches and displays. At a later time, you can reset the library to be available, using this command:

mmsadm set -t library -o state=online library_name

When you delete a library, you also delete all the drives and volumes controlled by that library.
You must verify that no drives in that library are in use and that no volumes are configured into media pools.

To delete a library:

  1. Verify that no drives are in use.
  2. Verify that no volumes are in a media pool.
  3. Take the library offline.

    mmsadm set -t library -o state=offline library_name

  4. Delete the library.

    mmsadm delete -t library library_name