Basic requirements and partitioning scheme for CentOS/RedHat System Disk Partitions

Source: Internet
Author: User
Tags node server

Basic requirements and partitioning scheme for CentOS/RedHat System Disk Partitions

Basic Requirements for Linux system partitioning:

1. At least one root (/) partition is required to store system files and programs. It must be at least 5 GB in size.

2. There must be a swap partition, which is equivalent to the virtual memory in Windows. The size of the swap partition is generally 1.5 times the physical memory capacity (memory <8G ). However, when the system physical memory is larger than 8 GB, the swap partition configuration can be 8 to 16 GB, which is too useless and wastes disk space. Swap partitions are not mandatory, but they are better configured in most cases. The database application scenarios of some enterprises do not cover swap.

3./boot partition: This is the boot partition of the Linux system. It is used to store system boot files, such as Linux kernel. The total size of all files is generally only several dozen MB, and will not increase too much in the future. Therefore, this partition can be set to 100-bit ~ 200 MB, this partition is not required.

Linux system partitioning solution in enterprise production scenarios:

Solution 1: A node server in the website cluster architecture, that is, the server with multiple copies of data or unimportant data. The recommended partitioning scheme is as follows:

/Boot: Set the bits to 100 ~ 200 MB.

/Swap: 1.5 times the physical memory. When the memory is greater than or equal to 8 GB, 8 to 16 GB is enough.

/: The remaining hard disk space (/usr,/home,/var, and other partitions and/share one partition, which is equivalent to the same as the C disk in Windows, all data and system files are put together)

Solution 2: database and server that stores roles, that is, services with a large amount of important data. The recommended partitioning scheme is as follows:

/Boot: 100 ~ 200 MB.

/: Set the size to 50 ~ 200 GB, which only stores system-related files. The website business data is not stored here.

/Data: the size of the remaining hard disk space, which is stored in the database and stores important data. The data name can also be named differently.

Tip: This solution is to partition important data separately for backup and management.

Solution 3: How to partition large websites or portal-level enterprises

/Boot: 100 MB

Swap: 1.5 times the physical memory. When the memory is greater than or equal to 8 GB, 8 to 16 GB is enough.

/: Set the size to 50 ~ 200 GB, which only stores system-related files. The website business data is not stored here.

The remaining space is retained and no partitions are made. In the future, the remaining space will be allocated to the department, and they will divide the remaining space based on their own needs ~

Tip: This partition solution is more flexible and suitable for large enterprises with more uncertain business needs.

This article permanently updates the link address:

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.