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
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.
Thanks bhut acche se explain kiya
very good explain , thanks a lot of you😇
Excellent Mr prashant , video was very impressive , cleared each and every dought
@MPrashant
Жыл бұрын
Thanks a ton!
Thanks sir kitne din se wait kar raha tha 🙏🙏
@MPrashant
Жыл бұрын
😀
your teaching is soo nice, i was struggling with this LVM concept but now i feel confident. thanks a lot
@MPrashant
Жыл бұрын
Glad to hear that!
Your way of teaching is very well strucrtured , simple and easy to understand.. Please continue making more such useful videos !! :)
@MPrashant
Жыл бұрын
Thanks for sharing feedback!
Thank you so much Prashant for this great content. your videos are really helpful.
@MPrashant
6 ай бұрын
Glad you like them!
Really helpful thanks for making this video and also thanks for your hard work
@MPrashant
Жыл бұрын
Happy to help!
Thank you , You're Awesome
@MPrashant
5 ай бұрын
You're welcome!
Plz include lv backup and restore
Your explanation is very simple and to the point. Thank you bro 🙂
@MPrashant
Жыл бұрын
Glad it helped!
realiiy helping me out these days
@MPrashant
Жыл бұрын
Glad to hear that!
Excellent , I like the smart way of teaching !!!!!! share us more Linux updates
@MPrashant
Жыл бұрын
Thanks for the feedback!
thank you bhai 💯
@MPrashant
4 ай бұрын
Welcome!!
Thank you sir, you teach complex topics very easy way
@MPrashant
2 ай бұрын
Glad you liked it.
Perfect video and clearly understandable compared to others
@MPrashant
Жыл бұрын
Thanks for the feedback!
Awesome
We'll done sir🎉 your videos very helpful for us. Keep share your experience and good knowledge.
@MPrashant
10 ай бұрын
Keep watching and thanks for the feedback!
Great Man Nice Clear Tutorial.....
@MPrashant
Жыл бұрын
Glad you liked it!
good mornng sir thanks
thankyou soooooo much ❤❤❤❤
@MPrashant
11 ай бұрын
You're welcome 😊
Prashant do we not require partprobe command to save it to the kernel? Just asking to remove my confusion
really helpful video, very simple language ,easy to understand. thanks
@MPrashant
Жыл бұрын
Glad it was helpful!
@gajendrakadu29
Жыл бұрын
@@MPrashant could you please suggest some point or video for linux job roles and responsibilities ,which will help me to put on CV.
Thanks sir
Thank you si
Amazing!
@MPrashant
4 ай бұрын
Thanks for the feedback!!
THAANNNKK YOU WHAT A EXPLANATION TAHNK YOU SO MUCH BROOOOOOOO.............
@MPrashant
9 ай бұрын
Glad you liked it 😀
awesome teaching
@MPrashant
5 ай бұрын
Glad you think so!
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
Жыл бұрын
😃 hope it was easy to understand and helped you!
@akhileshprajapati8358
Жыл бұрын
@@MPrashant yes bro...
Prashant sir before extending vg what needs to be done?
Thanks Dear
@MPrashant
Жыл бұрын
Welcome!
Literally I don't know hindi bhai but the way of ur teaching makes me understand everything . ❤❤ thank you
@MPrashant
Жыл бұрын
Appreciate your effort for learning!
❤goat
Hi King. you have dropped your 👑 always awesome
@MPrashant
Жыл бұрын
Thanks buddy!
@MPrashant, I am facing issue in 25:13 i.e after (vi / etc/fstab) command. So can you help?
Good explanation for LVM..
@MPrashant
4 ай бұрын
Thanks for the feedback!
Thanks for this video. I have one doubt there are 3 types of lvm…. Why it is not in the video ? Please reply
@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
can we use lvresize command and decrease/increase the size
Nice explain. Please Partitions and Swap partitions this topic explain.
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
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.
Bro you have a unique teaching skill
@MPrashant
Жыл бұрын
I appreciate that!
Seriously your explaining way is outstanding but i have a work for you kindly create a video on pcs cluster
Hello Prashant , How can I prepare for RHEL 9 Certification exams . Currently all the interviewer are asking for certifications.
One of the best channel
@MPrashant
Жыл бұрын
Thank You!
Excellent
@MPrashant
Жыл бұрын
Thank you! Cheers!
Very nice way of teaching sir , I am aslo working as Unix/Linux admin but the way u explain is awsm 🙌
@MPrashant
Жыл бұрын
Thanks for liking!
@shamabano8144
9 ай бұрын
kbse ye job kr rhe aap?
Dear Prashant, Please make a video on Linux cluster.
All of your videos are great. Please make a video on allowing ports in firewall for incoming traffic.
@MPrashant
Жыл бұрын
Thanks for the feedback! Will try to make one
Can you please provide detail video on linux memory management topic??
@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
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 :)
Sir in fstab 6 tab is there whats mean of 0 0 pls tell 🙏
excellent
@MPrashant
Жыл бұрын
Thanks!
@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
9 ай бұрын
Glad it was helpful!
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
Жыл бұрын
I will try my best!
Make video on patching activities and incident handling if possible
Good
@MPrashant
Жыл бұрын
Thanks!
sir pls make complete rhel 9 video
Bhai dns server pai video plz
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
2 ай бұрын
added in my list, will try
@MPrashant sir dhcp pe banalo ek lecture pls #req
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
8 ай бұрын
-L for specific size , -l you can specify % like 100%
i like you 👍
#@MPrashant sir dhcp pe banalo ek lecture pls #req
🙏🙏
Mount command kya batata hai dir
Good evening sir
@MPrashant
Жыл бұрын
Good evening!
very good beta
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
Жыл бұрын
I will try to cover it.
#MPrashant sir dhcp pe banalo ek vedio
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
Жыл бұрын
Yes in case you want to use entire disk space as single partition then you can directly create PV
@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.
Please sir can you upload video on user and group management
@MPrashant
Жыл бұрын
soon
Please try to upload lecture on MySQL database
@MPrashant
Жыл бұрын
Very soon.
Please how to make a user, group, multiple user Please make a video Question answer
Sir please upload troubleshooting series
@MPrashant
Жыл бұрын
Working on it, will be uploading soon.
I am searching for linux jobs and watching your videos for long time.. please suggest for searching job in Linux
@MPrashant
Жыл бұрын
I will try making video on this
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
Жыл бұрын
Once you start learning Linux it will be fun using it, and very useful too in the IT industry
sir thodi problem ho rahi mujhe samajhne me ye part
please make pdf available you use in the videos
Hi sir I want to join
How to file transfer linux to windows and windows to linux Please 🙏🙏🙏 Make a video Question answer.
@MPrashant
Жыл бұрын
soon
How can we copy and paste the commands like he did? Can anyone please help?
@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
Жыл бұрын
@@MPrashant thanks a lot
sir ap k pass kon ha centos7 centos 8
@MPrashant
6 ай бұрын
I was using Centos8 and now using Redhat9
Sir background ka or font ka color kaise change kre
@MPrashant
Жыл бұрын
You can try using different terminal like Windows cmd, Git bash etc
@AbdultalibShiekh
Жыл бұрын
@@MPrashant sir i am using aws Login console to practice linux machine using putty gen
Hi sir, how we can connect with you for training. 🖐🖐🖐🖐🖐
@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
Жыл бұрын
Thanks
Backup & Restoration
Please upload booting process in Linux
@MPrashant
Жыл бұрын
Will try soon
@manojkakde6476
Жыл бұрын
Thanks sir
Could you please explain in English Bcz we don't know Hindi
@MPrashant
Жыл бұрын
I can try but it's bit hard to maintain two channels... will subtitles work?