On 05/06/14 10:17, Miroslav Skoric wrote:
> On 06/01/2014 11:03 PM, emmanuel segura wrote:
> 
>>
>> i think the correct steps are:
>>
>> resize2fs /dev/mapper/localhost-home -2G
>> lvresize --size -2G /dev/mapper/localhost-home
>>
>>
> 
> Thank you. I tried with the first command but it did not work (it
> returned an error).

Pasting the error into your email is almost always beneficial :-)

However, I don't think resize2fs can do relative sizes like that - you
need to calculate the new size yourself, and specify it, without the
minus sign.

If I have to shrink a filesystem, I tend to shrink it to something
smaller than my eventual goal, then shrink the LV to the goal, then
resize2fs again without specifying the size, so it grows to fit.

I prefer not to get in the situation where I have to shrink a filesystem
though - xfs doesn't support it anyway.

Richard


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5390113a.1050...@walnut.gen.nz

Reply via email to