Tuesday, 2 October 2018

Logical Volume Manager In Linux


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.




>>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.



>>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.


>>mkfs(make file system ) –t will specify the type of file system and then the device name.

>>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.





How to login on Oracle Cloud Console?

Login Steps for Oracle Cloud Console To sign in to Oracle Cloud Console, We need to open up the corresponding region console URL for Free Ti...