(Safe) Snapshot / Reboot for TOS
Running the Tufin Orchestration Suite (TOS) not only means to have a system running Linux, but also a Kubernetes Cluster is running on the system. If a system restart is necessary, it's not sufficient to simply enter the "reboot" command at the command line. Even if a snapshot needs to be created from a virtual machine, measures must be taken beforehand—otherwise, a snapshot might be available, but it will not be suitable for restoring the system.
To shut down the system running TOS these steps should be taken:
- Stop TOS and wait for the message that TOS has been stopped
# tos stop -d - The Pods are still terminating, wait until all Pods have been stopped successfully, then resume the command using Ctrl-C
# watch kubectl get pods - The Kubernetes Cluster should also be stopped and disabled
# systemctl stop k3s.service
# systemctl disable k3s.service - The result should be checked using the commands
# systemctl is-active k3s
# systemcll is-enabled k3s
Now it's safe to shutdown or restart the system. Creating a snapshot is now also possible safely.
After a restart or restore of the system, neither k3s nor tos will start automatically.
This might be uncomfortable, but it should be done this way. If not, problems migth arise due to open data bases, open files, etc.
To start the system, these steps should be carried out:
- Start, enable and check k3s Service. This needs to be done first since TOS requires a running Kubernetes Cluster
# systemctl start k3s.serice
# systemctl enable k3s service
# systemctl is-enabled k3s.service
# systemctl status k3s.service - Start TOS and wait for the message that TOS has been started successfully
# tos start -d - The Pods are still starting even if the command states that the start has been successully done.
Check that all Pods have been started, leave the command afterwards using CTRL-C
# watch kubectl get pods
This method appears to be complex, but it's recommended regarding data security and keep the system running without issues.