I have a Centos 7 VM which was built from an OVA template. I have it running under Virtualbox.
Issue I have is the VM has a dynamic disk of 200G - but only 4 Gb used.
I want to shrink the partition to 40Gb.
EDIT. The file system is xfs
Its an LVM structure with 2 partitions, swap and root. Root is the one i want to shrink.
I have tried everything.
i have booted from a Live CD and tried using resize2fs but i just keep getting bad magic block / superblock error.
anyone please help me out ?
cheers