我们已经部署了带有ceph版本12.2.5的ceph集群,使用Dell R730xd服务器作为存储节点,并带有10个7.2k NLSAS驱动器作为OSD。我们有3个存储节点。
我们没有配置RAID设置,而是直接使用驱动器来创建OSD。
我们正在使用ceph-ansible-stable-3.1部署ceph集群。
在使用RBD映像的VM中,我们在磁盘写入测试中遇到性能降低的问题。
[root@test-vm-1 vol2_common]# dd if=/dev/zero of=disk-test bs=512 count=1000 oflag=direct ; dd if=/dev/zero of=disk-test bs=512 count=1000 oflag=dsync ; dd if=/dev/zero of=disk-test bs=512 count=1000
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 0.101852 s, 5.0 MB/s
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 21.7985 s, 23.5 kB/s
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 0.00702407 s, 72.9 MB/s
在检查OSD节点的osd目录下时,我们发现磁盘速度较低。
[root@storage01moc ~]# cd /var/lib/ceph/osd/ceph-26
[root@storage01moc ceph-26]# dd if=/dev/zero of=disk-test bs=512 count=1000 oflag=direct ; dd if=/dev/zero of=disk-test bs=512 count=1000 oflag=dsync ; dd if=/dev/zero of=disk-test bs=512 count=1000
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 14.6416 s, 35.0 kB/s
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 9.93967 s, 51.5 kB/s
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 0.00591158 s, 86.6 MB/s
我们怀疑问题的原因是在单个OSD驱动器上不使用任何RAID配置(RAID 0)时没有可用的硬件缓存。
Ceph配置
[global]
fsid = ....
mon initial members = ...
mon host = ....
public network = ...
cluster network = ...
mon_pg_warn_max_object_skew=500
[osd]
osd mkfs type = xfs
osd mkfs options xfs = -f -i size=2048
osd mount options xfs = noatime,largeio,inode64,swalloc
osd journal size = 10240
[client]
rbd cache = true
rbd cache writethrough until flush = true
rbd_concurrent_management_ops = 20
磁盘详细信息
=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: MG04SCA60EE
Revision: DR07
Compliance: SPC-4
User Capacity: 6,001,175,126,016 bytes [6.00 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
Formatted with type 2 protection
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Wed Aug 1 20:59:52 2018 +08
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported
请让我知道我们是否缩小OSD并在驱动器上使用RAID 0并重新创建OSD,这是否有助于增加磁盘写入?
先谢谢了。
答案 0 :(得分:0)
当我们在存储控制器上为每个OSD驱动器配置RAID0时,磁盘写入问题已解决。
在没有配置任何RAID级别的驱动器上,无法确定RAID控制器写高速缓存的原因。