Solved

Linux partitioning...

Posted on 2003-11-05
6
732 Views
Last Modified: 2010-05-18
Hi all..
    I'm totally new to Linux. I'm trying to install RH 8.0 in a IDM eserver machine. The machine has 3 35GB hot swappable drivers.
I want to combine the 2nd and 3rd drive into one logical drive and load MySQL in it.
In the first drive i want to load Linux.
Is it possible to load like that ??
Also how do i partition thses drives. How much space should is give to each mount points.
Can i do something like this..
/boot  --   500MB
/  --   500MB
/usr  --  2GB
/usr/local  -- 2gb
/home  --  2gb
swap  -- 2GB
/var --  1GB
/tmp  --  1gb

and make a partition to load MySQL. I mean where will MySQL files go ??

Thanks :)
0
Comment
Question by:queryanalyzer
  • 2
  • 2
  • 2
6 Comments
 
LVL 9

Expert Comment

by:svenkarlsen
ID: 9688408
I'm not 100% sure with RH 8.0, - mine go in /var/lib/mysql

But that doesnt matter all that much, because you can just do a default install and then map the drive to the relevant directory when you've located it.

Cocerning your partition scheme: you can do pretty much as you like, as long as there is room enough for the system (which you have in your scheme).

Only suggestion might be re. your /home, - this will hold all users work-files, so 2Gb may be a bit small (you've got lots of space, as I see it. Otherwise I find that RedHat will make some quite reasonable partitioning suggestions when selecting to install as server.

As for spanning several disks, I believe you're in luck: as far as I know, RH 8 was the first RH to include the LVM, (logical volume manager), so that should not be a problem, - just remeber to install it and add you space where you need it.

You can read about LVM here:

http://www-106.ibm.com/developerworks/linux/library/l-lvm/

Kind regards,
Sven
0
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 90 total points
ID: 9688881
Given your disks I'd partition the system disk like:

/boot     100Mb
/         10000Mb
/var      1000Mb
/home  remainder

By not using separate /usr, /usr/local, & /tmp I maximize the usability of the free space by having all in one spot.

Then I'd either set up a software RAID 0 (concatentated disks) or LVM across the other two disks, yielding about 70Gb for database use. Ordinarily RH 8.0's MySQL installation will place the database in /var/lib/mysql, but that can be changed by editing /etc/init.d/mysqld.

Given that 8.0 is "end of life" in December, I'd suggest that you go with RedHat 9 or consider Enterprise Linux 3.0 ES.
0
 

Author Comment

by:queryanalyzer
ID: 9689078
Hi 'jlevie'...
   If MySQL gets installed in /var/lib/mysql and the /var size is set to 1000Mb wont this be too same for a database. This is asuming the database data gets stored somewhere with in the /var/lib/mysql directory ??
I want like 30Gb for the database.

Thanks.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:queryanalyzer
ID: 9689234
Also..  this machine is going to run as a server, so there arent going to be many users, root and one more may be.

Thanks.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9689343
The default location of the database is defined by datadir="/var/lib/mysql" in /etc/init.d/mysqld. The first time that service is started the database area (cluster in SQL speak) is initialized. If you were to mount your LVM/RAID volume as /dbdata and change that to datadir="/dbdata" MySQL will use that area for the database store.

0
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 90 total points
ID: 9691132
queryanalyzer,

 I believe you should take a look at the LVM link I posted ( http://www-106.ibm.com/developerworks/linux/library/l-lvm/ ).

In short: if you are just used to the fixed and static function of disk partitioning that you get from e.g. Windows and earlier Linux, then you will learn that LVM will make a great difference: you can DYNAMICALLY resize your partitions (or at least add space to an overfilled partition) without rebooting and all the tedious stuff.

The only partitions you should be concerned about are the basic: /boot, /, /var, - etc. If you accept the RH default for those and only install on the first disk, then you will be able to use the two other disks as a pool of free space to add anywhere it is required, - be it for databases, /usr or whatever.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now