All right, let's investigate the storage topology.
A lot of storage going on.
It looks as if NVMe 0 and 2 is the best one to use.
So I am going to do an fdisk on dev NVMe 0 and 2
to create two new partitions.
Let me use Control-L to put the output
on the top of the screen.
Using N to create partition number 5.
The lab is not asking for a specific size,
so I'm making it a 1G partition.
Using N to create partition number 6.
Same story, plus 1G.
This is going to be used for LVM,
so we should not forget to set the partition type.
For partition number 6, the alias that we can use is LVM.
And likewise, T for partition number 5,
and the alias is LVM.
And now a quick P to verify what we have done.
And as you can see, we have partition 5 and partition 6.
Looking good.
So W, and that will write it.
Quick LSB OK to verify that partitions 5 and 6 show up
as expected, and they do.
Right, next we need to create an LVM volume group.
I'm going to use VG Create, calling it VGLab,
and putting in dev NVMe0 N2P5, as well as dev NVMe0 N2P6.
Hey, hold on.
Don't we have to create the physical volumes first?
Yes, that's what I explained, because I
want you to be aware of every single step.
But the LVM utilities in general are quite smart.
And that means even if you don't specifically
create the physical volume, VG Create
will find the partitions, will notice, hey,
this is not a physical volume yet,
and it will write the physical volume
metadata to the partition, with the result
that the volume group is successfully created.
That makes it a bit easier, isn't it?
Then we need to create a logical volume, so LVCreate.
And how about the 75% of available disk space?
Well, you would use minus L, lowercase L that is, 75% free.
Minus N, because we want to give it a name, LVLab in VGLab.
And now I want to do a quick LVS to verify
that this worked out all right.
And what do we see?
We see that LVLab has a size of 1.5 gigs,
and that is exactly what we needed.
So mkfs.ext4 on dev VGLab LVLab to create an ext4 file system.
And that is all that was required in this lab.