[CentOS] LVM: Shrinking a physical partition

Collins Richey crichey at gmail.com
Wed Jan 18 02:28:26 UTC 2006


On 1/17/06, Michael Ubell <ubell at sleepycat.com> wrote:
> When I installed CentOS 4 it created a LVM partition
> occupying the bulk of my disk.  I would like to trim it
> back so I can put another partition for another (thrid)
> operating system.
>
> I found some directions that I thought would let me do
> this.  I used resize2fs to resize the filesystem and lvreduce
> to resize the logical volume.
>
> My problem is that I cannot reduce the size of the partition.
> When I do, I get errors when I try to boot:
>

Just for the record, are you up to 4.2 level? AFAIK, lvm(2) support
was quite broken prior to that. Waiting for others to comment.

--
Collins Richey
      Debugging is twice as hard as writing the code ... If you write
      the code as cleverly as possible, you are, by definition, not
      smart enough to debug it.
             -Brian Kernighan



More information about the CentOS mailing list