transfer linux system from /dev/xvda to /dev/xvdb

  • Status: Pending
  • Hadiah: $30
  • Penyertaan diterima: 0

Keterangan Peraduan

I'm using Ubuntu 14.04 64-bit HVM images on Amazon AWS EC2.

When an Amazon EC2 EBS-Based Spot Instance reboots, it mounts the root on /dev/xvda1 and has an empty /dev/xvdb which is the Ephemeral SSD Disk.

I am able to format and mount /dev/xvdb1 onto /mnt, but what I really want to do is transfer all the files from /dev/xvda to /dev/xvdb, then mount /dev/xvdb1 as root (/) and then completely unmount and detach /dev/xvda.

This problem is a lot tougher than it looks so I'm posting as a competition in order to avoid damaging the rating of those proposing incorrect solutions.

During the public phase of the contest, please upload screen-shots or screen-cast which is a demonstration of your script. You shouldn't show the full source code during this phase, just make a demo of you running the code and showing off the results.

If you are selected as the winner, then you'll be required to upload the working solution within 24 hours.

Kemahiran-kemahiran Cadangan

Papan Penerangan Awam

  • neatsoft
    neatsoft
    • 2 tahun yang lalu

    The problem became clear after your explanations. It's not so difficult, and it is definitely solvable, but it's not a $30 task. So I advise you to increase project budget.

    • 2 tahun yang lalu
  • neatsoft
    neatsoft
    • 2 tahun yang lalu

    You should transfer data from old disk to new one with dd at first, and then install grub to the new location. Partitions uuids will be the same on both disks after that, so don't forget to switch off your server and disconnect xvda.

    • 2 tahun yang lalu
    1. neatsoft
      neatsoft
      • 2 tahun yang lalu

      I posted my solution as contest entry

      • 2 tahun yang lalu
  • mz1
    mz1
    • 2 tahun yang lalu

    Hello, I know solution I am able to do this job quickly.

    • 2 tahun yang lalu
    1. afterhourstech
      Pemegang Peraduan
      • 2 tahun yang lalu

      Please post your demo.

      • 2 tahun yang lalu
    2. mz1
      mz1
      • 2 tahun yang lalu

      I already post it. Thanks

      • 2 tahun yang lalu

Tunjukkan lebih banyak komen

Bagaimana mula dengan peraduan

  • Papar peraduan anda

    Papar Peraduan Anda Cepat dan senang

  • Dapatkan bertan-tan penyertaan

    Dapatkan Bertan-tan Penyertaan Dari seluruh dunia

  • Anugerahkan penyertaan terbaik

    Anugerahkan penyertaan terbaik Muat turun fail-fail - Senang!

Papar Peraduan Sekarang atau Sertai kami Hari Ini!