Re: Transfer storage from home to var
Hi Petter,
The following worked based on your suggestion:
sudo lvresize -r -L-10G /dev/vg_system/skole+tjener+home0
sudo lvresize -r -L+10G /dev/vg_system/var
I hope this was safe and nothing got lost on home0 ;)
Kind regards,
Roman
> On 02/03/2023 9:04 AM GMT Petter Reinholdtsen <pere@hungry.com> wrote:
>
>
> [Roman Meier]
> > However, extending the size of /var didn't work:
> >
> > sudo lvextend -L+5G /dev/vg_system/var
> > Insufficient free space: 1280 extents needed, but only 138 available
>
> I would strongly recommend not using lvextend, and instead use lvresize
> -r. I suspect the underlying LVM logical volume is already increased,
> but the file system on top is not, and thus you do not see the space.
>
> Perhaps 'lvresize -r -L+1M /dev/vg_system/var' work better.
>
> --
> Happy hacking
> Petter Reinholdtsen
Reply to: