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 [2009/05/15 16:11] kohofertech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2010/04/16 11:27] kohofer
Line 7: Line 7:
 <code> <code>
 cfdisk /dev/sda cfdisk /dev/sda
-### for example if the new partition is /dev/sda3+## for example if the new partition is /dev/sda3 
 +## create logical disk /dev/sda3 
 +# make disk visible to linux 
 +partprobe
 pvcreate /dev/sda3 pvcreate /dev/sda3
 +</code>
 +
 +if you are running a newer kernel you can issue this command to male linux re-read the disk geometry:
 +<code>
 +echo "1" > /sys/class/scsi_device/<device>/device/rescan
 </code> </code>
  
Line 88: Line 96:
 check with ''pvscan'' if the extend was successfull check with ''pvscan'' if the extend was successfull
  
-Now we extend the "data" partition to 11.5 GB. See man lvextend for other options+<code> 
 +pvscan 
 +</code> 
 + 
 +Now we extend the "data" partition to 11.5 GB. See man lvextend for other options\\ 
 +11.5 G is the NEW total size of the disk we want to extend!
  
 <code> <code>
-lvextend -L 11.5G  /dev/base/data +lvextend -L 11.5G  /dev/base/data 
 +</code> 
 + 
 +Extend with 20G 
 + 
 +<code> 
 +lvextend -L +20G  /dev/base/data 
 </code> </code>
  
Line 100: Line 119:
  
 Check if filesystems are ok, and only then release the snapshot Check if filesystems are ok, and only then release the snapshot
 +
 +For ext2/ext3
 +
 +  resize2fs /dev/base/data
 +
/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