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

# admin cluster bridge rejoin

<!-- source: en/_includes/feature_enterprise.md -->
{% note info "Feature of Yandex Enterprise Database" %}

This functionality is available only in the [Yandex Enterprise Database](https://ydb.tech/docs/en/downloads/yandex-enterprise-database.md?version=v25.4). In the open-source version of YDB it is absent.

{% endnote %}
<!-- endsource: en/_includes/feature_enterprise.md -->

Use the `admin cluster bridge rejoin` command to [return](https://ydb.tech/docs/en/concepts/bridge.md?version=v25.4#rejoin) the specified pile to the cluster after maintenance or recovery. After the command runs, the pile is expected to transition from `DISCONNECTED` to `NOT_SYNCHRONIZED`, then sync automatically and transition to `SYNCHRONIZED`.

<!-- source: en/reference/ydb-cli/commands/_includes/danger-warning.md -->
{% note alert %}

Commands in this section can harm your cluster if used incorrectly. Due to the potentially dangerous nature of these commands, **ALL** global parameters must be specified explicitly. Profiles are disabled by default and are only used when explicitly specified (`--profile <profile-name>`). Some commands do not require global options that are otherwise mandatory.

{% endnote %}
<!-- endsource: en/reference/ydb-cli/commands/_includes/danger-warning.md -->

General command syntax:

```bash
ydb [global options...] admin cluster bridge rejoin [options...]
```

* `global options` — global parameters.
* `options` — [subcommand parameters](#options).

View command help:

```bash
ydb admin cluster bridge rejoin --help
```

## Subcommand parameters {#options}

#|
|| Name | Description ||
|| `--pile <pile>` | Name of the pile to return to the cluster. ||
|#

## Requirements {#requirements}

- The pile must be in the `DISCONNECTED` state before it can be returned.

## Examples {#examples}

Return pile `pile-a` from `DISCONNECTED` state:

```bash
ydb admin cluster bridge rejoin --pile pile-a
```

### Verifying the result {#verify}

Right after the command runs, the pile is expected to transition to `NOT_SYNCHRONIZED`. Verify with the [list](https://ydb.tech/docs/en/reference/ydb-cli/commands/bridge/list.md?version=v25.4) command:

```bash
ydb admin cluster bridge list

pile-a: NOT_SYNCHRONIZED
pile-b: PRIMARY
```

After synchronization completes, the pile transitions to `SYNCHRONIZED`:

```bash
ydb admin cluster bridge list

pile-a: SYNCHRONIZED
pile-b: PRIMARY
```
