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/14 14:18] kohofertech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2013/01/16 14:26] kohofer
Line 4: Line 4:
  
 Expand the original disk or add a second vdisk from **Infrastructure Client**.\\ Expand the original disk or add a second vdisk from **Infrastructure Client**.\\
-If you want to perform a grow w/o reboot you have to add a second disk+If you want to perform a grow w/o reboot you have to add a second disk
 + 
 +If you are on a kernel newer or equal to 2.6.32 then you can issue the command 
 + 
 +<code>echo "1" > /sys/block/sdX/device/rescan</code> 
 + 
 +to get the new size w/o reboot. 
 + 
 + 
 +In case you cant see the "disk" do this: 
 + 
 +  echo "1" > /sys/class/scsi_device/2\:0\:0\:0/device/rescan 
 + 
 +whereby after scsi_device you need to find the correct scsi device
  
 **EXPAND ORIGINAL DISK** **EXPAND ORIGINAL DISK**
Line 15: Line 28:
 # for example if the new partition is /dev/sda3 # for example if the new partition is /dev/sda3
  
-# create logical disk /dev/sda3+# create logical disk /dev/sda3 of type 8e (Linux LVM)
  
 # make disk visible to linux # make disk visible to linux
Line 106: Line 119:
  
 ===== FOR EXT3/4 ===== ===== FOR EXT3/4 =====
- 
-Check that the filesystem is ok 
- 
-  fsck.ext4 /dev/base 
  
 Extend filesystem  to use all free space Extend filesystem  to use all free space
Line 116: Line 125:
  
   lvextend -l +100%FREE /dev/base/root   lvextend -l +100%FREE /dev/base/root
 +
 +Check that the filesystem is ok, **but only if the FS is unmounted**
 +
 +  fsck.ext4 -f /dev/base
  
 Now resize the filesystem Now resize the filesystem
Line 171: Line 184:
 http://www.linuxhaven.de/dlhp/HOWTO-test/DE-LVM-HOWTO-2.html http://www.linuxhaven.de/dlhp/HOWTO-test/DE-LVM-HOWTO-2.html
  
 +http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/
/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