linux_wiki:extend_existing_logical_volumes

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
Next revision Both sides next revision
linux_wiki:extend_existing_logical_volumes [2016/03/03 21:58]
billdozor [Extend a logical volume]
linux_wiki:extend_existing_logical_volumes [2016/03/03 22:00]
billdozor [Extend a volume group]
Line 73: Line 73:
 <code bash> <code bash>
 vgextend vglocal /dev/sdc1 vgextend vglocal /dev/sdc1
-vgdisplay+pvs
 </code> </code>
  
Line 84: Line 84:
 **Extend volume to be 30G in size(from 20G original)** **Extend volume to be 30G in size(from 20G original)**
 <code bash> <code bash>
-lvextend -L 30G /dev/vglocal/lvstorage+lvextend -L 30G --resizefs /dev/vglocal/lvstorage
 OR OR
-lvextend -L +10G /dev/vglocal/lvstorage+lvextend -L +10G --resizefs /dev/vglocal/lvstorage
 </code> </code>
   * df -h shows that filesystem still needs to be resized to fill the LV container   * df -h shows that filesystem still needs to be resized to fill the LV container
  
 \\ \\
-**Resize the filesystem**+**Resize the filesystem - if you did NOT use the "--resizefs" option above**
 <code bash> <code bash>
 xfs_growfs /dev/vglocal/lvstorage xfs_growfs /dev/vglocal/lvstorage
  • linux_wiki/extend_existing_logical_volumes.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)