LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2006, 06:44 AM   #1
guimaraes
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Database and static files on other disk


I have 2 raid arrays.
raid 1, 17 GB
raid 5, 52 GB
Each array is on it's own channel, connected to a LSI megaraid 320-2x scsi raid controller.

I run Centos 4.3 and directadmin on the raid 1 array.

I want my databases and static files (images, html. php, asp etc.) on the raid 5 array. Do i have to mount my raid 5 array to /var and /home? Or just make a new directory and mount my raid 5 array to it, and configure mysql and directadmin to store the databases and static files in that directory?

If i just mount it to /var and /home, all data will be spread among the raid 5 AND raid 1 array right? Because /var and /home are originally mounted to the raid 1 array.

If you have any suggestions how i should do it, please let me know!
Thanks.
 
Old 05-18-2006, 07:17 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
No, mounting your raid partition on /home or /var will hide the contents.
The mysql databases are located in /var/lib/mysql. You could mount a raid partition there.
There is mysql documentation in /usr/share/doc/packages/mysql/

A mention is made in the installation section about building mysql. One of the options is --with-raid. I haven't read up on this but it may be something to look at.
 
Old 05-18-2006, 07:28 AM   #3
guimaraes
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
And what if i copy the var and home directories to my raid 5 array, and then mount it?
I have DirectAdmin installed, and it seems that it changed my directory structure, where all stuff is being stored.

Last edited by guimaraes; 05-18-2006 at 07:30 AM.
 
Old 05-18-2006, 08:28 AM   #4
guimaraes
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Anyone? Need some help here.
 
Old 05-18-2006, 01:40 PM   #5
guimaraes
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
bump........
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Database to Excel Files hategiants Linux - Software 4 07-27-2005 01:41 PM
.db files 'Database' gr3ygh0s1 Linux - Software 0 06-06-2005 07:21 PM
Network configuration files: where to write the static ip? zvonSully Ubuntu 3 04-20-2005 04:23 AM
updating locate database only when disk activity low beetlenaut Linux - Software 1 11-23-2004 07:26 PM
Database Log Files saravanan1979 Linux - Networking 4 02-25-2002 12:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration