tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2009/02/05 14:36] – created ccumer | tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2009/02/05 15:11] – ccumer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======VM disk Expansion LVM+XFS======== | + | ======VM disk Expansion LVM+XFS======= |
+ | 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 | ||
+ | **THEN TAKE A SNAPSHOT!!!** | ||
+ | then from on the vm either create an additional partirion on the free space. The partition type us 8e | ||
+ | < | ||
+ | cfdisk /dev/sda | ||
+ | ### for example if the new partition is /dev/sda3 | ||
+ | pvcreate /dev/sda3 | ||
+ | </ | ||
+ | |||
+ | or assign the whole new disk to lvm | ||
+ | < | ||
+ | cfdisk /dev/sdb | ||
+ | ### for example if the new partition is /dev/sda3 | ||
+ | pvcreate /dev/sdb | ||
+ | </ | ||
+ | |||
+ | now you have to extend the volgroup. user '' | ||
+ | |||
+ | < | ||
+ | vgextend base /dev/sda3 | ||
+ | </ | ||
+ | |||
+ | check with '' | ||
+ | |||
+ | Now we extend the " | ||
+ | |||
+ | < | ||
+ | lvextend -L 11.5G / | ||
+ | </ | ||
+ | |||
+ | now we have to grow the filesystem /data | ||
+ | < | ||
+ | xfs_growfs /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