0

I want to start geth on a new VM. I already have geth running in archival mode in another VM. I have synced up to 6 million blocks on the existing VM. Is there a way I can take the data disk from the existing VM and attach it to the new VM. So that when I start geth on the new VM it will take the latest block synced from the disk and start after 6 millionth block.

I have tried shutting of my VM and taking a snapshot of the data disk and then attaching it to the new VM. But after mounting the disk on the new VM, it seems like the chaindata has been erased. Am I missing something while attaching the disk ? I have followed the following documentation to attach the disk: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/add-disk

Also I am using Azure platform for my VM and the VMs have Linux Operating systems. Thanks!

Jenny
  • 355
  • 1
  • 2
  • 10
  • Dettach the data disk from the older and attach to the newer vm, it works well and no data disappear. So I don't understand that you mean the chain data has been erased. – Charles Xu Aug 30 '18 at 02:47
  • I want the same copy of the data disk on both the VMs. So I can not dettach it, hence I created a snapshot and then a disk out of it. I want to use the same chaindata that is on one VM on the other. So that I don't have to start collecting data from scratch. – Jenny Aug 30 '18 at 21:13
  • Sorry, I don't know about Geth. You can post another question about Geth error and get help from the people who know it. – Charles Xu Sep 05 '18 at 05:45

1 Answers1

1

For your issue, I test the data disk copy and it works well with nothing disappear. The steps below.

  1. Dettach the data disk which you want to copy.
  2. Create a snapshot from the data disk.
  3. Create a data disk copy from the snapshot.
  4. Attach the copy data disk to the new VM.

Try it again following the steps above.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39