Hello Friends will come back in this lesson.
We're going to talk about LVM.
That is logical volume manager in Bruin's lesson we learn how to create employment rate it.
So in this lesson I would like to show you how to create and implement CLV.
So first of all let's understand what is Elvie LVM is nothing but a group of different hard drives.
And with that group we can create some logical partitions on that group OK with a technique.
OK so such mechanism is called as the logical volume manager on Elvia.
So before actually showing you how to create that let's understand it with the help of some graphics.
OK suppose you have different physical.
OK.
Now suppose you have this full harddrive it is hiring size $5 right.
OK.
And this Hydro's not how any partition.
So to implement the logical partition on that what do you need to do is you need to convert them into
physical volumes.
OK you need to convert each of these drives into physical volumes and of converting them into physical
volumes you need to convert them into a larger volume group.
Ok this larger volume group is the combination of all these physical drives.
OK.
So now it becomes apparent easier ways we can work all this file as you go about hydrides into one group
then it becomes 20 gigabytes.
So in this way we can create a large volume group and after creating this one group they can implement
some small partitions on that.
And these partitions are called as logical partitions.
OK.
In this way we can create all we can create a single partition of 20 byte on that.
It's our choice what size we want.
So in this way we can create logical partitions on that one group.
So let's see practically how to actually create these things.
OK.
First of all you need to add three different all hard disks.
OK.
We learn how to add them in the previous lesson.
So here let me show you that hard disk
OK here you can see as DBI as DC and SDD.
OK.
And here I like to combine is DBMS's DC to form a group.
OK and for some reason I put as deep as it is then I will show you how to use the SDD to grow or shrink
the volume group.
OK so first of all you create a logical partition.
You need to convert our disk to physical Williams So convert into physical volumes.
There is a command we retrieved will get rid of code that provide that device.
So it has to be there as now.
It displays the message physical volume successfully created as DNS DC.
OK.
Now there is a command the display of the grating.
Those volumes you can view the status of the volumes.
OK so here you can see it's DPN is DC.
Those volumes are being created here.
Here we can see the size of it so we can get the you ID of those volumes.
OK.
Now of creating the physical volumes we need to convert in volume group so that a larger volume group
of them on the Create key which we create and here you need to provide the volume name volume group
name.
So I want to name it as a computer object.
And after that here you need to provide the physical volume list.
So here I have his TV skees.
OK.
Now hit Enter now here is the message William group created successfully.
So after creating the volume group you can view that as the pseudo Viji display.
Ok here you can see.
OK let's do this again more.
OK.
Here you can see all the volume group.
A computer is created here of size nine point nine nine gigabytes.
OK.
So that five gigabyte hard drives are combined to one and we get into our volume group of sites nine
point nine nine gigabytes.
In this way you can create and view the status of the WM group with the help of this come on.
Now after creating volume group non-SS time to create logical partition on that so far that there is
a common pseudo Elodie create ugly and after victory and you provide the name for the partition.
So I want to set it to Matt again.
Matt is a student which belongs to a computer group.
OK.
And then you need the court decides.
So that takes sides and here I want to set it to goosy that is the Ziller bite.
And here you are the group name still do and group name is computer.
They hit enter.
Why.
Yes.
OK.
Now are logical volume Matt created.
OK.
And you can view it status with LV display as you do your the display here more.
So here you can see the mat is present here and you can see it sizes Cusick or bytes.
So in this way you can create a logical volume and you can also view it by getting a good deal completed.
Yes and here you can see the Mac the Mac partition is present here inside this directory.
OK but creating just a partition is not enough unique to format it.
And then you need to mount it so reformat this hard to install a file system on it.
There is a command that we always use them.
If they start in 64 they can hear the new ice name.
That is the Matt OK.
Now we have installed the file system successfully.
OK now we need to mount that somewhere.
So here I will them mounted.
First of all let's check.
What is vitamin D.
Ok there is a defective Roble.
But you know I like to create a new directory computer
soggy and here I will let the monkey power in.
Is a new addition here.
So screw mount Dell Computer.
Not even the computer.
OK.
Now let's get inside.
Here we mounted this device successfully.
OK.
So in this way you can create the logical volumes in this way and you can mount them and you can use
them.
OK.
But of creating all these things here Let show you how to extend or how to reduce the logical volumes.
OK.
So ex-student and redos First of all let's unmount our William.
OK.
So pseudo you do computer Matt.
OK.
Now I will show you how to explain the logical way you so that is come on pseudo Elvie extend OK and
extend you know deployed Besides I would like to extend it to one degree or white so here plus one and
it could go wide the partition here.
So can do good.
Matt now here you can see signs of logical volume computer matching from boogying abide by it's OK because
we have extended it up to one degree.
OK so now after extending You can view the status held the display.
Now here you can see it's having the sides teasing out.
We know after extending.
I would like to show you how good it is.
It's sites hogi.
So to reduce the size it is to come on Elvie reduce hogi and then size.
Here you need to provide the minus sign.
So in order to reduce it by one g that is what you get right.
OK up to reducing it here you need to avoid this part.
OK.
Or that partition.
So you MacT Yes we get satisfactory so it can do.
So we just play one.
And here you can see we get our logical volume back to Gugino right.
OK.
Because we reduce it by 1 but only extending or reducing is not enough.
I mean I want to say that only extending will not actually increase the size you need to resize file
system.
So either you perform X10 or lose operation you need to resize the file system so resize its file system
there is a command.
First you need to run the key.
OK.
And then I have on our device.
Bill good.
Matt
OK.
Enough to this resize a face it will resize the file system.
OK the file system is already block long nothing to do.
OK.
That means it's already resized.
But here I want to say one thing that.
And it is a warning because you don't always resize and reduce the size of your logical volume because
it may corrupt your file system and you lost all your data.
So creating the logical volume of once at a time is a good idea.
Or you can or creating different logical volume on this on the same volume group is a good idea but
always resizing or shrinking is a bad idea.
It may cause your system to corrupt.
OK so a word always a b c and resizing the file system.
OK now of extending and reducing.
I would like to show you.
C'mon slow as that is.
It displays the free space on your physical volumes or it can know all it shows you.
Space.
So here we are having is DDNOS about OK with the Viji as it displays the space on WM group free space
on WM group.
OK so we are having free space for our computer WM group.
Seven point nine nine.
Gigabytes and you can view the logical volume status Alvy as
ogee in this vid.
You can use these commands to make sure about the sizes of the devices.
OK so let's Mombo were Levice here.
Slow slow.
My computer had meant computer and let's get inside computer Alice.
And here we get the file system in working order.
Ok so of this crucial you hope ex-student leaves the WM group.
OK right now we learn how to explain under the logical volume.
Here let me show you how to extend or reduce the volume groups so far that there is a command that is
VGX 10.
OK but you need to how physical will you enforce.
So for us to create a physical one loom from the SDD device that we are hiring.
So let's convert pseudo we create day and still do today.
And now you added that converted all that physical volume into the world to use the command with stay
on here.
Roy you are welcome group name.
Ok but here you need to provide the device name.
As d d.
Ok here is a two pronged physical bolu.
OK now they don't know our physical volume to the World Group.
OK now after adding the physical volume on it go we can view the status of group like this.
And here you can see right now we are going to can google group that it is our whilom group of size
14 for $990 bytes because we added an additional drive of ZB.
Go back again in this way you can extend the size of WM group and if you want to remove that or just
so you can easily remove the religious key here and deploy the group name and name the device name like
this.
Now it says it is removed and you can the status here again.
And now we hearing it's size nine point nine ninety eight.
In this way you can extend and reduce the WM group.
OK now of performing all these operations to show you how to stop the Elby and or how to remove the
logical volumes.
So first you need to unmount the logical WM.
OK so on logical volume pseudo long do computer MacT.
And after unmounting there is a command pseudo Elvie remove.
First you need to remove the logical volume it says.
Do you really want to remove.
Yes press y here.
I've successfully removed after removing this.
You need to remove the volume group so to remove all the command remove remove volume group again.
It's successfully removed and after removing the group all the physical volumes.
OK after removing the volume group you need to remove the physical volumes so remove that there is a
common VB.
Remove.
The errors to see the hit enter.
It says successfully wiped.
OK OK now we have successfully removed our logical volume.
Gave in this way you can create illogical values from different hard drives and combine them to a larger
volume group and create different types of partition on that.