LVM
>>Shows
all available disk.
>>If
working on a new Machine Disk Need to be setup. (/dev/sdb device doesn’t
contain a valid partition).
>>We Need to Create Partition or Else Skip this step.
>>We Need to Create Partition or Else Skip this step.
>>n-Will
create a new partition
>>p-specifies that partition is primary and then a number between 1-4 to specify partition number.
After p you need to specify the first and the last cylinder of the partition as required
>>w-To write this to disk.
>>p-specifies that partition is primary and then a number between 1-4 to specify partition number.
After p you need to specify the first and the last cylinder of the partition as required
>>w-To write this to disk.
>>List
the disk
>>/dev/sdb1
has been added successfully (No invalid Partition).
>>Partprobe
–s will Load the changes to operating system.
>>pvcreate
to create a physical volume. When successfully created it can be seen through
pvdisplay cmd.
>>
pvcreate /dev/sdb1
>>vgcreate
to create a volume group that will belong to a physical group.
>>Create
a mount point directory.
>>lvcreate
to create a logical volume, that belongs to a particular volume group.
>>lvdisplay
to display the local volume group.
>>create
entries in /etc/mtab OR /etc/fstab throught this cmd.
>>cat
/etc/mtab
>>df
-h
LVEXTEND
VGEXTEND
>>Display
physical volume which is free(/dev/sdb2) Not associated with any physical
group.


















