IBM Support

How to collect the DB-dump in noobaa

How To


Summary

This solution describes how to collect a database dump from the NooBaa database pod used by the Multicloud Object Gateway (MCG) component in OpenShift Data Foundation/Fusion Data Foundation.

Objective

The objective of this document is to provide step-by-step instructions to generate and export a NooBaa database dump for troubleshooting, backup, or IBM Support case investigation.

Environment

IBM Storage Fusion Data Foundation (FDF) 4.x

Red Hat OpenShift Data Foundation (ODF) 4.x

Steps

  • Backup the PostgreSQL database:
For FDF/ODF 4.18 and Below:
$ oc exec -n openshift-storage -it noobaa-db-pg-0 -- bash -c 'pg_dumpall -U postgres > /var/lib/pgsql/data/dump.sql'
For FDF/ODF v4.19 and Above: 
oc exec -n openshift-storage svc/noobaa-db-pg-cluster-rw -c postgres -- pg_dump -Fp nbcore > nbcore-primary.sql
  • Save the collected database to local machine:
$ oc cp -n openshift-storage noobaa-db-pg-0:/var/lib/pgsql/data/dump.sql dump.sql
  • To validate the db dump once captured, execute the following:Raw
tail -n100 <dump-name>.sql
-- PostgreSQL database dump complete <--------------- SHOULD SEEE THIS
--
-- PostgreSQL database cluster dump complete

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB66","label":"Technology Lifecycle Services"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SSSEWFV","label":"Storage Fusion Data Foundation"},"ARM Category":[{"code":"a8mgJ0000000C61QAE","label":"KCS"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":""}]

Document Information

Modified date:
07 May 2026

UID

ibm17259282