Sunday, 13 November 2016

LVM (Logical Volume Manager)
It is a software which install by default when you install Linux.  LVM use to allocate disks, mirroring striping and resizing the logical volumes. LVM physical volume placed on block device which have two or more hard disk.
It’s a storage management system that manage the disk space for file system and data. Most important feature is that you can easily create resize and delete LVM partition without reboot the system.

We have three main thing to implement the LVM as shown in below diagram:-





























Physical Volume (PV)
Adding new Hardware is called physical volume.  Mean you adding a new disk storage.
Volume Group (VG)
Collection of Physical volume is called volume group.
Logical Volume (LV)
The space of volume group which is used to store the data called logical volume.

Implement the Logical Volume

Fisrt of all you have to create a partition with 8e type which define the LVM.
# fdisk /dev/sda
Press n for new partition now give here size according to your requirement.
Partition type 8e. press w for save.
# partproble /dev/sda

# pvcreate  /dev/sda1 /dev/sda2

# pvdisplay

#vgcreate vgname /dev/sda1

# vgdisplay

# lvcreate –size +10G –n <lv name>  < vg name>
You can use here another command also which define the label size
# lvcreate -l +<Lavel Value> -n <lv name> <vg name>

# lvdisplay

#df -h
to check the size of new logical volume

After that create format the LV to use.
# mkfs.ext4 /dev/vgname/lvname 

After that mount LV with a existing directory
# mount /dev/vgname/lvname /mountDIR
# mount 
to check the mount 


For More about LVM please see on next post.
For Video of LVM please see on https://www.youtube.com/channel/UCdgKsGClT_D4A7he99JbfZg

Related Posts:

  • RT (Request Tracker) Setup in Debian RT is a web-based tool that provides easy way to request for IT support and other support services. Using RT, you can easy send a support request for help. Request will go directly to the appropriate group. First of all yo… Read More
  • Ldap Authentication for Owncloud Configure own cloud to access with centralized  ldap authentication. You can say it accessing own cloud with domain authentication. Or how to access ldap with Single sign on. First of all login into your own cloud con… Read More
  • How to Extend & Reduce the LVM The need of LVM extend is when we require extra disk space to store the raw data. First we have to provide the storage or extra hardware to volume group. Extend the Volume Group :- # vgextend <vg name> <new pv&… Read More
  • OpenVPN Client Configuration in Linux OpenVPN installation and configuration on Ubuntu 1.     sudo apt-get update 2.     sudo apt-get install network-manager-openvpn 3.     Click on networ… Read More
  • How to add SSH Keys to Lap There are multiple ways of adding ssh keys to ldap. 1.     Download Apache Directory Studio 2.     Extract and Install it. For Linux 3.  tar xvfz ApacheDirectoryStudio-… Read More

0 comments:

Post a Comment

Sample Text

Powered by Blogger.

Video

Popular Posts

Our Facebook Page