The original size in 3G for my home directory on a VM. I am trying to
reduce it to 2G so then I can increase my /usr to 8G from 7G.
The error code is
lvreduce -L 1G /dev/testLVM/lvhome
Do you really want to reduce lvhome? [y,n]: y
Command failed with status code 5
On Sat, Jul 18, 2015 at 12:26 AM, der.hans <
PLUGd@lufthans.com> wrote:
> Am 17. Jul, 2015 schwätzte Stephen M so:
>
>> Yes, but when I was trying to shrink the /home to give more to /usr it
>> was giving that error. Thats why I wanted to know what might be going
>> on. I know I could do it through a GUI but I want to learn command
>> line.
>
>
> What are the original sizes? What sizes are you trying to shrik them to?
>
> Did fsck it after shrinking the filesystem? I think that shouldn't be
> necessary, but might as well do a health check :).
>
> What was the actual error message? Error 5 just a bit generic...
>
> You should be able to mount any filesystem that isn't mounted.
>
> Some mounted filesystems can be resized as well, with a higher risk of
> testing your disaster recovery procedures.
>
> ciao,
>
> der.hans
>
>> On Fri, Jul 17, 2015 at 8:59 PM, James Mcphee <jmcphe@gmail.com> wrote:
>>>
>>> Yes. To resize an lv, you do an lvresize and then a resize2fs. you can
>>> grow them without much issue, and newer ones will let you do it online.
>>> just don't try to shrink it online :)
>>>
>>> On Fri, Jul 17, 2015 at 8:43 PM, Stephen M <smelheim85@gmail.com> wrote:
>>>>
>>>>
>>>> Hi Everyone,
>>>>
>>>> I'm trying to learn LVMs. I created a couple LVM partitions and was
>>>> trying to resize a /home I made. I use efsck2 to check the disk,
>>>> resize2fs to resize it then lvreduce/lvresize but it came out with an
>>>> error status 5 code. The partition was unmounted so that wasn't the
>>>> issue and I was in a tty using root. Is /home on LVM allowed to be
>>>> resized?
>>>>
>>>> --
>>>> Stephen Melheim
>>>> 602-400-7707
>>>> SMelheim85@gmail.com
>>>> ---------------------------------------------------
>>>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>>
>>>
>>>
>>>
>>> --
>>> James McPhee
>>> jmcphe@gmail.com
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>>
>>
>>
>>
>
> --
> # http://www.LuftHans.com/ http://www.PhxLinux.org/
> # "Communications without intelligence is noise;
> # Intelligence without communications is irrelevant."
> # Gen. Alfred. M. Gray, USMC
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
--
Stephen Melheim
602-400-7707
SMelheim85@gmail.com
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss