Site Tools


server:extend_lvm

Differences

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

Link to this comparison view

Next revision
Previous revision
server:extend_lvm [2024/10/01 09:18] – created ashleyserver:extend_lvm [2026/02/24 12:26] (current) – ashley
Line 1: Line 1:
-=====Extending LVM=====+=====Simple Extend in place===== 
 + 
 +Extend the main 1st Logical Volume by 500G and resize in one step 
 +  lvextend -r -L +500G /dev/ubuntu-vg/ubuntu-lv 
 +   
 +=====Complex Extending LVM=====
  
 Create new parition on the physical drive: Create new parition on the physical drive:
Line 14: Line 19:
  
 Extend the logical volume Extend the logical volume
-  sudo lvextend -l +100%FREE /dev/rootvg/varlv+  sudo lvextend -L +100%FREE /dev/rootvg/varlv
  
-Grow the file system+Check Filesystem 
 +  df -Th | grep "^/dev" 
 +   
 +Grow the ZFS file system
   sudo xfs_growfx /dev/rootvg/varlv   sudo xfs_growfx /dev/rootvg/varlv
 +  
 +  Grow the ext4 file system
 +  resize2fs /dev/rootvg/varlv
      
server/extend_lvm.1727774280.txt.gz · Last modified: (external edit)