Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Kerberos Server Version 3.12 Administrator's Guide: HP-UX 11i v3 > Chapter 8 Administering the Kerberos Server

Removing Unused Space from the Database

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

After long and continued use, the principal database on the primary security server can grow large due to unused space. When you delete a principal, the space that the record had occupied is not removed. Instead, the space is reserved and marked as available. Therefore, after extensive use, the database can grow very large. You can correct this by loading all existing principals into a new database.

To create a new database and load existing records on the primary security server, log on as a root user and complete the following steps:

  1. Stop the services and daemons by executing the following command:

    # /sbin/init.d/krbsrv stop
  2. Make an archive of the principal.* files found on the primary security server.

  3. Dump the database by running the following command at the HP-UX command prompt:

    # /opt/krb5/admin/kdb_dump -f /tmp/filename
  4. Delete the old database by running the following command at the HP-UX command prompt:

    # rm /opt/krb5/principal*
  5. Create a new database using the same master password and encryption type as when the database was originally created by executing the following command:

    # /opt/krb5/admin/kdb_create -s -e enctype
  6. Load the dump file by running the following command at the HP-UX command prompt:

    # /opt/krb5/admin/kdb_load -f /tmp/filename
  7. Restart the services and daemons by running the following command at the HP-UX command prompt:

    /sbin/init.d/krbsrv start
  8. Remove the /tmp/filename file after you have verified that the new database is functioning without problems.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.