What is LVM in Linux with Example in Hindi | MPrashant

#linux #linuxtutorial #mprashant #centos8 #lvm
Alright!
In this video I have covered,
What is LVM and it's example
Advantage of LVM
Possibilities of LVM
Real-time LVM Example
Adding New Space/disk using LVM
Extending the space using LVM
Creating a partition using fdisk command
Logical Volume Manager in Hindi
Linux LVM Tutorial in Hindi
In this video I will cover the usage of following Linux Commdands
fdisk -l
pvcreate
pvdisplay
vgcreate
vgextend
vgdisplay
lvcreate
lvextedn
lvdisplay
lvs
mount
mkfs
df -Th
------------------------------------------------------------------
Timelines
00:00 Intro
01:12 What is LVM?
01:50 Examples of LVM
02:42 LVM Structure Diagram
04:58 Advantage of LVM
05:30 Use Cases of LVM
06:30 Various Combinations of LVM components
07:46 How to add a disk using LVM?
08:53 Steps to add new disk using LVM
27:00 Extending a disk using LVM
-----------------------------------------------------------------------
NOTES
-----------------------------------------------------------------------
Steps of LVM for adding new space
Install a new Hard Disk drive
Make a partition to use it
Designate physical volume (PV)
Manage Volume Group (VG)
Manage Logical Volume (LV)
Apply a filesystem
Set a mount point
-----------------------------------------------------------------------
Steps for LVM
1. Install a new hard disk drive
2. Designate Physical Volumes (PV) so that it will be available to LVM as storage capacity.
Command to create a PV:
pvcreate /dev/sdb1
pvcreate /dev/sdc
The first command designates partition 1 on storage disk b as a PV.
The second command sets the total capacity of storage disk c as a PV.
Display PV capacity and additional information:
pvdisplay
3. Manage Volume Groups
Now we have created PV
We can create Volume Group (VGs)
A server can have multiple VG
A disk can be part of multiple VG
PV can only be member of one VG
VG must have at least one member (vg00 is our group name and others are our PVs)
vgcreate vg00 /dev/sdb1 /dev/sdc
To display information for a VG named vg00
vgdisplay vg00
4. Now it's time to manage Logical Volumes
VG can be subdivided into one or more LVs (lvcreate is the command)
lvcreate -L size(1G or 1T) -n lvname vgname
To display information for a LV
lvdisplay /dev/vg00/lvname
5. Now we have LV also, so we can now move with apply a filesytem and set a mount point.
- Run the mkfs.ex4 command on the LV.
- Create a mount point by using mkdir.
- Manually mount the volume using the mount command, or edit the /etc/fstab file to mount the volume automatically when the system boots.
- Use the df -h command to verify the storage capacity is available.
--------------------------------------------------------------------------------------------

