I have vm with large disk (320Gb) and want to reduce it.
I booted VM from live cd and used gparted to reduce file system into vm. Now VM has 20Gb root fs and 300Gb unallocated.
Vm works.
Now I want to reduce logical volume in proxmox. I make
And set virtio0: iscsivg:vm-101-disk-1,size=300G into VM config
VM stuck on random crng init done. It doesnt start.
I thoght grub and efi partitions were in the end of disk.
But fdisk show this:
How can i reduce vm disk?
I booted VM from live cd and used gparted to reduce file system into vm. Now VM has 20Gb root fs and 300Gb unallocated.
Vm works.
Now I want to reduce logical volume in proxmox. I make
lvresize -L 300G /dev/iscsivg/vm-101-disk-1
And set virtio0: iscsivg:vm-101-disk-1,size=300G into VM config
VM stuck on random crng init done. It doesnt start.
I thoght grub and efi partitions were in the end of disk.
But fdisk show this:
fdisk /dev/vda: 320 GiB, 343597383680 bytes, 671088640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C8E06B5D-CF85-4C97-AC1E-77A780290A61
Device Start End Sectors Size Type
/dev/vda1 227328 41785343 41558016 19,8G Linux filesystem
/dev/vda14 2048 10239 8192 4M BIOS boot
/dev/vda15 10240 227327 217088 106M EFI System
How can i reduce vm disk?