我一直在阅读有关分区alignment和文件系统优化(ext4和xfs)的一切信息,但仍然不知道如何设置我的当前configuration。 我剩下的困惑来自LVM层,如果我应该在客户端os'es中使用文件系统上的raid参数。
我的主要问题是:
当我使用“pvcreate –dataalignment”时,是否使用RAID上的文件系统计算的条带宽度(在我的情况下是128kB的ext4),RAID集的条带大小(256kB),还是其他的不需要这个?
当我在逻辑卷的guest虚拟机上创buildext2 / 3/4或xfs文件系统时,是否应添加基础RAID的设置(例如,mkfs.ext4 -b 4096 -E stride = 64,stripe-width = 128)?
有没有人在我的设置下面看到任何明显的错误? 我现在正在运行一些基准testing,但还没有做足以开始比较结果。
我在3ware 9750-4i控制器上的RAID 10中有四个驱动器(有关下面的设置的更多详细信息)给了我一个位于/ dev / sda的6.0TB设备。 这是我的分区表:
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客人,我通常会创build所需大小的逻辑卷,并将其呈现给客人,供他们根据需要进行分区。 我知道还有其他方法来处理,但这种方法最适合我的情况。
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
谢谢!