# How to partition a linux system in a production scenario? # Date: 2011-07-31 # Author: Old Boy # QQ: 31333741 MAIL: oldboy521@hotmail.com # QQ exchange group: 45039636 # blog: http://oldboy.blog.51cto.com # psite: http://oldboy.cc (coming soon) # pblog: http://blog.eti
# How to partition a linux system in a production scenario?
# Date: 2011-07-31
# Author: Old Boy
# QQ: 31333741 MAIL: oldboy521@hotmail.com
# QQ group: 45039636
# Blog: http://oldboy.blog.51cto.com
# Psite: http://oldboy.cc (coming soon)
# Pblog: http://blog.etiantian.org
######################################## ##################
Old Bird talks about how to partition linux systems in production scenarios?
? Preface:
When we buy a house, we will consider Room 1, Room 2, Room 1, or room 3, Room 2 ......! The specific selection depends on
The amount of money in the hand and the population of the family.
Similarly, the same is true for the server operating system when partitioning. it is divided into three zones and four zones. whether/home/var is required depends on our business needs, and O & M specifications or O & M leaders' preferences.
If there is more or less, there may be some troubles in different business scenarios (LVM can solve this problem, but it has its drawbacks, or some scenarios are superfluous ).
Before explaining this problem, let's briefly talk about the functions of basic/boot partitions, swap partitions, and/(root) partitions.
? Linux/boot partition, swap partition, and/(root) partition
/Boot partition to store boot files and Linux kernel.
Startup File: used to determine which operating system or kernel you need to start.
Kernel: in short, the bridge between programs and hardware. you use applications to control the entire computer through the kernel.
Generally, the partition size is 100-200 M. in the official environment, all linux boot files and kernels are smaller than 100 M.
I basically agree with the saink method. However, it is better to separate DB servers separately.
As many of my friends have said, there is no fixed question about how to score a partition. the old man just gave me so many years of experience for your reference and practical work, leaders should respond as needed.
This article from the "old boy linux O & M" blog, please be sure to keep this source http://oldboy.blog.51cto.com/2561410/629558