I wanted to add 15G to a debian VM 101. But I increased its size to 160G by mistake. I have not allocated the space in the vm yet and wanted to SET the disk size to 80GB. The vm root is 62GB currently.
At the very end of the fdisk listing is this ReadyToResizedDisk with a size of 32.49G. Where did that size come from? I see that it is parent of the vm-101-disk-0"
I was planning to use lvreduce to change the disk to 80GB but I am not sure how "ReadyToResizeDisk" device and "vm-101-disk-0" are related.
I am stuck on how to proceed and would appreciate advice on recommended steps to get the vm useable disk size to ~80GB.
TIA.
The config file shows the ReadyToResizeDisk, and it shows up in /dev/
At the very end of the fdisk listing is this ReadyToResizedDisk with a size of 32.49G. Where did that size come from? I see that it is parent of the vm-101-disk-0"
I was planning to use lvreduce to change the disk to 80GB but I am not sure how "ReadyToResizeDisk" device and "vm-101-disk-0" are related.
I am stuck on how to proceed and would appreciate advice on recommended steps to get the vm useable disk size to ~80GB.
TIA.
Code:
fdisk -l
Disk /dev/mapper/pve-vm--101--disk--0: 160 GiB, 171798691840 bytes, 335544320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0xada334b5
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--101--disk--0-part1 * 2048 132216831 132214784 63G 83 Linux
/dev/mapper/pve-vm--101--disk--0-part2 132218878 134215679 1996802 975M 5 Extended
/dev/mapper/pve-vm--101--disk--0-part5 132218880 134215679 1996800 975M 82 Linux swap / Solaris
Partition 2 does not start on physical sector boundary.
.....
.....
Disk /dev/mapper/pve-vm--101--state--ReadyToResizeDisk: 32.49 GiB, 34884026368 bytes, 68132864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
The config file shows the ReadyToResizeDisk, and it shows up in /dev/
Code:
qm config 101
parent: ReadyToResizeDisk
scsi0: local-lvm:vm-101-disk-0,iothread=1,size=160G
scsihw: virtio-scsi-single
Code:
root@pve:/dev/pve# ls /dev/pve/vm-101*
/dev/pve/vm-101-disk-0 /dev/pve/vm-101-state-ReadyToResizeDisk