WEBVTT

00:08.920 --> 00:11.390
Hello Friends will come back in this lesson.

00:11.390 --> 00:13.350
We're going to talk about LVM.

00:13.430 --> 00:20.510
That is logical volume manager in Bruin's lesson we learn how to create employment rate it.

00:20.690 --> 00:24.780
So in this lesson I would like to show you how to create and implement CLV.

00:25.040 --> 00:32.880
So first of all let's understand what is Elvie LVM is nothing but a group of different hard drives.

00:33.110 --> 00:39.800
And with that group we can create some logical partitions on that group OK with a technique.

00:39.870 --> 00:44.960
OK so such mechanism is called as the logical volume manager on Elvia.

00:45.170 --> 00:51.940
So before actually showing you how to create that let's understand it with the help of some graphics.

00:52.370 --> 00:55.270
OK suppose you have different physical.

00:55.290 --> 00:55.920
OK.

00:56.150 --> 01:00.600
Now suppose you have this full harddrive it is hiring size $5 right.

01:00.740 --> 01:01.400
OK.

01:01.490 --> 01:04.760
And this Hydro's not how any partition.

01:04.820 --> 01:12.220
So to implement the logical partition on that what do you need to do is you need to convert them into

01:12.260 --> 01:13.770
physical volumes.

01:13.960 --> 01:20.840
OK you need to convert each of these drives into physical volumes and of converting them into physical

01:20.840 --> 01:25.310
volumes you need to convert them into a larger volume group.

01:25.480 --> 01:30.890
Ok this larger volume group is the combination of all these physical drives.

01:30.980 --> 01:31.460
OK.

01:31.640 --> 01:38.210
So now it becomes apparent easier ways we can work all this file as you go about hydrides into one group

01:38.540 --> 01:41.040
then it becomes 20 gigabytes.

01:41.240 --> 01:47.960
So in this way we can create a large volume group and after creating this one group they can implement

01:47.960 --> 01:50.840
some small partitions on that.

01:50.960 --> 01:54.710
And these partitions are called as logical partitions.

01:54.910 --> 01:55.320
OK.

01:55.380 --> 02:01.760
In this way we can create all we can create a single partition of 20 byte on that.

02:01.850 --> 02:05.050
It's our choice what size we want.

02:05.300 --> 02:10.200
So in this way we can create logical partitions on that one group.

02:10.280 --> 02:15.040
So let's see practically how to actually create these things.

02:15.270 --> 02:15.540
OK.

02:15.560 --> 02:19.510
First of all you need to add three different all hard disks.

02:19.520 --> 02:20.330
OK.

02:20.390 --> 02:23.890
We learn how to add them in the previous lesson.

02:23.900 --> 02:26.360
So here let me show you that hard disk

02:31.720 --> 02:36.160
OK here you can see as DBI as DC and SDD.

02:36.260 --> 02:36.610
OK.

02:36.700 --> 02:43.720
And here I like to combine is DBMS's DC to form a group.

02:43.720 --> 02:52.060
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

02:52.450 --> 02:53.400
the volume group.

02:53.590 --> 02:57.180
OK so first of all you create a logical partition.

02:57.190 --> 03:03.570
You need to convert our disk to physical Williams So convert into physical volumes.

03:03.640 --> 03:11.010
There is a command we retrieved will get rid of code that provide that device.

03:11.050 --> 03:16.630
So it has to be there as now.

03:16.660 --> 03:22.390
It displays the message physical volume successfully created as DNS DC.

03:22.620 --> 03:23.270
OK.

03:23.500 --> 03:28.950
Now there is a command the display of the grating.

03:28.990 --> 03:33.460
Those volumes you can view the status of the volumes.

03:33.880 --> 03:37.960
OK so here you can see it's DPN is DC.

03:38.230 --> 03:40.860
Those volumes are being created here.

03:40.960 --> 03:47.470
Here we can see the size of it so we can get the you ID of those volumes.

03:47.620 --> 03:48.160
OK.

03:48.460 --> 03:57.010
Now of creating the physical volumes we need to convert in volume group so that a larger volume group

03:57.430 --> 04:07.930
of them on the Create key which we create and here you need to provide the volume name volume group

04:07.930 --> 04:08.380
name.

04:08.410 --> 04:12.340
So I want to name it as a computer object.

04:12.430 --> 04:16.960
And after that here you need to provide the physical volume list.

04:16.960 --> 04:21.730
So here I have his TV skees.

04:22.080 --> 04:22.750
OK.

04:23.420 --> 04:29.580
Now hit Enter now here is the message William group created successfully.

04:29.680 --> 04:38.410
So after creating the volume group you can view that as the pseudo Viji display.

04:39.160 --> 04:41.590
Ok here you can see.

04:41.770 --> 04:45.440
OK let's do this again more.

04:45.670 --> 04:46.090
OK.

04:46.120 --> 04:48.630
Here you can see all the volume group.

04:48.640 --> 04:53.580
A computer is created here of size nine point nine nine gigabytes.

04:53.740 --> 04:54.230
OK.

04:54.400 --> 05:02.680
So that five gigabyte hard drives are combined to one and we get into our volume group of sites nine

05:02.680 --> 05:04.530
point nine nine gigabytes.

05:05.800 --> 05:13.350
In this way you can create and view the status of the WM group with the help of this come on.

05:13.510 --> 05:20.860
Now after creating volume group non-SS time to create logical partition on that so far that there is

05:20.860 --> 05:30.400
a common pseudo Elodie create ugly and after victory and you provide the name for the partition.

05:30.490 --> 05:35.690
So I want to set it to Matt again.

05:35.710 --> 05:38.900
Matt is a student which belongs to a computer group.

05:39.070 --> 05:39.690
OK.

05:40.030 --> 05:42.960
And then you need the court decides.

05:43.030 --> 05:50.640
So that takes sides and here I want to set it to goosy that is the Ziller bite.

05:50.720 --> 05:57.270
And here you are the group name still do and group name is computer.

05:57.330 --> 05:59.540
They hit enter.

06:00.190 --> 06:00.840
Why.

06:01.060 --> 06:01.520
Yes.

06:01.550 --> 06:01.790
OK.

06:01.800 --> 06:04.600
Now are logical volume Matt created.

06:04.750 --> 06:05.030
OK.

06:05.050 --> 06:14.460
And you can view it status with LV display as you do your the display here more.

06:14.620 --> 06:20.290
So here you can see the mat is present here and you can see it sizes Cusick or bytes.

06:20.500 --> 06:30.670
So in this way you can create a logical volume and you can also view it by getting a good deal completed.

06:31.040 --> 06:36.750
Yes and here you can see the Mac the Mac partition is present here inside this directory.

06:36.980 --> 06:42.160
OK but creating just a partition is not enough unique to format it.

06:42.370 --> 06:48.280
And then you need to mount it so reformat this hard to install a file system on it.

06:48.310 --> 06:51.640
There is a command that we always use them.

06:52.420 --> 06:57.900
If they start in 64 they can hear the new ice name.

06:57.940 --> 07:03.240
That is the Matt OK.

07:03.260 --> 07:06.220
Now we have installed the file system successfully.

07:06.500 --> 07:10.550
OK now we need to mount that somewhere.

07:10.610 --> 07:12.870
So here I will them mounted.

07:12.920 --> 07:14.150
First of all let's check.

07:14.150 --> 07:15.920
What is vitamin D.

07:16.130 --> 07:18.390
Ok there is a defective Roble.

07:18.440 --> 07:23.260
But you know I like to create a new directory computer

07:27.120 --> 07:30.400
soggy and here I will let the monkey power in.

07:30.440 --> 07:32.500
Is a new addition here.

07:32.540 --> 07:38.140
So screw mount Dell Computer.

07:38.150 --> 07:42.060
Not even the computer.

07:43.830 --> 07:44.350
OK.

07:44.590 --> 07:46.730
Now let's get inside.

07:50.880 --> 07:54.450
Here we mounted this device successfully.

07:54.450 --> 07:55.170
OK.

07:55.560 --> 08:03.420
So in this way you can create the logical volumes in this way and you can mount them and you can use

08:03.420 --> 08:03.890
them.

08:04.080 --> 08:04.670
OK.

