The basic requirements of Linux system for partitioning and the partitioning scheme in enterprise production scenarios

Source: Internet
Author: User
Tags node server

Linux Basic requirements of the system for partitioning

1. at least one root (/) partition is used to store system files and programs at least 5gb\ .

2. to have a swap partition, it acts as virtual memory in the Windows system, the size of the swap partition is typically 1.5 times times the physical memory capacity (memory <8GB). However, when the system physical memory is greater than 8GB, the swap partition configuration (8-16GB) can be, too big useless, wasting disk space. The swap partition is not required, but most of the scenarios are well set, and the individual enterprise's database application scenario is not divided into swap partitions.

3. / boot partition, which is the boot partition of the Linux system for storing system boot files, such as Linux kernel and so on. The total size of all files is typically only dozens of MB, and will not grow too much later. Therefore, the partition can be set to (100-200MB), and the partition is not required.

in enterprise production scenarios Linux partition Scheme of the system


Programme 1: a node server in the site cluster architecture, that is, a server with multiple data or unimportant data, the recommended partitioning scheme is as follows:

/boot partition set to

swap partition Physical memory 1.5 times, when memory is greater than or equal to 8GB (8-16GB)

c root directory partition / The remaining hard disk space size ( /usr  /home/var etc Partition and share a portion windows c


Programme 2 database and storage role server, that is, a large number of important data business, the recommended partitioning scheme is as follows:

A) /boot partition : set to (100-200MB).

   / partition size set to , only the system-related files, website business Data do not put this > inside.

    swap partition : physical memory times when memory is greater than or equal to

d) /data: the size of the remaining hard disk space, storing the database and storing important data, The name of the data can also be used to take other names. Description: This scenario is really handy for backing up and managing data.


Programme 3 Large web site or portal enterprise-level zoning ideas

A) /boot partition : size set to 100MB

Swap partition Physical memory 1.5 times, when memory is greater than or equal to 8GB (8-16GB)

c) /: The size is set to 50-200GB, only the system related files, the website business data is not put here. Remaining space reserved, no longer partition, in the future assigned to departments, by their own according to demand again!

Note: This kind of zoning scheme is more flexible, and it is more suitable for large enterprises with uncertain business lines and more requirements.


Some textbooks and beginners are accustomed to partitioning in the following ways:

/boot Swap/usr/home/var/

Description: This partitioning scheme is characterized by a typical non-assertive passive partitioning, with too many zones, no need, and more hassle in managing them.

General Server Partitioning scheme: It is divided into / Boot , Swap , / Three partitions, note the sequencing of the partitions.

at present, the College general Pc-linux The server partition status is as follows:

[[Email protected] ~] $DF-H

Filesystem Size used Avail use% mounted on

/dev/sda2 49G 4.1G 42G 9%/

Tmpfs 939M 17M 923M 2%/DEV/SHM

/DEV/SDA1 93M 67M 22M 76%/boot

/dev/sda5 179G 818M 169G 1%/home

After listening to my teacher's course, in fact, found in advance system zoning is also feasible, from the past to now has been stable operation for several months, performance has no impact.

According to the actual situation of the college and the ordinary PC , I will re-divide the system into three zones:

/boot:150mb

Swap:3072mb

/: 233472MB #磁盘的剩余所有空间


This article is from the "linux~dba~mba~edu" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1660938

The basic requirements of Linux system for partitioning and the partitioning scheme in enterprise production scenarios

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.