I am trying to create Oracle VM template from System.img, here my requirement is increasing the System.img file to 60GB from 6GB.
I would like to increase LVM based System.img to 60GB and swap to 32GB, could you please assist me how to do this ?
Where as I can able to increase non-LVM based System.img using modifyjeos command as follows
#modifyjeos -f System.img -T 61440 -S 32768 -a $RPM_LIST -m $RPM_DIR -nogpg -P ELCONTROL.img 102400 $U01_MOUNT
So I need to expand the System.img to 60GB and swap to 32GB. Also need to be able to add a disk at 100GB, can you please let me know what is equivalent command for modifyjeos for LVM based System.img ?
Please let me know if you need more information
Verify how much the total size of the Virtual Machine.
- go to repository
- resize the system.img
- start the VM
resize the Partition;
- lvmresize lvm-partition
- resize4fs lvm-partition
- swapof lvm-swap-partition
- lvresize lvm-swap-partition
- swapon lvm-swap-partition
I hope this can help you