hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Installing CentOS - OS & Files on Separate HDD
Reply

Forum Jump

Installing CentOS - OS & Files on Separate HDD

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-30-2010, 06:20 AM
hbhb hbhb is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Posts: 515

Installing CentOS - OS & Files on Separate HDD


Hi,

I wanted to try few new things I've never tried before, simple things which I believe all of you here should have the idea..

I wanted to separate my OS & my files on a separate HDD.

I thought the right way to do this is to install boot on the first HDD
/boot (100mb) - /dev/sda1 (80GB)
swap (5120mb) - /dev/sda1

The files should goto /home
/home - /dev/sdb1 (500GB)

And the SQL should be /var/lib/mysql
/var/lib/mysql - /dev/sdc1 (500GB)

Is this the correct way to do it??



Sponsored Links
  #2  
Old 01-30-2010, 06:33 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,543
Well, I don't see any problems with your setup. It's good to have the data on a separate drive so even if the primary drive crashes, your data is still safe on the other drives.

BTW, I would still recommend you to configure a backup on a separate drive OR you can configure backups in such a way that files will be backed up on /dev/sdc1 and Mysql databases will be backed up on /dev/sdb1.

__________________
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  #3  
Old 01-31-2010, 10:40 AM
hbhb hbhb is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Posts: 515
Ok. nevermind about the backup yet

Another thing I am curious about it, how possible for me to combine HDD2 + HDD3 seen as 1 HDD mounted to /home ?

/dev/sdb1 (500GB)
/dev/sdc1 (500GB)
Both mounted together seen as 1GB

Do I need to use LVM to do so? What's the pros & cons?

Sponsored Links
  #4  
Old 01-31-2010, 10:44 AM
dedivirtual dedivirtual is offline
Temporarily Suspended
 
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
yes, you can use LVM for combining the two/three HDDs.
Dont know about Pros/Cons, however I'm doing this on 9 Dedicated servers and everything working pretty fine for me.

  #5  
Old 01-31-2010, 10:45 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,543
The only downside I see is, if the partition crashes, both databases and websites will be gone. Having them on 2 different drives OR partitions, will make it more secure in drive crash point of view. However, if you want to combine them, LVM is the best way to go.

__________________
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  #6  
Old 01-31-2010, 09:57 PM
hbhb hbhb is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Posts: 515
Something curious about how LVM works

If I have 2 files stored into my /home/file-a & /home/file-b

How do I know if file-a & file-b is stored into /dev/sdb1 or /dev/sdc1 ?

I am just thinking about the possibilities what if one of the HDD crashes..

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing CentOS projectmelano Dedicated Server 18 07-10-2008 12:35 AM
Need Help: Installing VNC on CentOS 4.5 Am3n Hosting Security and Technology 0 08-12-2007 03:50 AM
Installing GD Support on CentOS DataDork Hosting Security and Technology 6 06-08-2006 03:44 PM
Installing MySQL 4.1 on CentOS 3.7 flashwebhost Hosting Security and Technology 2 06-05-2006 09:33 AM
Installing Centos? Kamilek Hosting Security and Technology 3 02-02-2006 05:24 PM

Related posts from TheWhir.com
Title Type Date Posted
Red Hat Takes Active Role in CentOS Project to Drive New Technology Adoption Web Hosting News 2014-01-08 12:00:22
Solar VPS Becomes Official Mirror for Centos and Ubuntu Web Hosting News 2013-04-16 11:03:34
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Cloud City Hosting Integrates Backup with Cloud Hosting Plans Web Hosting News 2012-05-11 16:21:19


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?