Results 1 to 22 of 22
  1. #1

    HDD partitioning

    When you order your first dedicated server, how do they usually setup your disk drive, in one partition, or more?
    and what do you recommend the best scenrio to be, single or multi partitions?
    and, if multi partitions is better, which partition should be assigned for what?

  2. #2
    Join Date
    Dec 2000
    Location
    Sunny Florida (Orlando)
    Posts
    397
    They are all Different:

    EV1Servers makes 3 partitions on primary and doesn't mount a secondary drive if you purchased one. You have to do it yourself

    ServerMatrix makes 2-3 partitions on the primary and mounts the secondary drive as 1 big partition.

    Not sure about others but everyone is different.

    If its a machine with 512mb ram i like to use the following partitions

    /boot 75mb
    swap 1000mb
    / rest of the drive
    Webby Enterprises LLC
    Proudly Offering Shared Hosting, Reseller Hosting, VPS, Dedicated and Colo from Orlando, FL and Saint Louis, MO
    In the business since 1997!

  3. #3
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    785
    Which OS are you planning on running. If you do the above layout on a FreeBSD system you will get poor results.

  4. #4
    Join Date
    Sep 2000
    Location
    Alberta, Canada
    Posts
    3,109
    This can be somewhat of a "hot topic" but I have found two things that serve me well for partition setup.

    1. Never go with a default partitioning by anybody.

    2. Partition suggestion for 80 GB hard drive.

    001 GB /
    075 MB /boot
    001 GB /self << for personal use
    001 MB /tmp
    008 GB/usr
    004 GB /var

    remaining to /home (approx. 57 GB in size, 50 GB usable)
    PotentProducts.com - for all your Hosting needs
    Helping people Host, Create and Maintain their Web Site
    ServerAdmin Services also available

  5. #5
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    785
    This is the layouts I use with FreeBSD

    ## FreeBSD 4.x
    / 128MB
    /swap 2.5 X System RAM
    /tmp 128mb mount noexec
    /var/tmp 128mb mount noexec
    /var 3-5GB depending on logging and database support
    /usr 8-10GB
    /home Remainder.

    I like to dump all the site content files in /home/www

    ## FreeBSD 5.x
    / 256MB
    /swap 2.5 X System RAM
    /tmp 128mb mount noexec
    /var/tmp 128mb mount noexec
    /var 3-5GB depending on logging and database support
    /usr 8-10GB
    /home Remainder.

    Mount all the slices with Softupdates enabled except for the swap and / slice.

    -delo

  6. #6
    This is what I use for Linux

    /swap - 2 x RAM with a floor at 1024 MB and a ceiling at 2048 MB
    /boot - 100 MB
    / - rest of disk/grow to fill disk

  7. #7
    I'm interested to know the best partitioning for a linux system, sory I didnt specify this in the question.

    If one didn't type anything in the comments for specific partitioning, what would be the standard partitioning they apply then? for example, what's managed.com and servermatrix default partittioning for a linux?

  8. #8
    Servermatrix defaults to 2 partitions, if I remember correctly.

    /
    /swap

    For best results, when you order a server request for partitioning to be done the way you want it.

    The base partitions IMHO should be;

    /
    /home
    /tmp
    /swap
    YourCheapHost.com - Low cost multi domain hosting solutions. [Legal adult content friendly]
    Reliable web site hosting is our motto. We have Alertra stats to back that up.
    Proven provider of high quality shared and reseller accounts since 2002.

  9. #9
    Originally posted by Website Rob
    001 MB /tmp
    probably a typo

  10. #10
    Join Date
    Jul 2003
    Location
    London UK
    Posts
    327
    I always have relatively small /boot for Linux and / for FreeBSD, to ensure kernels stay within the first 1024 cylinders.

    Aside from that, I don't see any great difference splitting the partitions if they're on a single disk, apart from the time to fsck.
    Paul Civati
    Rack Sense Ltd UK Managed Services Provider
    Views expressed are my own and not those of the company.

  11. #11
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    785
    A couple reasons to break it down.

    1: You want to set /tmp and /var/tmp to mount with noexec
    2: You want to keep a small / (root) slice seperate so that if any of the other slices fill up it wont clobber data in the root directories.
    3: You want to enable / disable features like 'softupdates' or change the way newfs formats the slice to suite the applications that will be running on that slice or data stored ( large files vs small files)
    4: easier to organize and backup with applications like 'dump'
    5: Prevent a runway process or massive core dump from filling up your entire file system. If you have it running on a smaller slice like a 8GB /usr it will fill that to the brim but leave your / slice alone allowing you to get back in and clean up any mess.

    I am sure there is more valid reasons also.

    -delo

  12. #12
    is it recommanded to have different partitions for /tmp and /var/tmp? and why? thanks.

  13. #13
    Join Date
    May 2003
    Location
    Kirkland, WA
    Posts
    4,448
    Originally posted by Paul-Xensia
    I always have relatively small /boot for Linux and / for FreeBSD, to ensure kernels stay within the first 1024 cylinders.

    Aside from that, I don't see any great difference splitting the partitions if they're on a single disk, apart from the time to fsck.
    /tmp should always be on it's own partition in order to make it non-executable.

    You don't neccessarily need to have /var/tmp on it's own partition, it can't hurt, but neither can just symlink'ing it to /tmp

  14. #14
    Join Date
    Jul 2003
    Location
    London UK
    Posts
    327
    I forgot /tmp, as I normally make it a relatively small noexec MFS.
    Paul Civati
    Rack Sense Ltd UK Managed Services Provider
    Views expressed are my own and not those of the company.

  15. #15
    Join Date
    Sep 2000
    Location
    Alberta, Canada
    Posts
    3,109
    Originally posted by Website Rob
    001 MB /tmp


    Originally posted by Walter
    probably a typo
    Whoops, you're absolutely correct. Should be 001 GB.
    PotentProducts.com - for all your Hosting needs
    Helping people Host, Create and Maintain their Web Site
    ServerAdmin Services also available

  16. #16
    Join Date
    Aug 2002
    Location
    UK
    Posts
    1,040
    When you order your first dedicated server, how do they usually setup your disk drive, in one partition, or more?

    This very much depends on the type of company you end up hosting with. If you're looking at the lower end of the market for "bargain basement" deals, you'll probably have to live with whatever they give you.

    If you're spending a little more at the premium end of the market, then you should be able to ask them to set up the partitions exactly as you prefer. If you're relying on this server for critical business functions and your prospective host isn't willing to set-up partitions as you want, it doesn't bode particularly well for the future when more critical "hands on" work may need doing - and this applies whether this is a managed server or not IMHO.
    Robin Balen
    Gyron Internet Ltd - http://gyron.net/
    UK colocation, managed hosting and connectivity services with 100% uptime SLAs

  17. #17
    Best partition for 2x120GB?

    Can any one HELP me?? PLEASE

    I need advise for my 2x120GB Patitions


    1) hdd1 - harddisk is 120GB why is it
    76M??

    2) How to configure/setup myself
    change this partitions in WHm or SHH (any command?) ??


    RAM = 1GB
    ===============================
    Physical Drives
    hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
    hdd: attached ide-disk driver.
    hdd: host protected area => 1
    hdd: 234441648 sectors (120034 MB) w/8192KiB Cache

    =================================



    --------------
    Current Disk Usage
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/hda2 ext3 7.7G 141M 7.2G 2% /
    /dev/hda1 ext3 76M 13M 60M 18% /boot
    /dev/hda8 ext3 84G 2.1G 78G 3% /home
    none tmpfs 505M 0 505M 0% /dev/shm
    /dev/hda7 ext3 1012M 33M 928M 4% /tmp
    /dev/hda5 ext3 7.7G 106M 7.2G 2% /var
    /dev/hda6 ext3 7.7G 1.3G 6.1G 18% /usr
    /dev/hdd1 ext2 76M 28K 72M 1% /home2
    ----------------------------

  18. #18
    Join Date
    Dec 2001
    Location
    Above The Clouds
    Posts
    6,999
    Wow, you found yet ANOTHER thread to bump about this. WHT can't teach you how to admin a server. Many people have thought that and paid the price.
    Laurence Flynn @ atOmicVPS LTD
    Linux & Windows Cloud Hosting Solutions Powered by OnApp
    Fully Managed [Shared][Reseller][Cloud VPS] [Dedicated]
    Featuring the atOmicSTACK ● Speed ● Performance ● Reliability

  19. #19
    Join Date
    Feb 2004
    Posts
    208
    Current Disk Usage
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/hda2 ext3 7.7G 141M 7.2G 2% /
    /dev/hda1 ext3 76M 13M 60M 18% /boot
    /dev/hda8 ext3 84G 2.1G 78G 3% /home
    none tmpfs 505M 0 505M 0% /dev/shm
    /dev/hda7 ext3 1012M 33M 928M 4% /tmp
    /dev/hda5 ext3 7.7G 106M 7.2G 2% /var
    /dev/hda6 ext3 7.7G 1.3G 6.1G 18% /usr
    /dev/hdd1 ext2 76M 28K 72M 1%
    When I receive a server from Managed with RH9 that's what I get. I don't see any problem with that. Though I wish the partition for /var bigger as it store databases. I checked with managed support they are willing to re-setup for me as per my preference for the first round FOC.

    I don't think there is a best way to partition your drive, it depend how/what you intend to use your server for. With separate partitions "theoretically" work faster to locate files within that partition. But the headache is that you have to pre-determine the partition size. You can change partition size when it runs out.

    If working and system directories are in one big partition it would be slower for file searching, but you have no size limitation for each directory.

    Correct me if I am wrong.

  20. #20
    Join Date
    Feb 2004
    Posts
    208
    "You can change partition size when it runs out."

    Oops! Sorry a typo mistake. It should be,

    "You can not change partition size when it runs out."

  21. #21
    Originally posted by richmon
    1) hdd1 - harddisk is 120GB why is it
    76M??
    This is your boot partition and not a hard disk itself - 76 MB should be fine.

  22. #22
    hdd1 is my /home2
    not a boot? or am i wrong here?


    If this this my 2nd 120GB HDD then how to shh command to patition my
    hdd1?? any idea?


    Should I use
    fdisk 1st or mkfs. ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •