Managing Db2 transaction logs
Transaction logs are stored for your Db2 database. You can use the prune history command to remove certain log files and create more storage space.
Before you begin
- Wait for backup and restore operations to complete.You can run the following command to verify that no backup and restore operation is in progress:
Refer to the following example output to confirm:db2 list utilitiesSQL1611W No data was returned by Database System Monitor. SQLSTATE=00000 - Determine what log files can be deleted. For more information, see Managing diagnostic directories for Db2.
About this task
Note: If the Db2 database is returning an error due to a lack of space,
you can edit the associated PVC and increase the allocated storage amount. The storage class that
you are using must have allowVolumeExpansion set to true.
For more information, see Enabling volume expansion support.
For more information
on using the prune history command, see PRUNE HISTORY/LOGFILE command and Hands-on example for PRUNE HISTORY command.