Disk partitions are: Primary partition, extended partition, logical partition
A hard disk can have up to 4 partitions, and a hard disk must have only one extended partition (cannot be used)
Multiple logical partitions must be partitioned and formatted in this extended partition.
Formatting: Creating a file system
File system: A mechanism for storing data
Linux is accessed by device name and is typically stored under the/dev directory
Linux partitioning scheme
Normal system-to-partition:
At least one/partition
Swap swap partition
Setting up a separate/boot partition is recommended
DB and storage: There's a lot of important data
1./50-200g
2.swap 1.5 times times
3./boot 100M
4./data/remaining hard disk size, all for storing data
Portal:
1./50-200g
2.swap 1.5 times times
3./boot 100M
Others are no longer partitioned, to be preserved, which need to be re-divided in the future
Generally not necessary partition:/usr/home/var
In the production environment: soft raid and LVM on-line adjustment partition performance is poor, generally do not use!
Hardware RAID is recommended, combined with multiple drives to expand
This article is from the Linux Operations sharing blog, so be sure to keep this source http://liangey.blog.51cto.com/9097868/1570982
Linux Disk partitioning