If the root volume of your EC2 instance got corrupt, instance won’t come up. Since you don’t have access to console of EC2 instance so you can’t do much.
In this post we will discuss options to restore an EC2 instance from snapshot backup. Prerequisite for the below guide is that you already have snapshot of the volume which you want to restore.
Continue reading “Solved: Restore root disk of EC2 without changing IP or Hostname”
In this post we will show you how to install python 3 in a Linux box. We have Centos 7 installed in our server.
Check installed python version
Most of the Linux versions by default have python installed. So let’s check the current version.
[ec2-user@cloudvedas ~]$ python --version
As we can see from the above output, currently we have Python 2 installed and we need Python 3 so let’s install it.
Continue reading “Solved: Install Python 3 in Linux and set it as default”
In this post we will show you how you can manage the spam comments on your website without installing a plugin or tweaking the code.
All of us who manage a website or blog knows what a menace are spam comments. These spam can easily ruin the experience of your visitors and may also degrade your ranking in search engines.
Continue reading “Solved: Block spam in WordPress for free without plugin or coding”
This post is divided in two sections. In the first section you will see how to create an EBS volume and in the next section we will show you how to configure the EBS volume in windows instance.
Create EBS Volume
Continue reading “Solve: How to add an EBS volume to a Windows EC2 instance and configure it”
In this post we will see how to grow a Linux filesystem without reboot.
- Let’s check our current filesystem. We want to extend this filesystem by 200MB.
[root@cloudvedas CVFS1]# df -h /CVFS1
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cvsvg-cldvdsvol1 47M 12M 32M 26% /CVFS1
- First check if we have free space in VG
Continue reading “Solved: How to extend or grow a linux filesystem under LVM”
In this post we will see how to label a new disk in Linux and create a new LVM partition.
Step 1 Scan the new LUNS.
Step 2 List the available disks and identify the one you want to use.
fdisk -l |grep /dev/ |grep -v dm
Step 3 Use fdisk to label the disk. Here we are using disk sdb .
Continue reading “Solved: How to label a disk in Linux”
In this post we will give you a crash course on Linux LVM (Logical Volume Manager). This post will cover the most used LVM commands in a Linux Admin life.
Before we start first let’s go through the concepts.
Physical Volumes (PVs): Storage devices (physical hard disks, partitions, RAID arrays etc.) provides raw storage
Volume Groups (VGs): Combine multiple PVs to create a group. They can be mirror or concatenation of PVs.
Logical Volumes (LVs): Create smaller volumes from the Volume Group(VG) as per your size requirement. You can can use the LVs to create filesystem on them.
Below commands are for RHEL 7.
All the below commands will require root access. You can either run them with sudo or switch to root user as mentioned below.
sudo su -
[root@cloudvedas ~]# yum install lvm2*
Continue reading “LVM Crash course”
In this post we will see what’s a cron job and how we can set it.
Cron is managed by a crontab file. Its a configuration file in which we can schedule shell command to run periodically.
Continue reading “Solved: How to schedule a cron job in Linux or Solaris”
Telnet was always a security risk as data transfer is not secure on it. Seems like Microsoft has now finally removed it from Windows Server 2016.
We generally use telnet to check if a port is open on the remote server. So, how to check it now without telnet?
Continue reading “Solved: How to check remote port status in windows server 2016 without telnet”
In our last post we have seen how to use EB CLI for managing elastic beanstalk through command line. But, you can also manage elastic beanstalk using traditional AWS CLI. In this post you will find AWS CLI cheat sheet for the same.
If you are new to Elastic Beanstalk, it’s recommended that you go through this free AWS Elastic Beanstalk crash course.
Below are the major commands used frequently while managing the elastic beanstalk environment.
Continue reading “AWS CLI Elastic Beanstalk cheat sheet”