Re: Partition sizes?
- From: "Nico Kadel-Garcia" <nkadel@xxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 17:15:26 -0400
es330td@xxxxxxxxx wrote:
I am setting up a machine to learn PHP/MySQL (a LAMP platform.) It
has a 9GB drive and a 36 GB drive and both are 7200RPM F/W SCSI
drives. I have a couple of questions about partitioning the system.
1. I am going to make swap twice the size of RAM. Should I make it
all on one drive or split it between two drives?
It Depends(TM). Will you be using swap much? And will one of the disks be
hammered by disk access so much that it's likely to be taking most of the
disk traffic? (This is likely the MySQL database disk).
2. Do I have to create /opt, /var, /home, etc. or can I simple make a
/ on the 36 and let the system create the various directories so that
each can be as big as it needs?
I suggest a single root. Other folks disagree with me on this, but they
haven't had to deal with the vagaries of tools that stuff things in /usr,
/opt, /var, /tmp, /usr/local, /home, etc. depending on which version you
compile. If you need a big partition for anything, it'll be your MySQL
database, and can be optimized with settings like "noatime".
3. Since I do have two physical drives, what is the best way to
partition this so I don't fill up a partition because I picked a wrong
size at installation?
Spend some time thinking about that MySQL database and how big it's likely
to get, versus how much space you need for other things. Then be ready to do
a backup and restoration if you need to repartition later.
Also, lots of folks use LVM now to dynamically re-allocate partitions. I
don't like the approach, but some folks report good results.
.
- Follow-Ups:
- Re: Partition sizes?
- From: es330td@xxxxxxxxx
- Re: Partition sizes?
- References:
- Partition sizes?
- From: es330td@xxxxxxxxx
- Partition sizes?
- Prev by Date: Partition sizes?
- Next by Date: Re: Apache->PHP-mail()->sendmail problem Debian 3.1
- Previous by thread: Partition sizes?
- Next by thread: Re: Partition sizes?
- Index(es):
Relevant Pages
|