08:04.830 --> 08:13.700
But of creating all these things here Let show you how to extend or how to reduce the logical volumes.

08:13.850 --> 08:14.390
OK.

08:14.640 --> 08:20.000
So ex-student and redos First of all let's unmount our William.

08:20.200 --> 08:20.770
OK.

08:20.850 --> 08:29.270
So pseudo you do computer Matt.

08:29.670 --> 08:30.650
OK.

08:30.770 --> 08:40.580
Now I will show you how to explain the logical way you so that is come on pseudo Elvie extend OK and

08:40.700 --> 08:50.700
extend you know deployed Besides I would like to extend it to one degree or white so here plus one and

08:50.930 --> 08:53.400
it could go wide the partition here.

08:53.560 --> 08:56.280
So can do good.

08:56.900 --> 09:07.100
Matt now here you can see signs of logical volume computer matching from boogying abide by it's OK because

09:07.100 --> 09:10.480
we have extended it up to one degree.

09:10.620 --> 09:20.470
OK so now after extending You can view the status held the display.

09:20.590 --> 09:24.850
Now here you can see it's having the sides teasing out.

09:24.990 --> 09:27.930
We know after extending.

09:27.970 --> 09:29.700
I would like to show you how good it is.

09:29.720 --> 09:31.340
It's sites hogi.

09:31.480 --> 09:40.340
So to reduce the size it is to come on Elvie reduce hogi and then size.

09:40.740 --> 09:43.330
Here you need to provide the minus sign.

09:43.540 --> 09:48.550
So in order to reduce it by one g that is what you get right.

09:48.640 --> 09:52.910
OK up to reducing it here you need to avoid this part.

09:53.110 --> 09:53.610
OK.

09:53.860 --> 09:55.030
Or that partition.

09:55.030 --> 10:04.650
So you MacT Yes we get satisfactory so it can do.

10:04.730 --> 10:09.980
So we just play one.

10:11.330 --> 10:16.210
And here you can see we get our logical volume back to Gugino right.

10:16.350 --> 10:16.830
OK.

10:16.910 --> 10:23.840
Because we reduce it by 1 but only extending or reducing is not enough.

10:23.860 --> 10:30.490
I mean I want to say that only extending will not actually increase the size you need to resize file

10:30.540 --> 10:31.690
system.

10:31.970 --> 10:40.930
So either you perform X10 or lose operation you need to resize the file system so resize its file system

10:40.940 --> 10:41.850
there is a command.

10:42.040 --> 10:46.640
First you need to run the key.

10:46.920 --> 10:47.420
OK.

10:47.600 --> 10:51.530
And then I have on our device.

10:51.700 --> 10:54.050
Bill good.

10:54.530 --> 10:55.100
Matt

10:57.870 --> 10:58.670
OK.

10:59.560 --> 11:06.780
Enough to this resize a face it will resize the file system.

11:07.100 --> 11:09.930
OK the file system is already block long nothing to do.

11:09.940 --> 11:10.750
OK.

11:11.300 --> 11:13.250
That means it's already resized.

11:13.400 --> 11:16.570
But here I want to say one thing that.

11:16.780 --> 11:25.280
And it is a warning because you don't always resize and reduce the size of your logical volume because

11:25.310 --> 11:29.980
it may corrupt your file system and you lost all your data.

11:30.320 --> 11:35.880
So creating the logical volume of once at a time is a good idea.

11:36.140 --> 11:42.470
Or you can or creating different logical volume on this on the same volume group is a good idea but

11:42.530 --> 11:46.520
always resizing or shrinking is a bad idea.

11:46.520 --> 11:48.810
It may cause your system to corrupt.

11:48.860 --> 11:52.680
OK so a word always a b c and resizing the file system.

11:53.030 --> 11:56.500
OK now of extending and reducing.

11:56.540 --> 11:58.170
I would like to show you.

11:58.310 --> 12:01.570
C'mon slow as that is.

12:01.610 --> 12:08.530
It displays the free space on your physical volumes or it can know all it shows you.

12:08.960 --> 12:09.950
Space.

12:10.190 --> 12:20.750
So here we are having is DDNOS about OK with the Viji as it displays the space on WM group free space

