Difference between revisions of "Logical Volume Management (LVM)"

From RHS Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
  pvdisplay                              # to show Physycal volumenes
 
  pvdisplay                              # to show Physycal volumenes
 
* Create a volume group example 'pilaf':
 
* Create a volume group example 'pilaf':
   vgcreate pilaf /dev/sdg1 /dev/sdf1
+
   vgcreate pilaf /dev/sdg1 /dev/sdf1 # vgremove pilaf to delete
 
* Check existing Volume Groups
 
* Check existing Volume Groups
 
  vgdisplay
 
  vgdisplay
 
  vgscan
 
  vgscan

Revision as of 09:27, 7 June 2018

https://www.howtoforge.com/linux_lvm

Creating LVMs

  • Partition disks as Linux LVM with fdisk
  • Prepare new partitions for LVM Example:
pvcreate /dev/sdb1 /dev/sdc1 /dev/sde1  # pvremove /dev/sdb1 /dev/sdc1 /dev/sde1 to revert
pvdisplay                               # to show Physycal volumenes
  • Create a volume group example 'pilaf':
 vgcreate pilaf /dev/sdg1 /dev/sdf1  # vgremove pilaf to delete
  • Check existing Volume Groups
vgdisplay
vgscan