soft deletion while deleting a record from its database. You might occasionally want to remove such
soft deleted table rows. This operation is called purging the database. You can use the
powervc-manage tool to accomplish purging activities. PowerVC supports purging Nova, Cinder, and Glance
PowerVC has a cron job (daily) that purges database records that are older than 90 days.
- Open /etc/cron.daily/powervc_purge_deleted_records file.
/opt/ibm/powervc/bin/powervc-manage -o dbpurge -yto
/opt/ibm/powervc/bin/powervc-manage -o dbpurge -d <days> -y
- Restart cron service.
/opt/ibm/powervc/bin/powervc-manage -o dbpurge -d 60 -y
Purging the databaseFollow these steps to purge the soft-deleted rows from the tables:
- --older-than-days DAYS: Purge the rows that have been deleted for longer than
DAYSdays. The default is 90 days.
- --noprompt: Specifies whether to suppress the warning message when purging deleted records.
/opt/ibm/powervc/bin/powervc-manage -o dbpurge --older-than-days 7 -y
Running this command purges the rows, which are older than 7 days, from the Nova, Cinder, and Glance databases.