September 19, 2019 Vignesh Sathiyanantham

Backup rotation/retention scheme is the how long the backup is retained on the media, many techniques have evolved over time to balance the data retention and the restoration costs. Grandfather-father-son is a very common scheme used in the backup retention strategy. In which there are three or more backup cycles such as daily, weekly and monthly. the daily backups are rotated on daily basis using FIFO mechanism, the weekly backups are rotated on a weekly basis and the monthly on a monthly or quarterly basis. Common example The hourly backup (son) are rotated on hourly with one promoted to father…

September 18, 2019 Vignesh Sathiyanantham

Amazon EBS enables users to backup volumes ar any time using EBS snapshots, Snapshots retain the data from all completed I/O operations, allowing you to restore the volume to its exact state at the moment before backup (referred to as crash-consistency). Previously when we take the snapshots of all the disks of an EC2 instance, we need to call create snapshot API for all disks recently Amazon introduced the Create snapshot of the Instance ( creates the snapshot of all the volumes attached to the instance) This is something similar to the on-premise storage array feature of Consistency group for…

September 17, 2019 Vignesh Sathiyanantham

In today’s data center industry there is a misconception about the storage snapshot as a Backup. The main one is storage snapshots are not backup, they are just point-in-time copies. It’s unclear from where the idea came from. Backup is a collection of data stored on (usually removable) non-volatile storage media for purposes of recovery in case the original copy of data is lost or becomes inaccessible; also called a backup copy. To be useful for recovery, a backup must be made by copying the source data image when it is in a consistent state. – The SNIA ( Storage…

August 31, 2019 Vignesh Sathiyanantham

In recent posts, we have discussed adding your AWS account to Nimesa to do the data protection. In this post, we will discuss application-consistent backups of your MySQL on EC2 instance. To know to install MySQL Server on Amazon Linux 2 on AWS Cloud click here Read here more about consistent, app-consistent, crash-consistent backup Nimesa supports pre and post script hooks to perform the specific operation before or after a backup, example if your Instance is running Oracle and you want to enable hot backup mode before performing backup you can write the script and upload to pre-script There is…

August 31, 2019 Vignesh Sathiyanantham

The default user for Amazon Linux 2 is ec2-user, first, we need to create a password for the ec2-user [ec2-user@ip-164 ]$ sudo passwd ec2-user Changing password for user ec2-user. New password: Retype new password: passwd: all authentication tokens updated successfully. Then enable the password authentication for the Login in the SSHD config file sudo nano /etc/ssh/sshd_config Find the PasswordAuthentication no and set it to yes Restart the SSHD Service sudo systemctl restart sshd

August 31, 2019 Vignesh Sathiyanantham

In this post, we will see how to install MySQL server on AWS EC2 Amazon Linux 2 and configure the security group to access from your desktop The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2). It is designed to provide a stable, secure, and high-performance execution environment for applications running on Amazon EC2. It supports the latest EC2 instance type features and includes packages that enable easy integration with AWS. Amazon Web Services provides ongoing security and maintenance updates to all instances running…

August 27, 2019 Vignesh Sathiyanantham

In my previous post, we discussed the creation of IAM user and the privilege required to protect your AWS EC2 instances. In this post, we will discuss to register the AWS account with Nimesa. Open the Nimesa web console ( refer this post for the Installation of Nimesa in your AWS account ), and log in with the credential. Then Go to “Configuration settings” > “manage platforms” In the manage platform, click on Add platform Enter the unique friendly account nameAccess Key of the IAM userSecret key Nimesa will validate the credentials, and save it in MySQL database after encrypting…

August 24, 2019 Vignesh Sathiyanantham

When I was writing the base code in Spring boot for my RESTifying the ZFS APIs project, I was looking for some way of throwing the exception to the user with HTTP error code. I found a way to handle it by using ResponseStatusExceptionResolver. ResponseStatusExceptionResolver is introduced with Spring 3, and Its main responsibility is to use the @ResponseStatus annotation available on custom exceptions and to map these exceptions to HTTP status codes. @ResponseStatus annotation I created a ValidationException class extending the RuntimeException class with a constructor. This is how my code looks like package in.asvignesh.zfsservice.controller; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus;…

August 24, 2019 Vignesh Sathiyanantham

I am working on a new hobby project RESTifying the ZFS APIs, Earlier I was using play framework for my REST projects, now started using SpringBoot While RESTifying the ZFS API one of the API formats is like @GetMapping(path = {“/”, “/{poolname}”, “/{poolname}/{volumename}”}, produces = “application/json”) / will give all the pool name and volumes, /poolname will give all the pool name and volumes of that particular pool, /poolname/”poolname/volumename” should give the pool and the volume. The volume name is in the format {poolname}/{volumename}, so I want to provide the slash with URL encoded but given restful method below gives…

August 21, 2019 Vignesh Sathiyanantham

In my previous post, I have explained how to deploy Nimesa cloud data protection software in your AWS account. In this post, will discuss on the permission required to protect EC2 Instance and RDS Instance. Then how to create an IAM account and get the access key. To perform the Backup, Restore, DR operation, utilization details an IAM user with the required permission and programmatic access is required. Creating the IAM user with permission is very simple. I have published the JSON file with the permissions required in my public GIST. You can directly use it https://gist.github.com/asvignesh/9cd266549ea1f969e165423db380c31a Create a policy,…