我已经阅读了关于分区对齐和文件系统优化(ext4和xfs)的所有信息,但仍然不知道如何对设置当前配置充满信心。我剩下的困惑来自LVM层,如果我应该在来宾操作系统中使用文件系统上的raid参数的话。
我的主要问题是:
我有四个驱动器在RAID 10上的一个3ware 9750-4i控制器(更详细的设置下面)给我一个6.0TB设备在/dev/sda。这是我的分区表:
Model: LSI 9750-4i DISK (scsi)
Disk /dev/sda: 5722024MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1.00MiB 257MiB 256MiB ext4 BOOTPART boot
2 257MiB 4353MiB 4096MiB linux-swap(v1)
3 4353MiB 266497MiB 262144MiB ext4
4 266497MiB 4460801MiB 4194304MiB
Partition 1 is to be the /boot partition for my xen host.
Partition 2 is swap.
Partition 3 is to be the root (/) for my xen host.
Partition 4 is to be (the only) physical volume to be used by LVM
(for those who are counting, I left about 1.2TB unallocated for now)对于Xen客人,我通常会创建一个所需大小的逻辑卷,并将其呈现给来宾,以便他们根据需要进行分区。我知道还有其他方法来处理这个问题,但是这个方法最适合我的情况。
Here's the hardware of interest on my CentOS 6.3 Xen Host:
4x Seagate Barracuda 3TB ST3000DM001 Drives (sector size: 512 logical/4096 physical)
3ware 9750-4i w/BBU (sector size reported: 512 logical/512 physical)
All four drives make up a RAID 10 array.
Stripe: 256kB
Write Cache enabled
Read Cache: intelligent
StoreSave: Balance谢谢!
发布于 2020-08-19 19:38:35
特别是在回答你的问题时:
3.1)您不是从顶级I/O大小开始,这是您需要开始的地方。如果您的应用程序主要使用x KB块编写,那么您需要对x KB块的整个存储堆栈进行优化和对齐。
3.2)您还没有触及块组对齐( ext*文件系统的-g选项)。您需要调整块组的大小,以避免从同一个磁盘开始的所有块组,从而造成一个巨大的热点,并使该磁盘成为瓶颈。
我写了一篇关于这个主题的文章,解释了如何实现最优存储堆栈对齐,您可能会发现这很有用。
https://serverfault.com/questions/446111
复制相似问题