========== 2021_10_25 ==========
We are trying to claim back some data storage on our our bare metal hypervisor.
We first used the lvreduce command to trim the filesystem to the desired size.
Secondly; we used gparted to resize the partition after the volume was reduced.
The system will no longer boot and drops to (initramfs) prompt.
fsck command is not available.
Please see the pastebin from the boot-repair application i was recommended by a friend.
Suggestions?
https://paste.ubuntu.com/p/dyBy6YCGhh/
========== 2021_10_26 ==========
We are using a live cd with deskop ubuntu os to boot into the system and run more diagnostics within the VM.
A deep scan using the 'testdisk' application is currently running.
The VM I'm working with here is a copy of the original VM we wanted to shrink.
The original VM is intact with it's 1TB disk and fully functional.
I can start the process over but unsure as there are so many differing views out there on how to achieve our desired outcome.
What do we want to achieve?
Since we are currently only utilizing 3% of the 1TB virtual disk, I'd like to shrink the disk to 250 ~ 300 GB.
There are 3 partitions on the disk.
- Boot
- Swap
- Linux filesystem
From what I understand, the steps to do this are;
- Shrink the logical volume on partition 3
- Shrink the partition to match the logical volume.
- The disk should then show un-allocated space.
- Modify the virtual disk in the hypervisor. (This cannot be done unless there is un-nallocated space, hence the steps above.)
Am I on the right path ? Did I miss something blatantly obvious.
Thanks.