Skip to content

Commit

Permalink
update site at 20240401-011002, machine liaosirui-mbp
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaoSirui committed Mar 31, 2024
1 parent f119e6e commit bd8109b
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## 分区对齐

相关文档:

- <https://doc.beegfs.io/7.4.3/advanced_topics/partition_alignment.html>

## 如何分区对齐

一个常用且非常简单的分区对齐替代方法是直接在存储设备上创建文件系统,而不进行任何分区

```bash
```

检查当前分区对齐

```bash
> fdisk -lu /dev/sdc

Disk /dev/sdc: 599.9 GB, 599999905792 bytes
255 heads, 63 sectors/track, 72945 cylinders, total 1171874816 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 63 1171861424 585930681 83 Linux
```

如上所示,分区的开始当前位于 63*512 字节的位置,需要进行调整

要创建对齐的 GPT 分区,需要使用 `parted` 工具

```bash
parted /dev/sdc mklabel gpt

parted --align=opt /dev/sdc unit KiB mkpart pri $((9*64)) 100%
```

### 创建 xfs 分区

```bash
mkfs.xfs -d su=64k,sw=9 -l version=2,su=64k /dev/sdc1
```

## 参考文档

- <https://yaohuablog.com/zh/BeeGFS%E5%88%86%E5%8C%BA%E5%AF%B9%E9%BD%90%E6%8C%87%E5%8D%97>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## 网络调优

相关文档:

- 网络调优 <https://doc.beegfs.io/7.4.3/advanced_topics/network_tuning.html>
- 网络配置 <https://doc.beegfs.io/7.4.3/advanced_topics/network_configuration.html#networkconfiguration>

## 调优方式

### 多网卡

关注的配置项:

```
connInterfacesFile
connNetFilterFile
```

通过在接口文件中列出高于其他接口的允许接口,还可以为特定接口分配优先级

如果想优先使用 eth1 而不是 eth0,将 eth1 放在第一行,将 eth0 放在第二行

## TCP 调优

- Jumbo Frames(巨型帧)

## ARP

增大 ARP 表大小

```
net.ipv4.neigh.default.gc_thresh1
```

gc_tresh1 值应大于 BeeGFS 使用的所有 IP 的数量

例如:有 200 个客户端,每个客户端有 2 个 IP 地址,以及 10 个服务器,每个服务器有 3 个 IP 地址,则 gc_thresh1 应至少为 `200 * 2 + 10 * 3 = 460`

建议 doulbe gc_thresh2 和 gc_thresh3

例如:

```
gc_thresh1=512
gc_thresh2=1024
gc_thresh3=2048
```

### RMDA

文档详见:

- <https://doc.beegfs.io/7.4.3/advanced_topics/rdma_support.html#rdmasupport>
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
borgbackup 增量备份工具

## 参考文档

- <https://yaohuablog.com/zh/beegfs%E5%AE%9A%E6%9C%9F%E5%A4%87%E4%BB%BD%E5%85%83%E6%95%B0%E6%8D%AE%E5%92%8Cmgmt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
使用 dd 创建一个随机密钥

```bash
dd if=/dev/random of=/etc/beegfs/connauthfile bs=128 count=1
```

修改文件所属者为 root 并只读

```bash
chown root:root /etc/beegfs/connauthfile
chmod 400 /etc/beegfs/connauthfile
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 参考文档

- <https://yaohuablog.com/zh/beegfs%E9%AB%98%E5%8F%AF%E7%94%A8%E6%A8%A1%E5%BC%8F%E6%8E%A2%E8%AE%A8>

using ZFS??

0 comments on commit bd8109b

Please sign in to comment.