# Chaindata Migration

💡 Run migration only for PN and EN nodes (not CN)

## Things to know before this job <a href="#things-to-know-before-this-job" id="things-to-know-before-this-job"></a>

* It needs m6i.8xlarge spec (32 cores and 128GB memory) or higher
* 7 days for full progress (Migration is divided in 2 parts)
  * Part 1 - Migrate DB to a new directory (The message “State migration is completed” appears)
  * Part 2 - New Block generation on new directory (old directory will be deleted after this)
* 500GB free space should be available

## Go to Klaytn Console

```bash
$ kpn attach klay.ipc

#start chain data Migration
> admin.startStateMigration()
null

# Check Status
> admin.stateMigrationStatus

#stop Migration
> admin.stopStateMigration()

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://archive-docs.klaytn.foundation/content/operation-guide/chaindata-migration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
