On Wed, Jul 4, 2012 at 8:59 AM, Bram Mertens <[email protected]> wrote:
> On Tue, Jul 3, 2012 at 10:03 PM, Bob Cochran <[email protected]> wrote:
>> I robbed 1.2T of space from /dev/vg_cobbler1/lv_home using 'lvresize' and
>> got these messages:
>>
>> lvresize -L -1.2T /dev/vg_cobbler1/lv_home
>> rounding up size to full physical 1.20 TiB
>> ..
>> reducing logical volume lv_home to 577.98 GiB
>>
>> Then tried putting this space into /dev/vg_cobbler1/lv_root:
>>
>> lvresize -L +1.2T /dev/vg_cobbler1/lv_root
>> rounding up size to full physical extent 1.20 TiB
>> Extending logical volume lv_root to 1.25 TiB
>> Insufficient free space: 314573 extents needed but only 314572 available
>>
>>
>> what is this trying to tell me? And how do I fix it? Have I ruined the
>> filesystem(s) at this point?

There is two things that are going "wrong":

1. you are resizing partitions but should start by resizing
filesystems (and then resize the partition to match)
2. the second command is telling you that there is mismatch between
the 'extents' and the Terabyte size that you specified.

extents are what lvm uses to track diskspace, they are snippets of of
diskspace and the smallest unit to extend or reduce a logical volume
with. Their size differs depending on total size of volumegroup and
paramters passed to vgcreate.

I suggest you resize your home partition back to it's original size to
recover the filesystem there, when in doubt specify a slightly larger
size to make sure that filesystem comes back intact.

After that you can resize the filesystem to a smaller size and follow
up with a logical volume resize. Resizing the filesystem is dependant
on the filesystem in question but ext2/3/4 family of filesystems can
be resized using resize2fs. Most filesystems require to be unmounted
for shrinking the opposite is true for growing (can be online).

Good luck,

Ramon
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to