Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux partitioning...

Posted on 2003-11-05
6
Medium Priority
?
747 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 270 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 270 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

719 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