[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Doing Dist-Upgrade or Such

On 07/09/15 17:42, Pascal Hambourg wrote:
> David Baron a écrit :
>>> David Baron a écrit :
>>>> Problem is that with that darned partitioning by the Debian installation,
>>>> there is not enough room on /var to accomplish upgrade of such size.
>>> Too bad you did trust the Debian installer instead of using LVM and
>>> leaving some space available for future needs. Worth thinking about for
>>> your next installation.
>> What was presented for LVM did not look any better.
> Because you selected LVM in the assisted mode, which messes up sizes and
> does not leave any free extents for future growth. You can still reduce
> an oversized LV to free some extents but if the filesystem is ext2/3/4
> it cannot be reduced online so it must be unmounted first. Depending on
> the mount point, it may require to switch to single user mode or boot
> from a maintenance system.

Resize2fs is quite good at online resizing, not sure i'd do it on / but
i have lvresize and resize2fs /home and others many times without issue.

> Knowing this, I always select the manual mode to set up LVM and leave
> free space in the VG. It's worth the extra work. When I later find out
> that /var (or whatever) has become too small, I just use free extents in
> the VG to grow the related LV and filesystem. Online. No reboot, no
> maintenance system, no partition resizing or moving needed.

This is why I now always use LVM, online resizing and much safer than
resizing partitions.

Reply to: