PDA

View Full Version : How to Partition 2 hard drives (Not raid) for webserver use


Anim
3rd June 2006, 12:28
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


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

Anim
3rd June 2006, 12:35
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....

falko
3rd June 2006, 14:33
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.

Anim
3rd June 2006, 16:19
Thanks
Anim

leetcharmer
7th June 2006, 01:26
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?

falko
7th June 2006, 14:45
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?

leetcharmer
7th June 2006, 23:10
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 :D.

falko
8th June 2006, 16:54
Then this tutorial might be interesting for you: http://www.howtoforge.com/high_availability_nfs_drbd_heartbeat

gachnar
16th October 2007, 23:17
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.

falko
17th October 2007, 18:30
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.