From b75566c673b6909496bfadd3eb5827e5d3d53419 Mon Sep 17 00:00:00 2001 From: Hanqing Wu Date: Wed, 11 Oct 2023 20:46:56 +0800 Subject: [PATCH 1/2] update grub.cfg based on BIOS mode --- docs/02-CurveBS/02-deploy/09-rdma-spdk.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/02-CurveBS/02-deploy/09-rdma-spdk.md b/docs/02-CurveBS/02-deploy/09-rdma-spdk.md index f18238e..3054aa8 100644 --- a/docs/02-CurveBS/02-deploy/09-rdma-spdk.md +++ b/docs/02-CurveBS/02-deploy/09-rdma-spdk.md @@ -23,7 +23,19 @@ ### 开启 IOMMU -修改 /etc/default/grub,在 GRUB_COMMAND_LINE 最后加入 `intel_iommu=on`,然后执行 `grub2-mkconfig -o /boot/grub2/grub.cfg` 并重启机器。 +修改 /etc/default/grub,在 GRUB_COMMAND_LINE 最后加入 `intel_iommu=on`,根据 BIOS 模式更新不同的 grub.cfg 文件 + +```bash +$ test -d /sys/firmware/efi && echo "UEFI" || echo "Legacy" + +# Legacy 模式 +$ grub2-mkconfig -o /boot/grub2/grub.cfg + +# UEFI 模式 +$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg +``` + +然后重启机器。 ### 调整 memlock 限制 From 05e87135dc0f62d368cbe079d2ebf3ef5862f7ed Mon Sep 17 00:00:00 2001 From: Hanqing Wu Date: Thu, 12 Oct 2023 11:05:28 +0800 Subject: [PATCH 2/2] add step to enter client container --- docs/02-CurveBS/02-deploy/09-rdma-spdk.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/02-CurveBS/02-deploy/09-rdma-spdk.md b/docs/02-CurveBS/02-deploy/09-rdma-spdk.md index 3054aa8..988d10b 100644 --- a/docs/02-CurveBS/02-deploy/09-rdma-spdk.md +++ b/docs/02-CurveBS/02-deploy/09-rdma-spdk.md @@ -231,6 +231,21 @@ cbd 引擎测试可以避免 nbd 挂载带来的额外开销,在单卷测试 为了方便编译,如下命令以在 curveadm map 创建的容器内执行 +- 进入容器 + +```bash +$ curveadm client status +Get Client Status: [OK] + +Id Kind Host Container Id Status Aux Info +-- ---- ---- ------------ ------ -------- +5f1c10fd4d71 curvebs curve1 dcbb6b69028e Up 9 days {"user":"test","volume":"/curve"} + +$ curveadm client enter 5f1c10fd4d71 # 替换为上面输出的实际Id +``` + +- 在容器内编译并执行 fio 测试 + ```bash $ git clone https://github.com/opencurve/fio.git -b curve $ cd fio