Stop all media access and take the K2
system offline.
If a K2 SAN, follow procedures to take connected K2 client
systems and K2 Media Servers offline. Shutdown connected K2 client
systems. Refer to the K2 SAN Installation and Service Manual.
Navigate to the V:\media directory.
If a K2 SAN, access this directory from a K2 Media Server
with role of media file system server.
Make a copy of the media.db and media.db_bak* files and
store them in a secure location.
Stop the Grass Valley MetaDataService as follows:
If a stand-alone K2 system, use the Services control
panel to stop the service.
If a K2 SAN, use Server Control Panel to stop the service
on primary, and if present, backup K2 Media Server with role of
file system server.
Determine which backup file is the most recent good file
by examining the file modification date on each backup file.
Rename the current media.db file (which is assumed
to be corrupt) to another name, and rename the most recent good media.db_bakX file
to media.db.
Restart the K2 system following normal procedures.
Confirm that the systems come up correctly with the restored
database now in place.
Use Storage Utility Clean Unreferenced Files and Clean
Unreferenced Movies to repair any inconsistencies between
the contents of the database and the file system.