Accessing the storage inside the backup and restore pods

Deployment options: Netezza Performance Server for Cloud Pak for Data System

Learn how to access the storage inside the backup and restore pods.

About this task

You can access backed up data by accessing backup and restore pods. To access the pods, you need information about the mount points that you used while deploying backup and restore for Netezza Performance Server.

Procedure

  1. List the pods that are available under your namespace.
    oc get pods -n YOUR_NAMESPACE
    Example:
    oc get pods -n nps-1
  2. Identify the backup and restore pods.
    The backup and restore pods use the following naming convention.
    bnr-STORAGE_TYPE-storage-server-REPLICA
    Example:
    bnr-san-storage-server-0, bnr-nfs-storage-server-0, bnr-nfs-storage-server-1
  3. Connect to the pod in which you want to access the backed up data.
    oc exec -it POD_NAME -- bash -n NAMESPACE_NAME
    Example:
    oc exec -it bnr-san-storage-server-0 -- bash -n nps-1
  4. Access the backed up data by using the same mount paths that you used while deploying a back up and restore setup.

    To find the mounts that are available in a pod, run the following command. They necessary information is displayed under Containers > Mounts.

    oc describe pod POD_NAME -n NAMESPACE_NAME
    Example:
    oc describe pod bnr-local-storage-server-0 -n nps-1
    
    Containers:
      bnr-storage-cont:
        Image:      image-registry.openshift-image-registry.svc:5000/nz-repo/storage-server:release-11.2.2.2
        Port:       <none>
        Host Port:  <none>
        Limits:
          cpu:     4
          memory:  20Gi
        Requests:
          cpu:     4
          memory:  8Gi
        Environment:
          POD_NAMESPACE:  aru-bnr-test (v1:metadata.namespace)
          POD_UID:         (v1:metadata.uid)
          POD_NODENAME:    (v1:spec.nodeName)
        Mounts: 
          /bnrdata from bnr-data (rw)
          /pod/local0 from bnr-storage-vol-0 (rw)