Safe reboot and shutdown: Difference between revisions

From wiki.comcert.com
Jump to navigation Jump to search
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Introduction ==
== Introduction ==


{{#invoke:Message box|ambox |type=content|text=If TruView is not working properly, try [[Restart_all_services|restarting all services]] first.}}
 
 
{{#invoke:Message box|ambox |type=content|text=If TruView is not working as expected, [[Creating_log_files|create a set of log files]] BEFORE stopping the services. Valuable information for troubleshooting may be lost after restart/reboot.}}
 
 


It is highly recommended to use the provided scripts to reboot and shutdown the server. 
To minimize the chances of data corruption and consequently loss of data, it is required to use the scripts privided for restarting, rebooting or shutting down the virtual of physical appliance.


[[Restart_all_services|Restarting]]
 


== Solution ==
== Solution ==


=== Reboot ===
=== Script location ===
 
You don't have to be root to run these scripts.


*You don't have to be root to reboot the server
*Using the SSH client of your choice, login as TVadmin  
*Log in as TVadmin with SSH
*Change to /opt/tv  
*Change to /opt/tv  
<pre>$ cd /opt/tv</pre>
<pre>$ cd /opt/tv</pre>


*Run the script  
&nbsp;
<pre>$ ./tv-reboot.sh</pre>
 
=== Running the script ===


=== Shutdown ===
==== To restart all services without rebooting the appliance ====
<pre>$ ./tv-stop-services.sh


*You don't have to be root to shutdown&nbsp;the server
...followed by...
*Make sure someone is available in the datacenter to power-on the server if needed.  
 
*Log in as TVadmin with SSH
$ ./tv-start-services.sh</pre>
*Change to /opt/tv
 
<pre>$ cd /opt/tv</pre>
==== To reboot the appliance ====
<pre>$ ./tv-reboot.sh
</pre>
 
This&nbsp;script evokes the Stop Services script before reboot.
 
==== To shutdown the appliance ====
<pre>$ ./tv-shutdown.sh
</pre>


*Run the script  
This&nbsp;script evokes the Stop Services script before reboot.
<pre>$ ./tv-shutdown.sh</pre>


&nbsp;
It may take several minutes before the power is cut-off.

Latest revision as of 14:27, 31 January 2021

Introduction

 

 

To minimize the chances of data corruption and consequently loss of data, it is required to use the scripts privided for restarting, rebooting or shutting down the virtual of physical appliance.

 

Solution

Script location

You don't have to be root to run these scripts.

  • Using the SSH client of your choice, login as TVadmin
  • Change to /opt/tv
$ cd /opt/tv

 

Running the script

To restart all services without rebooting the appliance

$ ./tv-stop-services.sh 

...followed by...

$ ./tv-start-services.sh

To reboot the appliance

$ ./tv-reboot.sh

This script evokes the Stop Services script before reboot.

To shutdown the appliance

$ ./tv-shutdown.sh

This script evokes the Stop Services script before reboot.

It may take several minutes before the power is cut-off.