[brlug-general] Partitioning suggestions for the LAMP server?
Joe Fruchey
ignavia at gmail.com
Fri Oct 13 07:55:11 CDT 2006
LVM? Logical Volume Manager? (I'm just throwing words out there...)
On 10/12/06, Dustin Puryear <dustin at puryear-it.com> wrote:
> FYI, we have a standard kickstart file we use for installs, and we do:
>
> /boot 100mb
> / 4gb
> /usr 8gb
> /home 4gb
> /tmp 4gb
> /var 4gb
> swap 4gb
> <unallocated> remaining..
>
> Also, we use LVM without question. Just makes life easier. Much
> easier. Much.
>
> The unallocated is then usually used for application specific
> filesystems.
>
> You should be able to create software RAID1 with Linux and then LVM on
> top of that, although I'll admit I was having problems with that when
> I tried it the other day.
>
> sda1 100mb -> md0
> sdb1 100mb -> md0
> md0 -> /boot
> sda2 4gb swap
> sdb2 4gb swap
> sda3 remaining -> md1
> sdb3 remaining -> md1
> md1 -> lvm
> . logvol00 -> /
> . logvol01 -> /usr
> .
>
> I think you can then boot up, swapoff, merge sda2 and sdb2 as md2, and
> swapon on md2 for swap on RAID1. Haven't tried that yet though.
>
> ---
> Puryear Information Technology, LLC
> Baton Rouge, LA * 225-706-8414
> http://www.puryear-it.com
>
> Author:
> "Best Practices for Managing Linux and UNIX Servers"
> "Spam Fighting and Email Security in the 21st Century"
>
> Download your free copies:
> http://www.puryear-it.com/publications.htm
>
>
> Thursday, October 12, 2006, 5:17:49 PM, you wrote:
>
> > I don't remember how much ram you said you had, but assuming 2GB
> > (double the ram as a swap partition), I'd partition as follows:
>
> > Assuming the drive is called /dev/sda....
>
> > /dev/sda1 100MB ext2 /boot
> > /dev/sda2 4GB Linux swap
> > /dev/sda3 5GB reiser3 /tmp
> > /dev/sda4 (Extended holder)
> > /dev/sda5 20GB xfs/jfs /var (I know most
> > distributions place their server application binaries and data under the
> > var directory)
> > /dev/sda6 19GB xfs/jfs /usr
> > /dev/sda7 20GB xfs/jfs /opt
> > /dev/sda8 10GB xfs/jfs /
> > /dev/sda8 1GB xfs/jfs /home
>
>
> > Depending on the needs of your applications, you may find that 5GB as
> > /tmp doesn't work well. Really all of the above information depends on
> > your applications. If you have a need for a bunch of user specific,
> > large files and less of a need for client applications, decrease /opt
> > and increase /home.
>
>
> > Joe Fruchey wrote:
>
> >>Ok, I dusted off my Ubuntu 6.06 LTS DVD (Amazing how much dust
> >>accumulates in four months...), popped two 80GB drives in the GX240,
> >>and started the install.
> >>
> >>I want to do RAID1 for data integrity, but I have no RAID experience
> >>whatsoever. I set it up with 2 active drives and 0 spare drives (is
> >>that right?)
> >>
> >>Now how should I partition this thing? On my desktops, I like to do
> >>one big partition, plus swap, but I know most servers are partitioned
> >>crazily. What should I do?
> >>
> >>Joe
> >>
> >>_______________________________________________
> >>General mailing list
> >>General at brlug.net
> >>http://brlug.net/mailman/listinfo/general_brlug.net
> >>
> >>
> >>
>
>
>
> > _______________________________________________
> > General mailing list
> > General at brlug.net
> > http://brlug.net/mailman/listinfo/general_brlug.net
>
>
> _______________________________________________
> General mailing list
> General at brlug.net
> http://brlug.net/mailman/listinfo/general_brlug.net
>
More information about the General
mailing list