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
- 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 theipshost1container and stop the engine.nzstop
- If the database is
- Log in to
e1n1bare metal node as therootuser. - Search for the
lastlogfile.docker exec -it ipshost1 bash ls -lh /var/log/lastlog - Optional: If the size of the
lastlogfile is bigger than 1 GB, move thelastlogfile 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 - Stop the
sssdservice.docker exec -it ipshost1 systemctl stop sssd - Commit the current state of the
ipshost1container one1n1.docker commit ipshost1 ipshost:custom - Log in to the container and move the
lastlogfile to /var/log/lastlog.docker exec -it ipshost1 bash mv /nz/lastlog_backup /var/log/lastlog ls -lh /var/log/lastlog exit - Start the
sssdservice.docker exec -it ipshost1 systemctl start sssd - Save the
ipshost1container image one1n1.docker save -o /opt/ibm/appliance/storage/ips/ips1_deployment/ipshost1_image_custom.tar ipshost:custom - Load the
ipshost1container 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
- For
Lenovo:
- 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
- For
Lenovo:
- Optional: If
gpfstokenis present on the system, remove the token file.docker exec ipshost1 rm /nz/.gpfstoken - On
e1n1, run theipshost 1container image.- For Lenovo:
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:custome1n3ssh 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:
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:custome3n1: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
- For Lenovo:
- 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; doneNotice that it is
e2n1ande3n1.
- For
Lenovo:
- 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 - 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