Re: LVM question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Stephen M
Date:  
To: Main PLUG discussion list
Subject: Re: LVM question
I went to the installfest and someone reminded me that in Debian, /
will be mounted as read only and I need to remount it as rw. So once
he helped me with that I was able to see how to shrink/expand the
logical volume.

On Sun, Jul 19, 2015 at 12:30 PM, Matt Graham <> wrote:
> On 2015-07-18 10:25, Stephen M wrote:
>>
>> The original size [of the LV was] 3G for my home directory. I am trying to
>> reduce it to 2G so then I can increase my /usr to 8G from 7G.
>
>
>> lvreduce -L 1G /dev/testLVM/lvhome
>> Do you really want to reduce lvhome? [y,n]: y
>> Command failed with status code 5
>
>
> The man page for lvreduce says:
>
> -L, --size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
> Reduce or set the logical volume size in units of megabytes. With the - sign
> the value will be subtracted from the logical volume's actual size and
> without it it will be taken as an absolute size.
>
> ...so it thought you were resizing the LV to 1G, and lvreduce probably is
> smart enough to tell that the filesystem on the LV is 2G in size. You
> probably wanted "lvreduce -L 2G /dev/testlvm/lvhome" or "lvreduce -L -1G
> /dev/testlvm/lvhome".
>
> --
> Crow202 Blog: http://crow202.org/wordpress
> There is no Darkness in Eternity
> But only Light too dim for us to see.
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss




--
Stephen Melheim
602-400-7707

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss