<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ramu J on Medium]]></title>
        <description><![CDATA[Stories by Ramu J on Medium]]></description>
        <link>https://medium.com/@ramuj8329935?source=rss-ee6de1020b0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*h_TTonHrXKZQo-5l</url>
            <title>Stories by Ramu J on Medium</title>
            <link>https://medium.com/@ramuj8329935?source=rss-ee6de1020b0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:38:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramuj8329935/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Disaster Recovery from On-prem to AWS using EDR with Failover]]></title>
            <link>https://medium.com/@ramuj8329935/disaster-recovery-from-on-prem-to-aws-using-edr-with-failover-288285c86b83?source=rss-ee6de1020b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/288285c86b83</guid>
            <dc:creator><![CDATA[Ramu J]]></dc:creator>
            <pubDate>Tue, 26 Nov 2024 10:58:42 GMT</pubDate>
            <atom:updated>2024-11-26T10:58:42.155Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Disaster recovery overview</strong></h3><p>The general process is:</p><ol><li>Install the AWS Replication Agent on the source server.</li><li>Wait until initial sync is finished.</li><li>Launch drill instances. Perform acceptance drills on the servers</li><li>Initiate a failover by redirecting traffic.</li><li>Confirm that the Recovery instance was launched successfully.</li><li>To recover your data, initiate a failback.</li><li>Complete the failback.</li><li>Return to normal operations.</li></ol><p><strong>Disaster Recovery from On-Premises to AWS Using Elastic Disaster Recovery (EDR)</strong></p><h3><strong>Introduction</strong></h3><p>This guide details how to implement disaster recovery from on-premises infrastructure to AWS using Elastic Disaster Recovery (EDR). AWS provides <a href="https://docs.aws.amazon.com/drs/latest/userguide/what-is-drs.html">AWS Elastic Disaster Recovery</a> for creating a full replica of your on-premises servers, including the root volume and operating system, on AWS. Elastic Disaster Recovery continuously replicates your machines into a low-cost staging area in your target AWS account and preferred AWS Region. The block level replication is an exact replica of your servers’ storage including the operating system, system state configuration, databases, applications, and files. If there is a disaster, you can instruct Elastic Disaster Recovery to quickly launch thousands of your machines in their fully provisioned state within minutes.</p><h3><strong>Prerequisites:</strong></h3><ul><li>AWS Account with appropriate IAM permissions</li><li>AWS EDR Agent installation rights on source servers</li><li>Network connectivity between source servers and AWS</li><li>Supported operating systems:</li><li>Ubuntu</li></ul><h3><strong>Architecture Overview:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*18JsYRJRPw4-RwLJAQezmg.png" /></figure><h3><strong>Implementation Steps:</strong></h3><h4>Failover :</h4><p>To enable AWS EDR in your target AWS region, click “Configure” and then “Initialize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*V3SgiQYKfyqxIxIZr8EVZQ.png" /></figure><p>Replication servers are light weight EC2 instances launched by AWS Elastic Disaster Recovery to facilitate the transfer of blocks of data from the disks on your source servers to AWS.</p><p>Select the staging area subnet from which your Replication server will deploy, and choose the instance type, and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ImFCVl4HnJat4UMSaGPQRQ.png" /></figure><p>Change the volume type to GP3 and leave the rest at their default settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*RvqrE4DDm-FsK8LjEeqQyA.png" /></figure><p>Select “Create public IP” to assign a public IP to the replication server, allowing data to flow over the public internet from the on-premises server and set retention as 7 days and click on next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*YB0bjoE94Wg8NHPwOSnKcg.png" /></figure><p>Set the instance type right-sizing to inactive to allow selection of the instance type based on requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*NS8cVyEfY5XSei-0YMaIiA.png" /></figure><p>Select <strong>‘Start instance upon launch’</strong> and choose <strong>‘AWS-provided licensing’</strong> as the licensing option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*7-05Gyz0D9oCXTK4NJJxLA.png" /></figure><p>The default EC2 launch template defines how drill and recovery instances are launched. Select the subnet where you want to launch the server, attach the security group with the necessary ports open, and choose the instance type according to the requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*EgS9YY0e1QILMLfJ8flBFQ.png" /></figure><p>Click on next and select configure and initialize</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9lL8ck8EFxo4pm37PE-Ggw.png" /></figure><p>Communication between the source server and the replication server in AWS occurs over TCP ports 443 and 1500, so these ports should be enabled on both the source network firewall and the AWS replication server.</p><p>Create a user to generate an Access Key and Secret Key with the <strong>AmazonEC2FullAccess</strong> and <strong>AWSElasticDisasterRecoveryConsoleFullAccess</strong> permissions to ensure the necessary privileges for performing disaster recovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*S7L7AR-Lwyp5inc2DOiJ6Q.png" /></figure><p>Create Access Key and Secret Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*BVdRZyo261uOZFQBR-m8Dw.png" /></figure><p>SSH into the source server on-premises and switch to the root user to gain the necessary privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*4ki2Kpn6JGZBewJBPTiE0w.png" /></figure><p>Download the agent installer aws-replication-installer-init onto your Linux source server for Mumbai Region.</p><pre>wget -O ./aws-replication-installer-init https://aws-elastic-disaster-recovery-ap-south-1.s3.ap-south-1.amazonaws.com/latest/linux/aws-replication-installer-init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9AbUKOqNBQlmiGvjWR7jyQ.png" /></figure><p>Grant execute permissions to the aws-replication-installer-init script.</p><pre>chmod +x aws-replication-installer-init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ZW2cFWwFVe4V0Lg-ueOtEw.png" /></figure><p>Execute the aws-replication-installer-init script with root privileges to install the AWS Elastic Disaster Recovery agent on the server. During the installation, specify the region and enter the access key and secret key that were generated earlier.</p><pre>sudo ./aws-replication-installer-init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9fKolN-uRC9uHqgzw8fnEg.png" /></figure><p>Press Enter to replicate all disks of the on-premises server. After this, the agent will be installed successfully, and the syncing process will begin from the on-premises server to AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*FAn4CQVQeW09H4FQy9QUsA.png" /></figure><p>Syncing has started in the AWS Elastic Disaster Recovery console under the Source Servers section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*k27qNMbg9ePTL15wmFg_QA.png" /></figure><p>Wait until the initial sync reaches 100%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDGUbwm9lM--w-w_m_Ys6g.png" /></figure><p>The syncing process has taken approximately 44 minutes to complete, and the replication server will be launched on EC2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*axWxMm0WrkOQnIKQWrhNZQ.png" /></figure><p>In AWS Elastic Disaster Recovery, launch settings determine how drill or recovery instances are created, including general configurations and an automatically generated EC2 launch template when a source server is added.</p><p>You can edit these settings at any time, even after the initial sync is complete. Use the <strong>Default launch </strong>options to adjust settings, such as selecting the security group and enabling auto-assign public IP, as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nhpUgEYr7kBHSr1NCoPMmw.png" /></figure><p>Initiate a <strong>Recovery Drill</strong> to launch the server and verify that the data is accurate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*M4WSB-NhKxRwsHvJBZ9tHA.png" /></figure><p>AWS Elastic Disaster Recovery (EDR) takes snapshots of the source server every 10 minutes.</p><p>To launch a Drill recovery instance with the most recent data, select the ‘<strong>Use most recent data</strong>’ option. This ensures that EDR takes a current snapshot of the on-premises server, providing the most up-to-date data for recovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*RLZYjKAfrI4J7Lc75axwBg.png" /></figure><p>You can view the <strong>Recovery Launch History</strong> page, which provides an in-depth overview of operations (jobs) performed in Elastic Disaster Recovery when launching recovery instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*p8wWWoeaxLdmGhfX6gnmPA.png" /></figure><p>After a short time, the recovery instance will launch, and you can manage your recovery instances on the Recovery Instances page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*dQjc7fIYy-abD_GQEX07nQ.png" /></figure><p>The recovery instance has been launched successfully. Test the server and verify the data to ensure accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*S_0N_VB_PcXaYFj5bDhOFA.png" /></figure><p>After completing testing, initiate the Final Recovery instance with the option to Use Most Recent Data Snapshot. This will take approximately 3–4 minutes to capture the current snapshot. The recovery instance launch time is approximately 20 minutes, after which the drill instance will be automatically removed, and the recovery instance will be launched.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=288285c86b83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating Linux & Windows Server from GCP to AWS using Application Migration Service]]></title>
            <link>https://medium.com/@ramuj8329935/migrating-linux-windows-server-from-gcp-to-aws-using-application-migration-service-fdcb429502ea?source=rss-ee6de1020b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdcb429502ea</guid>
            <dc:creator><![CDATA[Ramu J]]></dc:creator>
            <pubDate>Thu, 16 May 2024 05:56:23 GMT</pubDate>
            <atom:updated>2024-05-16T05:56:23.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NaFgbTMbD_gIEjlx3KTPHQ.png" /><figcaption>Server Migration Architecture GCP to AWS</figcaption></figure><p><strong>Migration Prerequisites:</strong></p><p>· Ensure that outbound ports 443 and 1500 are enabled on the source server.</p><p>· Take a backup of the source server before migration.</p><p>· Ensure the GCP server has a configured keypair for SSH access.</p><p><strong>Steps:</strong></p><p>Generate a new key pair using Puttygen to configure on the GCP server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*66B4dFE5QBu_hhOwpmd7_Q.png" /></figure><p>Edit the GCP VM and add the public key under ‘Add Item’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OrG4I52ck6Z8KaPd6X1dqg.png" /></figure><p>Save the private key locally for SSH connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*K8p62yiKv-yoquOvOSDsqQ.png" /></figure><p>Attempt to connect via SSH using Putty to verify if it establishes a connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*LN53HdBXvwLY8J6-c5pcjQ.png" /></figure><p>Check if the website on the source server(GCP) is in working condition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*wFdYLn726OGs3hmkuSJv1A.png" /></figure><p>Create an IAM user in AWS with the necessary permissions for migration using AMS (AWS Migration Services)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6Olcmr8-R0nWy4miNCCoKg.png" /></figure><p>Generate an access key and secret key for that AMS-User</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*65JYqdWMXYTElwJK46yIqw.png" /></figure><p>In the Application Migration Service setup replication template, choose the subnet where your replication server needs to be located, and select the instance type as t3.small. <br><strong>Note:</strong> If you are migrating multiple source servers simultaneously it requires higher network bandwidth, consider using a larger instance type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*_1h4Z131Q8Ub7ExZ2n9rOQ.png" /></figure><p>In the Application Migration Service, on the source server, click on ‘Add Server’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Y3egjqjoKwnBLfhAW6Q1cg.png" /></figure><p>Select ‘Linux’ as the operating system, choose ‘Replicate all Disks’, and add the access key and secret key generated earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9uPOtHYyxQz_9l0G1cABlw.png" /></figure><p>Copy the installer command and paste it into the GCP server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*naISYqinfVWq6EBghGd49w.png" /></figure><p>After successfully installing the file, copy the next command from AMS to configure AWS credentials for the AMS-User, and then to execute the installer file on the GCP server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-AcjhlJxY6pas5eeFM5WzQ.png" /></figure><p>For Windows Choose OS as Windows and choose ‘Replicate all Disks’, and add the access key and secret key as generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*ArQIhe_yjswmDnWXzDV8DA.png" /></figure><p>Connect to the source Windows Server, open the browser, and paste the installer link provided in AMS onto the GCP server.</p><p>It Will Install the Installer File in downloads of source windows server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*683syFMNZcdMQUDNF_9llg.png" /></figure><p>Open PowerShell on the source Windows Server and navigate to the directory where the downloaded installer files are located.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*aiSUoi_Uo5EPewUaeAC1bw.png" /></figure><p>Execute the second command of AMS in PowerShell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Lgp8OKyQE4S_blKdE9v_og.png" /></figure><p>After successfully installing the AWS Replication Agent on the source server, you will see the source server added in AMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*tc9k3PaDlodrPSfU7O6c7w.png" /></figure><p>Click on the servers that are in a healthy state so you can view the activity, and the agent in the source will start replication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zkPoluuJyY8giUi0zVjt3Q.png" /></figure><p>After the replication is complete, the replication server will be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Ce_uzdU9eCJagjRcpGpYxA.png" /></figure><p>Edit Replication Setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*14MApbPDlBdG7p7oAbUy3Q.png" /></figure><p>Selecting ‘Use Dedicated Replication Server’ means that if you are migrating multiple source GCP servers, AMS will utilize a single replication server to migrate data from GCP to AWS.</p><p>It will not create a separate replication server for each source server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*O7XuNsO_OawL1f_C7tueMg.png" /></figure><p>Click on “<strong>Launch Settings</strong>,” edit the General Launch Setting, and disable the “<strong>Instance Type Right Sizing</strong>” option to prevent AMS from automatically selecting the default instance type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*qYHlNdAKGfv9GVKctprzMQ.png" /></figure><p>In Launch Settings Modify the Launch Template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-PQAmnEXJhKIrFYiZyx63g.png" /></figure><p>Modify the launch template to specify the required ‘instance type’ for launching the server via AMS. Select the ‘subnet’ where you want your server to be launched, choose the appropriate security group, and enable ‘Auto-assign public IPv4’ if you need a public server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*O0knU_KveYV-60UxfkS3bg.png" /></figure><p>Launch a test instance to verify whether all data is replicated successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*OcB9qwyjSF9Y6MJK18R3Ig.png" /></figure><p>You can view the activities of launching instances in the job log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*uwvlV6mP-JG_T8NcbuQ6Ig.png" /></figure><p>After successfully testing the server, click on ‘Ready for Cutover’. It will terminate the Testing instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*XtKcTPThWewh_bPvC-azWg.png" /></figure><p>Click on ‘Launch Cutover Instance’ to create the final instance. After the server is created, click on ‘Finalize Cutover’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7p5Ipi-1PDsTbHHUAAv3Xg.png" /></figure><p>Finalize the cutover instance named ‘Webserver’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*hMB5ak3S6dv7OAMCOz3Oxg.png" /></figure><p>After finalizing the cutover instance, the data replication will be disconnected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4hqoklolb1MwJGR-p0HvnQ.png" /></figure><p>Copy the IP address to check whether the website is working on AWS as it is working on GCP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bRfRz4iMeymTZ2GInGyLLA.png" /></figure><p>The site is working fine after a successful migration from GCP to AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HS-v2jmuzSib8_SlwGuTnw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdcb429502ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>