Redeploying the container for 11.0.6.1 and earlier

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

After you upgrade the container and software, redeploy the ipshost1 container on the other Control Plane nodes to upgrade the software.

Procedure

  1. Ensure that the database is not running.
    nzstate
    • If the database is Stopped, you can see the following output.
      [nz@xxx-npshost ~]$ nzstate
      System state is 'Stopped'.
    • If the database is not Stopped, go to the ipshost1 container and stop the engine.
      nzstop
  2. Log in to e1n1 bare metal node as the root user.
  3. Search for the lastlog file.
    docker exec -it ipshost1 bash
    ls -lh /var/log/lastlog
  4. Optional: If the size of the lastlog file is bigger than 1 GB, move the lastlog file to a different location with enough space to contain it.
    mv /var/log/lastlog /nz/lastlog_backup
    cat /dev/null > /var/log/lastlog
    ls -lh /var/log/lastlog
    exit
  5. Stop the sssd service.
    docker exec -it ipshost1 systemctl stop sssd
  6. Commit the current state of the ipshost1 container on e1n1.
    docker commit ipshost1 ipshost:custom
  7. Log in to the container and move the lastlog file to /var/log/lastlog.
    docker exec -it ipshost1 bash
    mv /nz/lastlog_backup /var/log/lastlog
    ls -lh /var/log/lastlog
    exit 
  8. Start the sssd service.
    docker exec -it ipshost1 systemctl start sssd
  9. Save the ipshost1 container image on e1n1.
    docker save -o /opt/ibm/appliance/storage/ips/ips1_deployment/ipshost1_image_custom.tar ipshost:custom
  10. Load the ipshost1 container image on other control nodes.
    • For Lenovo:
      for dev in e1n{2..3}; do ssh $dev docker load -i /opt/ibm/appliance/storage/ips/ips1_deployment/ipshost1_image_custom.tar; done
    • For Dell:
      for dev in e{2..3}n1; do ssh $dev docker load -i /opt/ibm/appliance/storage/ips/ips1_deployment/ipshost1_image_custom.tar; done
  11. Remove the container from e1n1.
    • For Lenovo:
      for dev in e1n{2..3}; do ssh $dev docker rm ipshost1; done
    • For Dell:
      for dev in e{2..3}n1; do ssh $dev docker rm ipshost1; done
  12. Optional: If gpfstoken is present on the system, remove the token file.
    docker exec ipshost1 rm /nz/.gpfstoken
  13. On e1n1, run the ipshost 1 container image.
    • For Lenovo:
      1. e1n2:
        ssh e1n2 docker run -d -it -v /opt/ibm/appliance/platform/onecli/:/opt/ibm/OneCli:ro -v /etc/selinux/config:/etc/selinux/config:ro -v /etc/localtime:/etc/localtime:ro -v /opt/ibm/appliance/storage/ips/ipshost1/nz:/nz -v /opt/ibm/appliance/storage/ips/ipshost1/nzscratch:/nzscratch -v /opt/ibm/appliance/storage/ips/ipshost1/export_home:/export/home -v /var/lib/sedsupport:/var/lib/sedsupport:ro --privileged --cap-add=SYS_ADMIN --net=host --name=ipshost1 --dns=10.11.0.17 --dns-search=npsdomain --dns-search=fbond --dns-search=mbond --shm-size=155586m ipshost:custom
      2. e1n3
        ssh e1n3 docker run -d -it -v /opt/ibm/appliance/platform/onecli/:/opt/ibm/OneCli:ro -v /etc/selinux/config:/etc/selinux/config:ro -v /etc/localtime:/etc/localtime:ro -v /opt/ibm/appliance/storage/ips/ipshost1/nz:/nz -v /opt/ibm/appliance/storage/ips/ipshost1/nzscratch:/nzscratch -v /opt/ibm/appliance/storage/ips/ipshost1/export_home:/export/home -v /var/lib/sedsupport:/var/lib/sedsupport:ro --privileged --cap-add=SYS_ADMIN --net=host --name=ipshost1 --dns=10.11.0.18 --dns-search=npsdomain --dns-search=fbond --dns-search=mbond --shm-size=155586m ipshost:custom
    • For Dell:
      1. e2n1:
        ssh e2n1 docker run -d -it -v /opt/dell/:/opt/dell/:ro -v /etc/selinux/config:/etc/selinux/config:ro -v /etc/localtime:/etc/localtime:ro -v /opt/ibm/appliance/storage/ips/ipshost1/nz:/nz -v /opt/ibm/appliance/storage/ips/ipshost1/nzscratch:/nzscratch -v /opt/ibm/appliance/storage/ips/ipshost1/export_home:/export/home -v /var/lib/sedsupport:/var/lib/sedsupport:ro --privileged --cap-add=SYS_ADMIN --net=host --name=ipshost1 --dns=10.11.0.17 --dns-search=npsdomain --dns-search=fbond --dns-search=mbond --shm-size=309443m ipshost:custom
      2. e3n1:
        ssh e3n1 docker run -d -it -v /opt/dell/:/opt/dell/:ro -v /etc/selinux/config:/etc/selinux/config:ro -v /etc/localtime:/etc/localtime:ro -v /opt/ibm/appliance/storage/ips/ipshost1/nz:/nz -v /opt/ibm/appliance/storage/ips/ipshost1/nzscratch:/nzscratch -v /opt/ibm/appliance/storage/ips/ipshost1/export_home:/export/home -v /var/lib/sedsupport:/var/lib/sedsupport:ro --privileged --cap-add=SYS_ADMIN --net=host --name=ipshost1 --dns=10.11.0.18 --dns-search=npsdomain --dns-search=fbond --dns-search=mbond --shm-size=309443m ipshost:custom
  14. Stop ipshost1.
    • For Lenovo:
      for dev in e1n{2..3}; do ssh $dev docker stop ipshost1; done
    • For Dell:
      for dev in e{2..3}n1; do ssh $dev docker stop ipshost1; done

      Notice that it is e2n1 and e3n1.

  15. If a token file was present on your system and you removed the token file in step 12, create the token file again.
    docker exec ipshost1 touch /nz/.gpfstoken
  16. Important: If you are upgrading replication environment as described in Upgrading Netezza Performance Server and Persistent Transient Storage (PTS), do not start Netezza Performance Server and do not proceed with next steps.
    Start the database.
    nzstart