我负责设置一个新的CentOS 7服务器。这是我的第一次,所以我想确保我在正确的轨道上。经过一些研究,我选择了6个分区:
Partition | Type | Device Type | Mounted at
1 | ext4 | VLM | /
2 | ext4 | Standard Partition | /boot
3 | ext4 | VLM | /home
4 | ext4 | VLM | /var
5 | ext4 | VLM | /usr
6 | ext4 | VLM | /swap 事实上,容量是我不确定的:(HDD: 1 TB)
/ 60 GB
/boot 1GB
/home 800GB
/var 20GB (since /var holds logs and databases)
/usr 20GB
/swap 2*RAM = 2*8 = 16GB
100 GB not allocated我最关心的是/var大小,因为我不知道数据库会有多大,我不知道该如何设置它。
发布于 2015-01-25 13:44:01
注意:您不必为/和/boot使用LVM,但是DB: DB总是存储在/var中,如mysql和psql,因此需要很大的空间。您可以自己创建以下问题:
https://unix.stackexchange.com/questions/180970
复制相似问题