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 “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 “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.
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”
Many people get confused between run levels in Linux and Solaris. One major difference among these can be disastrous also. In this post we will show you the different Run levels in both these OS and what precautions you should take while working on these.
Let’s first take a look at Run levels.
Continue reading “Comparing Run Levels in Linux and Solaris and precautions with them”
To add new disk in Virtual box VM it should be in powered off state.
- Select the Virtual box VM in which you want to add the disk and power off the VM.
- Right click on the VM and go to “Settings” .
Continue reading “Solved: How to add disk in a virtual box VM”
In this post we will see how to create a docker container of ubuntu on your windows laptop.
I am using “Docker for Windows” software to run dockers on my Windows 10 laptop. You can get “Docker for Windows” by clicking on this link .
If you have Windows 7 download Docker Toolbox for Windows with Virtualbox.
Ubuntu docker creation
Continue reading “Steps to create a docker container in your laptop”
In this post we will discuss how to reset the root password of a Redhat linux server if you forgot it.
- Reboot the server
- While you are at boot menu press “Up or Down” arrow key to prevent system from booting.
- Select the boot device and press “e” to edit it.(refer Image 1)
Continue reading “Solved: How to reset root password in Redhat Linux or CentOS”
In this post we will discuss how to mount ISO in Linux VM running inside Virtualbox or VMware.
Continue reading “Solved: How to mount ISO in a linux VM”
rsync is a very useful utility which can be used to take backup or copy data from one filesystem to other. The best part with rysnc is that it considers incremental data while copying and syntax is easy.
rsync is popular with Linux and included in most versions by default. If you don’t have rsync in machine you can simply install it by following commands:-
Ubuntu / Debian
sudo ap-get update
sudo apt-get install rsync
RHEL / CentOS
yum install rsync
Continue reading “Solved: Install and use rsync in Linux and Solaris – Tips and Tricks”