## s017: TiCDC Data Disk 写满 90%, 持续 10 min

1. 进入 TiCDC Pod shell

2. 安装 chaosd 

```shell
export CHAOSD_VERSION=v1.2.0
curl -fsSL -o chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz https://mirrors.chaos-mesh.org/chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz
tar zxvf chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz && sudo mv chaosd-$CHAOSD_VERSION-linux-amd64 /usr/local/
export PATH=/usr/local/chaosd-$CHAOSD_VERSION-linux-amd64:$PATH
```

3. 模拟磁盘写入到 90%

待确认: TiCDC Pod 中使用本地盘, 没有挂载目录, 直接写根目录即可.

```shell
chaosd attack disk fill --percent 90% --path /
# Attack stress cpu successfully, uid: 88aa2b0e-ab64-40b1-8a19-ccef82c02719
```

3. 恢复故障

```shell
chaosd recover 88aa2b0e-ab64-40b1-8a19-ccef82c02719
# Recover 88aa2b0e-ab64-40b1-8a19-ccef82c02719 successfully
```
