Re: / /home on different partitions?



larry wrote:
SUSE likes to put root and home on different partitions. Some distros
like to separate /boot also. If you have only one hard drive, what is
the advantage/disadvange of this vs. all on one partition?

thanks

One partition is all eggs in one basket.

Having a separate / and separate /boot aids in flexibility
and voids some issues on older hardware. /boot doesn't usually
need the overhead of journaling (for example), so ext2 can
be used to maximize the space for a filesystem that should
be pretty small (<100M).

I prefer using a small / as well and having it non-LVM.
The reason, because ideally / shouldn't be used for everything,
however it is useful for troubleshooting and obviously for
booting.

Having separate partitions and using LVM gains you:

Flexibility
Isolation and security
Dynamic growth
Offline shrinking

Now... with that said, most aren't very disciplined with
regard to storage and having all eggs in one basket
does increase the overall storage capacity of the
platform.

But, if isolation and security are important as well
as flexibility, then using separate partitions makes
very good sense. And if you have a multiple drive
scenario and want increased performance (and you don't
use any kind of meaningful RAID), then using separate
partitions and drives can make things much faster.

For example, consider the following partition scheme
across two drives:

/boot drive1
/ drive2
/usr drive1
/usr/lib drive2
/home drive1
/usr/share drive2
/tmp drive2
/var drive2

Thus an application that fills up /tmp isn't going
to cause applications that don't use /tmp to crash
because disk space is out... etc.... etc...

You also get faster load times with /usr/bin on
a different drive from /usr/lib.

The areas that tend to need growth are /usr (mostly bin),
/usr/lib, /usr/share, /var and /tmp. By having these
isolated, the areas that need to grown can be grown.
Likewise, if an area is deemed to be too big, you
can boot into rescue mode and shrink logical volumes
that were too large.

But, everybody has different needs and obviously with
flexibility comes some storage waste. So it all
depends on what matters most to you.

It gets even more complicated if you want to throw
RAID into the mix... or for some, it may make life
simpler. HW RAID vs SW RAID can change how things
are done dramatically as well.


.



Relevant Pages

  • Re: linux raid vs hw raid
    ... arrays from partitions, not just whole disks. ... RAID on partitions is a great idea, I'm using it here with 6 x 1TB ... drives for the RAID, and a 2TB drive for backup, bounce buffer. ...
    (comp.os.linux.misc)
  • Re: Replacing a raid 5 controller with different card
    ... at least for the part not depending on S-ATA or the RAID ... drives present to the OS at the bios level. ... raid controller and you make an array based on the number of drives ... In the operating system you make partitions. ...
    (microsoft.public.windows.server.sbs)
  • Re: New computer case - 23 bay
    ... I wouldn't mind going down the two separate cases route, ... o Selling your disks and moving to fewer large capacity disks ... What I think you should consider is RAID 6... ... All SCSI 10K drives. ...
    (uk.comp.homebuilt)
  • Re: Migrating to Raid
    ... RAID would do... ... It is unclear whether you want to migrate the two existing 200GB drives into ... I note you do not have shared partitions for /home /usr etc. in your ... server - and a cheap box for that would cost less than your RAID card! ...
    (alt.os.linux.suse)
  • Re: Review of new design - Please
    ... "Do I need separate physical disks for each of the above sets?" ... The reason to separate them as a best practice is because of I/O types. ... better perforamance and space with RAID 1+0 than you could with just RAID 1. ... RAID 5 typically incurs a write penalty to update parity across the drives, ...
    (microsoft.public.exchange.design)