User Tools

Site Tools


tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2012/02/13 11:00] kohofertech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2012/02/14 14:18] kohofer
Line 12: Line 12:
  
   cfdisk /dev/sda   cfdisk /dev/sda
 +
 # for example if the new partition is /dev/sda3 # for example if the new partition is /dev/sda3
  
Line 20: Line 21:
   partprobe   partprobe
   pvcreate /dev/sda3   pvcreate /dev/sda3
- 
  
 now you have to extend the volgroup. use ''lvdisplay'' to see which is the name of the group,\\ now you have to extend the volgroup. use ''lvdisplay'' to see which is the name of the group,\\
Line 109: Line 109:
 Check that the filesystem is ok Check that the filesystem is ok
  
-  fsck.ext4 /dev/root/root +  fsck.ext4 /dev/base 
-  +
 Extend filesystem  to use all free space Extend filesystem  to use all free space
  
-  lvextend -l +100%FREE /dev/base/data+  vgextend base /dev/sda3 
 + 
 +  lvextend -l +100%FREE /dev/base/root
  
 Now resize the filesystem Now resize the filesystem
  
-  resize2fs -p /dev/root/root+  resize2fs -p /dev/base/root
  
  
/data/www/wiki.inf.unibz.it/data/pages/tech/documentation/procedures/vm/vm_disk_expansion_lvm_xfs.txt · Last modified: 2020/10/13 16:46 by kohofer