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 [2013/04/12 10:55] – [Create LVM] KoHofer@unibz.ittech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2015/01/28 08:52] – [FOR EXT3/4] 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.+<del>If you want to perform a grow w/o reboot you have to add a second disk.</del>
  
 If you are on a kernel newer or equal to 2.6.32 then you can issue the command If you are on a kernel newer or equal to 2.6.32 then you can issue the command
Line 140: Line 140:
  
 Now resize the filesystem Now resize the filesystem
 +
 +Debian System:
  
   resize2fs -p /dev/base/root   resize2fs -p /dev/base/root
  
 +Centos/Fedora System:
 +
 +  resize4fs -p /dev/base/root
  
 ===== For swap ===== ===== For swap =====
Line 180: Line 185:
  
 oder wir könne die Größen angeben! (1500M) oder wir könne die Größen angeben! (1500M)
-   +
    lvcreate -L 1500M -n lvol1 vg01    lvcreate -L 1500M -n lvol1 vg01
-   +
 Filesysteme anlegen Filesysteme anlegen
  
Line 193: Line 198:
 Damit die neuen Filesysteme nun bei jedem Systemstart automatisch gemountet werden, müssen wir sie in die Datei /etc/fstab eintragen (siehe 'man fstab'). In unserem Scenario sehen die zusätzlichen Einträge wie folgt aus: Damit die neuen Filesysteme nun bei jedem Systemstart automatisch gemountet werden, müssen wir sie in die Datei /etc/fstab eintragen (siehe 'man fstab'). In unserem Scenario sehen die zusätzlichen Einträge wie folgt aus:
  
-   /dev/vg01/lvol1 /usr ext2 defaults 1 2+   /dev/vg01/lvol1 /usr ext4 defaults 1 2 
 + 
 +===== Links ===== 
 + 
 + 
 +[[http://www.thegeekstuff.com/2010/08/how-to-create-lvm/|How To Create LVM Using vgcreate, lvcreate, and lvextend lvm2 Commands]]\\ 
 +[[https://unix.stackexchange.com/questions/47380/where-does-lvm-store-data|Where does LVM store data?]]\\ 
 +[[http://www.howtoforge.com/linux_lvm|A Beginner's Guide To LVM]]\\ 
 +[[http://wiki.gentoo.org/wiki/LVM#LV_.28Logical_Volume.29|LVM]] VERY GOOD SOURCE!\\ 
 +[[http://www.funtoo.org/LVM_Fun#Physical_volumes_creation|LVM Fun]] VERY GOOD SOURCE!\\ 
 +[[http://serverfault.com/questions/223361/how-to-recover-logical-volume-deleted-with-lvremove|How to recover logical volume deleted with lvremove]]\\ 
 +[[http://www.novell.com/support/kb/doc.php?id=3803380|LVM Volume Group Shows "unknown device"]]
  
-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/ 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