• No related posts.

      • No related posts.

        • No related posts.

          • No related posts.

              No related posts.

            Convert from instance store to EBS

            Convert from instance store to EBS
            
            One client that was running a older EC2 instance was using instance store.
            From my point of view the only benefit for instance store is that it has
            better IO..though if you build a RAID using several EBS volumes.
            Anyway steps are : 
            
            1. create 1 EBS volume
            2. attach this volume to your EC2 instance store 
            
            3. format it as ext3
            mkfs.ext3 /dev/sdf
            
            4. mount it
            mkdir /mnt/ebs
            mount /dev/sdf /mnt/ebs
            
            5. sync the instance with the volume
            rsync -avHx / /mnt/ebs
            rsync -avHx /dev /mnt/ebs
            
            (you can edit /mnt/ebs/fstab and delete the reference towards the /mnt partition)
            
            6. sync && umount /mnt/ebs
            
            7. create a snapshot of that volume
            
            8. register the ami based on that snapshot
            ec2-register -s snap-ID -name "EBS instance" -description "EBS instance" -architecture i386
             -ramdisk ari-d23cd6bb -kernel aki-c43cd6ad
            
            As a result it should show something like:
            
            IMAGE   ami-newID
            
            

            Related posts:

            1. Clone an EC2 instance
            2. Transferring a lot of files over the network
            3. LVM and Raid
            This entry was posted in Amazon, Cloud Computing and tagged , , , , , .

            Leave a Reply