Need to expand OVF disk
Comments
-
Hi Hessa,
to increase disk space, please do the following steps:- Power off the virtual machine.
- Edit the virtual machine settings and extend the virtual disk size. For more information, see Increasing the size of a virtual disk (1004047)
- Power on the virtual machine.
- Identify the device name, which is by default /dev/sda, and confirm the new size by running the command:
fdisk -l
Delete and re-create primary partition:fdisk /dev/sda
Press p to print the partition table to identify the number of partitions. By default, there are 2: sda1 and sda2.
Press d to delete the last partition.
Press Enter to confirm.
Press n to create a new primary partition.
Press p for primary.
Press 2 for the partition number, depending on the output of the partition table print.
Press Enter two times.
Press t to change the system's partition ID.
Press 2 to select the newly created partition.
Type 8e to change the Hex Code of the partition for Linux LVM.
Press w to write the changes to the partition table.
Reboot the virtual machine.Run this command to verify that the changes were saved to the partition table and that the new partition has an 8e type:
fdisk -l
# Resize the physical volume
pvresize /dev/sda2
# resize logical volume to fill all unused space
lvresize -l +100%FREE /dev/centos/root
# resize XFS filesystem on /dev/centos/root
xfs_growfs /dev/centos/root
# check free space with
df -h - Power off the virtual machine.
-
Thank You! That worked perfectly.
-
I am actually trying to do this again and the disk is full. It won't let me write a partition table as the disk is in use. Is there a way to stop all the lpar2rrd process from starting at bootup?
-
Hello,
please give us more info, which operation fails? Can you run any commands? Check lpar2rrd logs dir, you can save some space there:
du -h /home/lpar2rrd/lpar2rrd/logs
Howdy, Stranger!
Categories
- 1.6K All Categories
- 48 XORMON NG
- 25 XORMON
- 153 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 7 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 124 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 2 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle