diff --git a/modules/howtos/pages/restart_datacenter_server.adoc b/modules/howtos/pages/restart_datacenter_server.adoc new file mode 100644 index 0000000..2b0bebc --- /dev/null +++ b/modules/howtos/pages/restart_datacenter_server.adoc @@ -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 .mgmt.iad2.fedoraproject.org -I lanplus chassis power reset +---- + +[NOTE] +==== +For access to console use +`ipmitool -U admin -H .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. +==== diff --git a/modules/sysadmin_guide/pages/index.adoc b/modules/sysadmin_guide/pages/index.adoc index 0a28e2e..f030d09 100644 --- a/modules/sysadmin_guide/pages/index.adoc +++ b/modules/sysadmin_guide/pages/index.adoc @@ -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_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_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: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]