47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
= How to restart the server in datacenter
|
|
|
|
This guide is for restarting machines in RDU3 datacenter using `ipmitool`.
|
|
This only applies to bare hardware instances
|
|
(see link:https://pagure.io/fedora-infra/ansible/blob/main/f/inventory/hardware[ansible inventory]).
|
|
|
|
[NOTE]
|
|
====
|
|
You need to have access to Bitwarden with Fedora Infrastructure
|
|
passwords to be able to follow this guide.
|
|
====
|
|
|
|
. Login to noc01
|
|
+
|
|
----
|
|
$ ssh noc01.rdu3.fedoraproject.org
|
|
----
|
|
+
|
|
. Restart machine
|
|
+
|
|
----
|
|
$ ipmitool -U admin -H <host>.mgmt.rdu3.fedoraproject.org -I lanplus chassis power reset
|
|
----
|
|
|
|
[NOTE]
|
|
====
|
|
Staging machines are managed from the same host, but they are using different admin password.
|
|
|
|
To access staging machine through `ipmitool` you need to change `.stg` to `-stg`. For
|
|
example `vmhost-x86-01.stg` will be `vmhost-x86-01-stg`.
|
|
====
|
|
|
|
[NOTE]
|
|
====
|
|
For access to console use
|
|
`ipmitool -U admin -H <host>.mgmt.rdu3.fedoraproject.org -I lanplus sol activate`.
|
|
|
|
To exit the console you need to use `~.` This is a SSH disconnect sequence, so you need to add as
|
|
many `~` as ssh jump hosts used.
|
|
|
|
For instance, if you ssh to batcave01 -> noc01 -> ipmitool
|
|
`~.` will disconnect you from batcave01, `~~.` will disconnect you from noc01 and `~~~.`
|
|
will disconnect you from the ipmi console.
|
|
|
|
This usually mess up the terminal as the sol terminal doesn't clean correctly after yourself. You
|
|
can use `reset` to reset the state of terminal back after leaving sol.
|
|
====
|