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

Re: Are the assigned capacities sufficient for my setup?



gajuph4pre@yahoo,

Andy Smith wrote:
Hello,

On Tue, Jul 28, 2020 at 08:53:57PM +0000, gajuph4pre@yahoo.com wrote:
I have manually partitioned my hard disk drive as follows:

/boot is assigned 200MB
/root is assigned 10GB
/swap is assigned 20GB
/home is assigned 35GB
/var is assigned 10GB
/usr is assigned 5GB
/usr-local is assigned 5GB
/opt is assigned 5GB
/srv is assigned 5GB

This is a terrible idea. It's near impossible to predict how your
usage will evolve so almost certainly one or more of these will fill
while others remain near empty.

If you want to do this, use LVM and pick minimal capacities for all

Definitely.  If you really want to have separate file systems for all
those mount points (and maybe even if you only have a few separate ones),
use LVM.

Instead of having your mount points' file systems directly on real disk
partitions, which are harder to re-size, sometimes needing time-consuming
copying to empty space on a disk, you'd have your file systems on
virtual partitions (LVM logical volumes) that can be re-sized easily.
(LVM uses the real disk partitions as LVM physical volumes, from which
space can be allocated to the LVM logical volumes.


One suggestion:  When you set things up, learn how to extend a logical
volume and enlarge its contained file system and then write down
instructions/reminders for yourself.  When you run out of space in some
file system in the middle of doing something else (likely months down the
road), you probably won't remember the LVM details you haven't thought
about since you set things up.

(I have my file systems set up on LVM logical volumes, the LVM physical
volumes set up on RAID arrays, and the RAID arrays set up on pairs of
partitions on my two disks.  Having detailed instructions, for, e.g.,
enlarging a file system and for replacing a failed disk, already written
down saved a lot of time and headaches and avoided mistakes.)


Daniel




the above, leaving the majority unallocated. You can then grow
logical volumes as needed and the problem goes away.

Cheers,
Andy



Reply to: