How to Partition 2 hard drives (Not raid) for webserver use

Discussion in 'Installation/Configuration' started by Anim, Jun 3, 2006.

  1. Anim

    Anim New Member


    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

    #1 Primary    50 MB    B    F    ext3    /boot
    #2 Primary    3.0 GB        f    ext3    /swap
    #3 Primary    76.9 GB       f    ext3    /
    #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
  2. Anim

    Anim New Member

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

    #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: Jun 3, 2006
  3. falko

    falko Super Moderator ISPConfig Developer

    Yes, that's right. If you want your web sites on /var, then make your second hdd /var.
  4. Anim

    Anim New Member

  5. leetcharmer

    leetcharmer New Member

    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?
  6. falko

    falko Super Moderator ISPConfig Developer

    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?
  7. leetcharmer

    leetcharmer New Member

    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.
  8. falko

    falko Super Moderator ISPConfig Developer

  9. gachnar

    gachnar New Member

    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.
  10. falko

    falko Super Moderator ISPConfig Developer

    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.

Share This Page