12:20.750 --> 12:22.030
on WM group.

12:22.190 --> 12:26.750
OK so we are having free space for our computer WM group.

12:26.750 --> 12:28.140
Seven point nine nine.

12:28.170 --> 12:34.550
Gigabytes and you can view the logical volume status Alvy as

12:37.090 --> 12:38.520
ogee in this vid.

12:38.620 --> 12:46.480
You can use these commands to make sure about the sizes of the devices.

12:46.530 --> 12:50.020
OK so let's Mombo were Levice here.

12:50.050 --> 12:52.400
Slow slow.

12:53.540 --> 13:07.280
My computer had meant computer and let's get inside computer Alice.

13:07.300 --> 13:11.850
And here we get the file system in working order.

13:11.990 --> 13:17.420
Ok so of this crucial you hope ex-student leaves the WM group.

13:17.640 --> 13:21.580
OK right now we learn how to explain under the logical volume.

13:21.970 --> 13:29.560
Here let me show you how to extend or reduce the volume groups so far that there is a command that is

13:29.570 --> 13:30.740
VGX 10.

13:30.850 --> 13:34.290
OK but you need to how physical will you enforce.

13:34.280 --> 13:40.340
So for us to create a physical one loom from the SDD device that we are hiring.

13:40.720 --> 13:49.620
So let's convert pseudo we create day and still do today.

13:49.780 --> 13:59.060
And now you added that converted all that physical volume into the world to use the command with stay

13:59.250 --> 14:00.980
on here.

14:01.090 --> 14:05.430
Roy you are welcome group name.

14:06.050 --> 14:10.040
Ok but here you need to provide the device name.

14:10.840 --> 14:12.120
As d d.

14:12.250 --> 14:15.330
Ok here is a two pronged physical bolu.

14:15.880 --> 14:20.650
OK now they don't know our physical volume to the World Group.

14:20.950 --> 14:30.130
OK now after adding the physical volume on it go we can view the status of group like this.

14:30.130 --> 14:36.040
And here you can see right now we are going to can google group that it is our whilom group of size

14:36.150 --> 14:42.890
14 for $990 bytes because we added an additional drive of ZB.

14:42.960 --> 14:52.150
Go back again in this way you can extend the size of WM group and if you want to remove that or just

14:52.510 --> 15:03.160
so you can easily remove the religious key here and deploy the group name and name the device name like

15:03.280 --> 15:05.010
this.

15:05.260 --> 15:11.260
Now it says it is removed and you can the status here again.

15:11.260 --> 15:15.870
And now we hearing it's size nine point nine ninety eight.

15:15.880 --> 15:18.960
In this way you can extend and reduce the WM group.

15:18.970 --> 15:26.830
OK now of performing all these operations to show you how to stop the Elby and or how to remove the

15:26.830 --> 15:28.380
logical volumes.

15:28.420 --> 15:32.900
So first you need to unmount the logical WM.

15:33.040 --> 15:43.550
OK so on logical volume pseudo long do computer MacT.

15:44.050 --> 15:52.180
And after unmounting there is a command pseudo Elvie remove.

15:52.190 --> 15:56.430
First you need to remove the logical volume it says.

15:56.450 --> 15:57.900
Do you really want to remove.

15:58.070 --> 16:00.470
Yes press y here.

16:00.680 --> 16:03.860
I've successfully removed after removing this.

16:03.860 --> 16:12.640
You need to remove the volume group so to remove all the command remove remove volume group again.

16:12.930 --> 16:20.410
It's successfully removed and after removing the group all the physical volumes.

16:20.930 --> 16:27.050
OK after removing the volume group you need to remove the physical volumes so remove that there is a

16:27.060 --> 16:28.320
common VB.

16:28.700 --> 16:30.070
Remove.

16:30.520 --> 16:37.110
The errors to see the hit enter.

16:37.260 --> 16:39.510
It says successfully wiped.

16:39.570 --> 16:44.910
OK OK now we have successfully removed our logical volume.

16:45.020 --> 16:51.390
Gave in this way you can create illogical values from different hard drives and combine them to a larger

16:51.390 --> 16:54.500
volume group and create different types of partition on that.
