Add howto for restarting server in datacenter

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-03-05 14:34:14 +01:00
parent d54e61517c
commit 83e552966d
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,36 @@
= How to restart the server in datacenter
This guide is for restarting machines in IAD2 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.iad2.fedoraproject.org
----
+
. Restart machine
+
----
$ ipmitool -U admin -H <host>.mgmt.iad2.fedoraproject.org -I lanplus chassis power reset
----
[NOTE]
====
For access to console use
`ipmitool -U admin -H <host>.mgmt.iad2.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.
====

View file

@ -220,6 +220,7 @@ In this section is list of guides for common tasks that are done in Fedora Infra
* xref:howtos:remove_fedora_user_at_launch_aws.adoc[How to add allow root ssh login and remove fedora user] * xref:howtos:remove_fedora_user_at_launch_aws.adoc[How to add allow root ssh login and remove fedora user]
* xref:howtos:remove_user_from_watchlist_pagure.adoc[How to remove someone from a watch list on Pagure] * xref:howtos:remove_user_from_watchlist_pagure.adoc[How to remove someone from a watch list on Pagure]
* xref:howtos:restart_sigul_bridge.adoc[How to restart the sigul bridge] * xref:howtos:restart_sigul_bridge.adoc[How to restart the sigul bridge]
* xref:howtos:restart_datacenter_server.adoc[How to restart server in datacenter]
* xref:howtos:scale_up_or_down_deployment.adoc[How to scale up/down a deployment in OpenShift] * xref:howtos:scale_up_or_down_deployment.adoc[How to scale up/down a deployment in OpenShift]
* xref:howtos:share_tmux_session.adoc[How to share a tmux session accross users] * xref:howtos:share_tmux_session.adoc[How to share a tmux session accross users]
* xref:howtos:unblock_bodhi_rawhide_updates.adoc[How to unblock Bodhi rawhide updates] * xref:howtos:unblock_bodhi_rawhide_updates.adoc[How to unblock Bodhi rawhide updates]