CentOS Web Server Partitioning scheme

Source: Internet
Author: User

Actual size resolution of partition type partition
Swap partition 2G (memory is 1G, typically twice times of memory)
/1g-2g (Minimum 150–250MB)
/boot 32m-100m (boot partition up to 100M or so)
/OPT 100m-1g (Additional application)
/tmp 40m-1000m (maximum can be set to about 1G, if the load ISO image file is set to about 4G, generally not so much)
/Home 2g-10g (about 100M per user, specific custom. User directory. )
/usr 3g-10g (the most space-consuming part.) At least about 500M, generally loose server to be divided into 4-6g)
/usr/local 3g-15g (self-installed program installed here)
/var >2g--hard disk remaining space (minimum 300m-500m, General 2-3g, server, the rest of the space is divided into it)

1) The following partitions and mount points on the 80G hard disk for the server: (This example is a virtual 80G hard drive in VM6.0, the partition and mount point settings when Red Hat Linux9.0 is installed)
1, free 80G SCSI hard disk.

2, first divided into a 1G partition, mount point is:/
3, divided into a swap partition, is 1-2 times the memory
4, divided into a 100M partition, mount point is:/boot
5, divided into a partition of 1024M, Mount point is:/opt
6, divided into a 4000M partition, mount point:/tmp
7, divided into a 10G partition, mount point:/Home
8, divided into a 20G partition, mount point:/usr/local
9, "Use all available space" divided into a zone, mount point:/var

2) The following partitions and mount points on the 160G hard disk for the server: (this is the partition and mount point settings for the physical drive, the installation of centos6.2)
1. Two 1G swap partition (memory 2G)
2. A 100M partition with a mount point:/ Boot
3. Partition of 40G, mount point is:/usr
4. Divide a 20G partition, mount point is:/
5. Divide a 40G partition, mount point is:/tmp
6. A 10G partition with a mount point of:/home
7. Remaining partitions, mount point:/var
3) Server partition percentage
1. Two 1G swap partition (memory 2G)
2. Partition with a 100M or so, mount point:/boot
3.25% mount point:/tmp
4.25%, Mount points are:/usr
5.12.5%, mount point:/
6.6.25%, mount point:/home
7. Remaining space, mount point:/var

Knowledge Point resolution: Linux partition is different from other operating system partition, its partition format is commonly used EXT4 and swap two kinds, EXT4 for storing system files, swap as Linux swap partition (equivalent to the virtual memory files in Windows). So now we can know that Linux requires at least two dedicated partitions (Linux Native (local) and Linux Swap (swap)). Because Linux cannot be installed on the dos/windows partition. In general, we will install Linux on one or more of the types of "Linux Native" hard disk partition, but in each partition of Linux must specify a "mount point" (mount points), to tell Linux at startup, which directory to use. For a "Swap" partition, it is generally defined one and it does not necessarily define the load point.
Let's start with a preliminary understanding of "Linux Native" and "Linux Swap".
*swap partition is linux temporarily stored data exchange partition, it is mainly to save the main memory temporarily unused data, when needed to redeployment in memory, and the partition used as swap does not specify "Mout point" (load points), since it as a swap partition, We should certainly give it a size that is at least equal to the amount of actual memory on the system, which in general is one to twice times the size of memory. Alternatively you can create and use more than one swap partition, up to 16.
*linux native is a place to store system files, generally with the EXT4 partition type, for Linux, there is a larger choice, you can put the system files in several areas to install (must be described the mount point), can also be installed in the same partition (mount point is "/").

CentOS Web Server Partitioning scheme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.