Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
storage:lvm [2019/08/07 17:05]
eServices Greece
storage:lvm [2019/08/07 17:11] (current)
eServices Greece
Line 2: Line 2:
  
 ===== Resize ===== ===== Resize =====
-==== Increase Logical Volume Size ====+==== Logical Volume ==== 
 +=== Increase Logical Volume Size ===
 Increase by 1GB Increase by 1GB
 <sxh bash>lvextend -L +1G /dev/centos/home</sxh> <sxh bash>lvextend -L +1G /dev/centos/home</sxh>
  
  
-==== Decrease Logical Volume Size ====+=== Decrease Logical Volume Size ===
 Decrease by 1GB Decrease by 1GB
 <sxh bash>lvreduce -L 1G /dev/centos/var</sxh> <sxh bash>lvreduce -L 1G /dev/centos/var</sxh>
  
 +=== Filesystem Resize ===
 +For ext3 & ext4
 +<sxh bash>resize2fs /dev/centos/home</sxh>
 +
 +For xfs
 +<sxh bash>xfs_growfs /dev/centos/home</sxh>
  
 ===== VM Related ===== ===== VM Related =====