Пікірлер: 151

  • @MPrashant
    @MPrashant Жыл бұрын

    NOTE: In case you want to use entire disk space as single partition then you can directly create PV (you can skip the fdisk partition part) Added additional step of 'fdisk partition' for reference so that in case if you want multiple partition of a single disk for multiple Volume Group.

  • @pratikshadhiman3114
    @pratikshadhiman3114Ай бұрын

    Thanks bhut acche se explain kiya

  • @sumitgaikwad8492
    @sumitgaikwad84927 ай бұрын

    very good explain , thanks a lot of you😇

  • @Harsh-yj9ly
    @Harsh-yj9ly Жыл бұрын

    Excellent Mr prashant , video was very impressive , cleared each and every dought

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks a ton!

  • @tabrezahmad9295
    @tabrezahmad9295 Жыл бұрын

    Thanks sir kitne din se wait kar raha tha 🙏🙏

  • @MPrashant

    @MPrashant

    Жыл бұрын

    😀

  • @rajatpundir701
    @rajatpundir701 Жыл бұрын

    your teaching is soo nice, i was struggling with this LVM concept but now i feel confident. thanks a lot

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Glad to hear that!

  • @Ankit5434
    @Ankit5434 Жыл бұрын

    Your way of teaching is very well strucrtured , simple and easy to understand.. Please continue making more such useful videos !! :)

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks for sharing feedback!

  • @kamleshmishra3789
    @kamleshmishra37896 ай бұрын

    Thank you so much Prashant for this great content. your videos are really helpful.

  • @MPrashant

    @MPrashant

    6 ай бұрын

    Glad you like them!

  • @Sunil-ek3cw
    @Sunil-ek3cw Жыл бұрын

    Really helpful thanks for making this video and also thanks for your hard work

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Happy to help!

  • @pradeephmkumar
    @pradeephmkumar5 ай бұрын

    Thank you , You're Awesome

  • @MPrashant

    @MPrashant

    5 ай бұрын

    You're welcome!

  • @veriverithanam2867
    @veriverithanam2867 Жыл бұрын

    Plz include lv backup and restore

  • @sanketmhaske2706
    @sanketmhaske2706 Жыл бұрын

    Your explanation is very simple and to the point. Thank you bro 🙂

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Glad it helped!

  • @DipuSingh-zg3tt
    @DipuSingh-zg3tt Жыл бұрын

    realiiy helping me out these days

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Glad to hear that!

  • @Criminalwar
    @Criminalwar Жыл бұрын

    Excellent , I like the smart way of teaching !!!!!! share us more Linux updates

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks for the feedback!

  • @ashwinijitithor3206
    @ashwinijitithor32064 ай бұрын

    thank you bhai 💯

  • @MPrashant

    @MPrashant

    4 ай бұрын

    Welcome!!

  • @abhi5566
    @abhi55662 ай бұрын

    Thank you sir, you teach complex topics very easy way

  • @MPrashant

    @MPrashant

    2 ай бұрын

    Glad you liked it.

  • @ajinj2936
    @ajinj2936 Жыл бұрын

    Perfect video and clearly understandable compared to others

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks for the feedback!

  • @lakshayarora3935
    @lakshayarora3935 Жыл бұрын

    Awesome

  • @PoojaGupta-wq1gs
    @PoojaGupta-wq1gs10 ай бұрын

    We'll done sir🎉 your videos very helpful for us. Keep share your experience and good knowledge.

  • @MPrashant

    @MPrashant

    10 ай бұрын

    Keep watching and thanks for the feedback!

  • @saikatbiswas4402
    @saikatbiswas4402 Жыл бұрын

    Great Man Nice Clear Tutorial.....

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Glad you liked it!

  • @mohitborse6018
    @mohitborse6018 Жыл бұрын

    good mornng sir thanks

  • @fayazmohammad1391
    @fayazmohammad1391 Жыл бұрын

    thankyou soooooo much ❤❤❤❤

  • @MPrashant

    @MPrashant

    11 ай бұрын

    You're welcome 😊

  • @alokraj7935
    @alokraj7935 Жыл бұрын

    Prashant do we not require partprobe command to save it to the kernel? Just asking to remove my confusion

  • @gajendrakadu29
    @gajendrakadu29 Жыл бұрын

    really helpful video, very simple language ,easy to understand. thanks

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Glad it was helpful!

  • @gajendrakadu29

    @gajendrakadu29

    Жыл бұрын

    @@MPrashant could you please suggest some point or video for linux job roles and responsibilities ,which will help me to put on CV.

  • @faizanusmani2103
    @faizanusmani210311 ай бұрын

    Thanks sir

  • @justdoit532
    @justdoit5328 ай бұрын

    Thank you si

  • @khyatimamaniya7155
    @khyatimamaniya71554 ай бұрын

    Amazing!

  • @MPrashant

    @MPrashant

    4 ай бұрын

    Thanks for the feedback!!

  • @JaskaranSingh-io8uj
    @JaskaranSingh-io8uj9 ай бұрын

    THAANNNKK YOU WHAT A EXPLANATION TAHNK YOU SO MUCH BROOOOOOOO.............

  • @MPrashant

    @MPrashant

    9 ай бұрын

    Glad you liked it 😀

  • @SagarKumar-lv6wq
    @SagarKumar-lv6wq5 ай бұрын

    awesome teaching

  • @MPrashant

    @MPrashant

    5 ай бұрын

    Glad you think so!

  • @akhileshprajapati8358
    @akhileshprajapati8358 Жыл бұрын

    Bro... How lucky I'm... I have just search for how to create lvm and guess what you have already dropped a video regarding lvm... Smile on my face

  • @MPrashant

    @MPrashant

    Жыл бұрын

    😃 hope it was easy to understand and helped you!

  • @akhileshprajapati8358

    @akhileshprajapati8358

    Жыл бұрын

    @@MPrashant yes bro...

  • @Iqbalsultan1553
    @Iqbalsultan1553 Жыл бұрын

    Prashant sir before extending vg what needs to be done?

  • @clarityamazon9220
    @clarityamazon9220 Жыл бұрын

    Thanks Dear

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Welcome!

  • @pavanpavan8464
    @pavanpavan8464 Жыл бұрын

    Literally I don't know hindi bhai but the way of ur teaching makes me understand everything . ❤❤ thank you

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Appreciate your effort for learning!

  • @vilen7856
    @vilen78564 ай бұрын

    ❤goat

  • @harishbs3803
    @harishbs3803 Жыл бұрын

    Hi King. you have dropped your 👑 always awesome

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks buddy!

  • @CodeBlows
    @CodeBlows9 ай бұрын

    @MPrashant, I am facing issue in 25:13 i.e after (vi / etc/fstab) command. So can you help?

  • @supertalentedkids8228
    @supertalentedkids82284 ай бұрын

    Good explanation for LVM..

  • @MPrashant

    @MPrashant

    4 ай бұрын

    Thanks for the feedback!

  • @mushtaqueshaikh8963
    @mushtaqueshaikh8963 Жыл бұрын

    Thanks for this video. I have one doubt there are 3 types of lvm…. Why it is not in the video ? Please reply

  • @mayanksharma-rk8hz
    @mayanksharma-rk8hz8 ай бұрын

    @Prashant first of all thanks for this lecture I have one doubt like you have show one case to increase or extend but in case we have to decrease

  • @harishbs3803
    @harishbs3803 Жыл бұрын

    can we use lvresize command and decrease/increase the size

  • @user-qv7cd4ik7c
    @user-qv7cd4ik7c3 ай бұрын

    Nice explain. Please Partitions and Swap partitions this topic explain.

  • @AshishSingh-pf1vp
    @AshishSingh-pf1vp7 ай бұрын

    Sir when we go for output of df -Th command, sometimes it get hanged. There could be multiple reasons in Prod Environment like NFS issue & more. Please throw some light on this command

  • @itzizag2280
    @itzizag2280 Жыл бұрын

    Sir can we increase root volume or can we add another LVM disk in root volume with help of lvextend. Or how many way to increase it. kindly guide me. and Thank you so much for your efforts.

  • @Itlife522
    @Itlife522 Жыл бұрын

    Bro you have a unique teaching skill

  • @MPrashant

    @MPrashant

    Жыл бұрын

    I appreciate that!

  • @user-ch6ff3ts5s
    @user-ch6ff3ts5s2 ай бұрын

    Seriously your explaining way is outstanding but i have a work for you kindly create a video on pcs cluster

  • @Criminalwar
    @Criminalwar Жыл бұрын

    Hello Prashant , How can I prepare for RHEL 9 Certification exams . Currently all the interviewer are asking for certifications.

  • @nobitagaminglite2150
    @nobitagaminglite2150 Жыл бұрын

    One of the best channel

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thank You!

  • @anilbangera1
    @anilbangera1 Жыл бұрын

    Excellent

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thank you! Cheers!

  • @AbhishekSharma-ep9km
    @AbhishekSharma-ep9km Жыл бұрын

    Very nice way of teaching sir , I am aslo working as Unix/Linux admin but the way u explain is awsm 🙌

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks for liking!

  • @shamabano8144

    @shamabano8144

    9 ай бұрын

    kbse ye job kr rhe aap?

  • @dhirajubhalkar6361
    @dhirajubhalkar6361 Жыл бұрын

    Dear Prashant, Please make a video on Linux cluster.

  • @Md_Ehtesham.
    @Md_Ehtesham. Жыл бұрын

    All of your videos are great. Please make a video on allowing ports in firewall for incoming traffic.

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks for the feedback! Will try to make one

  • @pankajpatil9966
    @pankajpatil99662 ай бұрын

    Can you please provide detail video on linux memory management topic??

  • @brokenchains69
    @brokenchains699 ай бұрын

    @MPrashant, this video was very well made, reflects your in-depth knowledge of the subject matter. Which leads me to ask you this question, How did you acquire such expertise, any book or any other resource, I want to also gain deeper knowledge of linux system networking and storage administration. Can you please point me in the right direction .

  • @MPrashant

    @MPrashant

    9 ай бұрын

    Thanks for the feedback! I rely on official documentation of each topic and including understanding that topic from multiple resources (online, google, youtube etc) and ofcourse practice :)

  • @tabrezahmad6633
    @tabrezahmad6633 Жыл бұрын

    Sir in fstab 6 tab is there whats mean of 0 0 pls tell 🙏

  • @tahirm09
    @tahirm09 Жыл бұрын

    excellent

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks!

  • @kaustubhmavle8459
    @kaustubhmavle84599 ай бұрын

    @MPrashant, thank you for creating such dedicated and lucid video on LVM. I have learnt and understood a complex concept within such short time. Looking forward for more informative content.👍🏽👌🏽

  • @MPrashant

    @MPrashant

    9 ай бұрын

    Glad it was helpful!

  • @akhileshprajapati8358
    @akhileshprajapati8358 Жыл бұрын

    Hey Prashant waiting for ur video on Ansible and docker... Now every recruiter wants this skills in the employee... Hope you will publish it soon...

  • @MPrashant

    @MPrashant

    Жыл бұрын

    I will try my best!

  • @poojasreedas7050
    @poojasreedas7050 Жыл бұрын

    Make video on patching activities and incident handling if possible

  • @Unknown-rh5jh
    @Unknown-rh5jh Жыл бұрын

    Good

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Thanks!

  • @DevOps_Zone
    @DevOps_Zone Жыл бұрын

    sir pls make complete rhel 9 video

  • @prathameshgodse5435
    @prathameshgodse5435 Жыл бұрын

    Bhai dns server pai video plz

  • @user-ch6ff3ts5s
    @user-ch6ff3ts5s2 ай бұрын

    kindly Create a video on Grafana 😅 there are many KZread channels but no one explain like you and I have already seen many videos on Grafana but the information given there is incomplete. just because I'm requesting to you.

  • @MPrashant

    @MPrashant

    2 ай бұрын

    added in my list, will try

  • @sauddalvi6650
    @sauddalvi665010 ай бұрын

    @MPrashant sir dhcp pe banalo ek lecture pls #req

  • @paragshegulwadkar9622
    @paragshegulwadkar962211 ай бұрын

    Hii Prashant , thanks for this video, may I know what is difference between -L & -l (small -l) in lvcreate command?? please let us know

  • @ilyasshaikh5944

    @ilyasshaikh5944

    8 ай бұрын

    -L for specific size , -l you can specify % like 100%

  • @user-zr1pj5rz3c
    @user-zr1pj5rz3c6 ай бұрын

    i like you 👍

  • @sauddalvi6650
    @sauddalvi665010 ай бұрын

    #@MPrashant sir dhcp pe banalo ek lecture pls #req

  • @rishiraj2548
    @rishiraj2548 Жыл бұрын

    🙏🙏

  • @ashishsaket2911
    @ashishsaket2911 Жыл бұрын

    Mount command kya batata hai dir

  • @MohitKumar-rv5hz
    @MohitKumar-rv5hz Жыл бұрын

    Good evening sir

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Good evening!

  • @kirnadevi1380
    @kirnadevi1380Ай бұрын

    very good beta

  • @tabrezahmad6633
    @tabrezahmad6633 Жыл бұрын

    Sir ek request hai aapse pls make video on Server monitoring and helath checka dn disk utilizagion ratio check kaise kqre everytime interview tbey askung

  • @MPrashant

    @MPrashant

    Жыл бұрын

    I will try to cover it.

  • @sauddalvi6650
    @sauddalvi665010 ай бұрын

    #MPrashant sir dhcp pe banalo ek vedio

  • @veriverithanam2867
    @veriverithanam2867 Жыл бұрын

    We can create pv directly from scanning the disc right?I'm a bit confused why to create a partition and then coming to pv create Can anyone explain

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Yes in case you want to use entire disk space as single partition then you can directly create PV

  • @MPrashant

    @MPrashant

    Жыл бұрын

    In practical cases, mostly you will have only one single hard disk and you might need to do partitions for better usage. In that case 'fdisk' can be helpful.

  • @manojkakde6476
    @manojkakde6476 Жыл бұрын

    Please sir can you upload video on user and group management

  • @MPrashant

    @MPrashant

    Жыл бұрын

    soon

  • @rajdeepbhosale7360
    @rajdeepbhosale7360 Жыл бұрын

    Please try to upload lecture on MySQL database

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Very soon.

  • @amolnitnaware2238
    @amolnitnaware2238 Жыл бұрын

    Please how to make a user, group, multiple user Please make a video Question answer

  • @manojkakde6476
    @manojkakde6476 Жыл бұрын

    Sir please upload troubleshooting series

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Working on it, will be uploading soon.

  • @kafilbbs00
    @kafilbbs00 Жыл бұрын

    I am searching for linux jobs and watching your videos for long time.. please suggest for searching job in Linux

  • @MPrashant

    @MPrashant

    Жыл бұрын

    I will try making video on this

  • @ujjawal_
    @ujjawal_ Жыл бұрын

    Sir I replaced my Os with Ubuntu 20.04 in excitement but now I'm finding it very tough and scary, What to do now.

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Once you start learning Linux it will be fun using it, and very useful too in the IT industry

  • @chidiyacartoon4222
    @chidiyacartoon4222 Жыл бұрын

    sir thodi problem ho rahi mujhe samajhne me ye part

  • @AbhishekGupta-ir6ly
    @AbhishekGupta-ir6ly6 ай бұрын

    please make pdf available you use in the videos

  • @aarav.14gaming33
    @aarav.14gaming3310 ай бұрын

    Hi sir I want to join

  • @amolnitnaware2238
    @amolnitnaware2238 Жыл бұрын

    How to file transfer linux to windows and windows to linux Please 🙏🙏🙏 Make a video Question answer.

  • @MPrashant

    @MPrashant

    Жыл бұрын

    soon

  • @anmolgupta971
    @anmolgupta971 Жыл бұрын

    How can we copy and paste the commands like he did? Can anyone please help?

  • @MPrashant

    @MPrashant

    Жыл бұрын

    In terminal like putty, when you select something with mouse, it is already copied. To paste, you can just right-click on mouse OR Shift+Insert

  • @anmolgupta971

    @anmolgupta971

    Жыл бұрын

    @@MPrashant thanks a lot

  • @user-zr1pj5rz3c
    @user-zr1pj5rz3c6 ай бұрын

    sir ap k pass kon ha centos7 centos 8

  • @MPrashant

    @MPrashant

    6 ай бұрын

    I was using Centos8 and now using Redhat9

  • @AbdultalibShiekh
    @AbdultalibShiekh Жыл бұрын

    Sir background ka or font ka color kaise change kre

  • @MPrashant

    @MPrashant

    Жыл бұрын

    You can try using different terminal like Windows cmd, Git bash etc

  • @AbdultalibShiekh

    @AbdultalibShiekh

    Жыл бұрын

    @@MPrashant sir i am using aws Login console to practice linux machine using putty gen

  • @lalitrao9897
    @lalitrao9897 Жыл бұрын

    Hi sir, how we can connect with you for training. 🖐🖐🖐🖐🖐

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Hello Lalit, I don't take classes or paid training as of now outside of this YT channel. Rest assured, you will be getting more useful content here.

  • @lalitrao9897

    @lalitrao9897

    Жыл бұрын

    Thanks

  • @justdoit532
    @justdoit5328 ай бұрын

    Backup & Restoration

  • @manojkakde6476
    @manojkakde6476 Жыл бұрын

    Please upload booting process in Linux

  • @MPrashant

    @MPrashant

    Жыл бұрын

    Will try soon

  • @manojkakde6476

    @manojkakde6476

    Жыл бұрын

    Thanks sir

  • @nareshtalari6482
    @nareshtalari6482 Жыл бұрын

    Could you please explain in English Bcz we don't know Hindi

  • @MPrashant

    @MPrashant

    Жыл бұрын

    I can try but it's bit hard to maintain two channels... will subtitles work?

  • @shrikantpatil194
    @shrikantpatil194 Жыл бұрын