---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/maintenance/manual/node_restarting.md?version=v25.4
  - https://ydb.tech/docs/ru/maintenance/manual/node_restarting.md?version=v25.4
  - href: en/maintenance/manual/node_restarting.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/core/maintenance/manual/node_restarting.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Safe restart and shutdown of nodes

## Stopping/restarting a YDB process on a node {#restart_process}

To make sure that the process is stoppable, follow these steps.

1. Access the node via SSH.

1. Execute the command

   ```bash
   ydbd cms request restart host {node_id} --user {user} --duration 60 --dry --reason 'some-reason'
   ```

   If the process is stoppable, you'll see `ALLOW`.

1. Stop the process

   ```bash
   sudo service ydbd stop
   ```

1. Restart the process if needed

   ```bash
    sudo service ydbd start
   ```

## Replacing equipment {#replace-hardware}

Before replacing equipment, make sure that the YDB process is [stoppable](#restart_process).
If the replacement is going to take a long time, first move all the VDisks from this node and wait until replication is complete.
After replication is complete, you can safely shut down the node.

To make sure that disabling the dynamic node doesn't affect query handling, drain the tablets from this node first.

Go to the [Hive web-viewer](https://ydb.tech/docs/en/reference/embedded-ui/hive.md?version=v25.4) page.
Click "View Nodes" to see a list of all nodes.

Before disabling the node, first disable the transfer of tablets through the Active button, then click Drain, and wait for all the tablets to be moved away.
