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/13 11:00] – kohofer | tech:documentation:procedures:vm:vm_disk_expansion_lvm_xfs [2012/07/16 17:38] – ccumer | ||
---|---|---|---|
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 " | ||
+ | |||
+ | whereby after scsi_device you need to find the correct scsi device | ||
**EXPAND ORIGINAL DISK** | **EXPAND ORIGINAL DISK** | ||
Line 12: | Line 25: | ||
cfdisk /dev/sda | cfdisk /dev/sda | ||
+ | |||
# for example if the new partition is /dev/sda3 | # for example if the new partition is /dev/sda3 | ||
Line 20: | Line 34: | ||
partprobe | partprobe | ||
pvcreate /dev/sda3 | pvcreate /dev/sda3 | ||
- | |||
now you have to extend the volgroup. use '' | now you have to extend the volgroup. use '' | ||
Line 107: | Line 120: | ||
===== FOR EXT3/4 ===== | ===== FOR EXT3/4 ===== | ||
- | Check that the filesystem is ok | ||
- | |||
- | fsck.ext4 / | ||
- | | ||
Extend filesystem | Extend filesystem | ||
- | lvextend -l +100%FREE /dev/base/data | + | |
+ | |||
+ | | ||
+ | |||
+ | Check that the filesystem is ok | ||
+ | |||
+ | fsck.ext4 -f /dev/base | ||
Now resize the filesystem | Now resize the filesystem | ||
- | resize2fs -p /dev/root/root | + | resize2fs -p /dev/base/root |
/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