> For the complete documentation index, see [llms.txt](https://archive-docs.klaytn.foundation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archive-docs.klaytn.foundation/content/operation-guide/chaindata-migration.md).

# 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()

```
