1. Zoning Requirements
1)/: Required
2) Swap: Optional, generally 1.5 times times the physical memory, when the physical memory is greater than 16G, select 8-16g can
3)/boot: Used to store kernel files, general 100~200m can, kernel files not more than 100M
After partitioning, the format is formatted to create the file system (a mechanism that the file system can understand as an organization of files) before data can be stored.
2. Partitioning scheme
"1" General partitioning scheme
1)/: Remaining hard drive size
2) swap:1.5* Physical memory
3)/boot:100m
"2" DB and Storage: lots of important data
1)/data/: The remaining hard disk size for storing data
2)/:50~200g
3) swap:1.5* Physical memory
4)/boot:100m
This zoning idea can be understood as the equivalent of Windows can not only divide the C-disk, but also need other partitions, because in the re-installation of the system may be lost data, the same in Linux, even if the system is re-installed, if the/data partition, when the system to re-install the use of custom partitioning method, not existing/ Data partition to operate, re-install the system good, and then mount, you can ensure that the information is not lost.
"3" Portal large Web site
1)/:50~200g
2) swap:1.5* Physical memory
3)/boot:100~200m
Partitions are no longer preserved, and the rest of the space is partitioned on demand.
"4" User partition
In addition to/, swap and/boot, the following partitions are also made:
/usr,/home,/var
Its actual necessity is not small, because in case these partitions are full, the root partition even if there is space, but can not use, it is a bit wasteful feeling.
"5" Problem: Partitioned Full solution
For a partition full problem, you can use LVM to adjust the partition size online, but the performance is relatively poor.
In a production environment, there is a solution like the following:
1) Monitor the disk and alarm when the remaining 20%
2) hardware RAID (redundant array of disks), combining multiple drives instead of LVM or soft raid
This article is from the "fragrant fluttering leaves" blog, please make sure to keep this source http://xpleaf.blog.51cto.com/9315560/1658523
Zoning requirements and partitioning schemes in the "Linux system Installation" production scenario