Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd June 2006, 11:28
Anim Anim is offline
Member
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default How to Partition 2 hard drives (Not raid) for webserver use

Hi

I am attempting to build a webserver with Ubuntu 6.06 and have some questions about partitioning the hard drives.

The system has 1Gig of ram and two 80 gig sata drives which Ubuntu discovers perfectly.

At this time I don't want to attempt software raid but I do want all the OS and applications on the first drive and all websites on the second drive.

I have set it up so that

Code:
sda
===
#1 Primary    50 MB    B    F    ext3    /boot
#2 Primary    3.0 GB        f    ext3    /swap
#3 Primary    76.9 GB       f    ext3    /

sdb
===
#1 Primary    80 GB         F    ext3    /

Is this the best way for what I want or should I be using /var or /home partitions too? Have I over complicated it? should the swap reside on the OS partition or the data one?

I expect one website on sdb to be between 10 and 50 GB and the remaining space for any other sites I care to host.

Thanks for any help
Anim
Reply With Quote
Sponsored Links
  #2  
Old 3rd June 2006, 11:35
Anim Anim is offline
Member
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default

Actually, just discovered that I can't have two "/" mount points so I made sdb a /var

Also
#2 Primary 3.0 GB f ext3 /swap

should read
#2 Primary 3.0 GB f swap swap

And blindly I go forth....

Last edited by Anim; 3rd June 2006 at 11:38.
Reply With Quote
  #3  
Old 3rd June 2006, 13:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Quote:
Originally Posted by Anim
Actually, just discovered that I can't have two "/" mount points so I made sdb a /var
Yes, that's right. If you want your web sites on /var, then make your second hdd /var.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 3rd June 2006, 15:19
Anim Anim is offline
Member
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks
Anim
Reply With Quote
  #5  
Old 7th June 2006, 00:26
leetcharmer leetcharmer is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've got a similar setup -- plus an additional 250GB IDE HDD on Hardware RAID. I want that drive to be setup as a Storage Center for the network, how should I partition it and get that setup?
Reply With Quote
  #6  
Old 7th June 2006, 13:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

You mean you want to use that drive as network attached storage (NAS)? Do you want ot use it with Samba or NFS or anything else?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 7th June 2006, 22:10
leetcharmer leetcharmer is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ya, I'd like it to be a NAS -- or act as a Storage Area Network (SAN) server -- same thing? NFS is over Linux and Samba is over Windows, right? I'd like to offer both then .
Reply With Quote
  #8  
Old 8th June 2006, 15:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Then this tutorial might be interesting for you: http://www.howtoforge.com/high_avail...drbd_heartbeat
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 16th October 2007, 22:17
gachnar gachnar is offline
Junior Member
 
Join Date: Oct 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multi Drive partitioning

Hi... First time poster. OK, I have an old PII box that I want to make a complete server (WEB,MAIL,FTP,etc) Inside of it I have 2 appx 15GB EIDE hard drives. My question is how should I partition them? I don't know how big and how I should make the partitions on each drive. I also want to give the 2 main users the most space for like their home partitions so that we can each store a lot of data from our windows XP boxes. Also I want to avoid a RAID configuration if possible to reduce the loss if one of the HD's should crash. I know this is a lot of information to try and answer, but any help would be greatly apprecieated.
Reply With Quote
  #10  
Old 17th October 2007, 17:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

The partitioning is totally up to you, I can't give you any recommendation. But maybe you should use LVM together with your two HDDs.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: SUSE 10.0 and Software RAID a.k.a FakeRAID crushton HOWTO-Related Questions 35 16th January 2009 19:40
Hard Drive Failed Need Help mphayesuk Technical 1 28th April 2006 23:20
SATA Software RAID 1 on Linux mphayesuk Installation/Configuration 2 21st February 2006 11:31
Suse 10 RAID 1 How To mphayesuk Installation/Configuration 2 11th February 2006 04:56
How to determine the size of partition hard disk Shahliza Installation/Configuration 1 8th February 2006 01:10


All times are GMT +2. The time now is 21:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.