tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2012/02/14 14:20] – [FOR EXT3/4] kohofer | tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2013/04/12 10:55] – [Create LVM] KoHofer@unibz.it | ||
---|---|---|---|
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 | ||
+ | |||
+ | < | ||
+ | |||
+ | to get the new size w/o reboot. | ||
+ | |||
+ | |||
+ | In case you cant see the " | ||
+ | |||
+ | echo "- - -" > / | ||
+ | |||
+ | Do this for all host0,1,2 etc. | ||
+ | |||
+ | |||
+ | or | ||
+ | |||
+ | echo " | ||
+ | |||
+ | whereby after scsi_device you need to find the correct scsi device | ||
+ | |||
**EXPAND ORIGINAL DISK** | **EXPAND ORIGINAL DISK** | ||
Line 15: | Line 37: | ||
# 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 / |
# make disk visible to linux | # make disk visible to linux | ||
Line 113: | Line 135: | ||
lvextend -l +100%FREE / | lvextend -l +100%FREE / | ||
- | Check that the filesystem is ok | + | Check that the filesystem is ok, **but only if the FS is unmounted** |
fsck.ext4 -f /dev/base | fsck.ext4 -f /dev/base | ||
Line 155: | Line 177: | ||
Hier legen wir jetzt alle unsere logischen Volumes an. Als Namen verwenden wir, etwas fantasielos, | Hier legen wir jetzt alle unsere logischen Volumes an. Als Namen verwenden wir, etwas fantasielos, | ||
- | | + | |
+ | oder wir könne die Größen angeben! (1500M) | ||
+ | |||
+ | | ||
+ | |||
Filesysteme anlegen | Filesysteme anlegen | ||
Line 171: | Line 197: | ||
http:// | http:// | ||
+ | http:// |
/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