I'm trying to reduce the size of a partition on a CentOS 5.8 VM as my predecessor allocated far too much space to it. However, I've tried a variety of different methods and have run into problems with all of them. The details of the current partitions is below:
Model: VMware Virtual disk (scsi) Disk /dev/sda: 215GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 107MB 107MB primary ext3 boot 2 107MB 215GB 215GB primary lvm
When I try to resize the partition using Parted (running off of a Knoppix Live-CD with the system partition unmounted) I get this error:
(parted) resize 2 107 30827 WARNING: you are attempting to use parted to operate on (resize) a file system. parted's file system manipulation code is not as robust as what you'll find in dedicated, file-system-specific packages like e2fsprogs. We recommend you use parted only to manipulate partition tables, whenever possible. Support for performing most operations on most types of file systems will be removed in an upcoming release. Error: Could not detect file system.
I've tried to find a good guide on how to do this with e2fsprogs but everything I've come across isn't explaining how to resize the lvm partition like I need to.
I'm new to the Linux world so perhaps this is basic and I'm overanalyzing but any help would be greatly appreciated.
Thanks in advance!