未验证 提交 91e11faf 编写于 作者: C Cary Xu 提交者: GitHub

Update index.md

上级 d5b904e4
......@@ -315,39 +315,6 @@ The charset that takes effect is UTF-8.
| Meaning | All data files are stored in this directory |
| Default Value | /var/lib/taos |
:::info
`The official version` supports multi-tier storage (need to cooperate with [KEEP parameter](https://docs.tdengine.com/taos-sql/database/#create-a-database)). The configuration method is as follows.
The multi-tier storage directory is configured through `dataDir`, the format is:
`dataDir [path] <level> <primary>`
dataDir: Configuration items in the configuration file (`taos.cfg`)
path: the directory to mount (cannot be omitted)
level: mount level, the value is 0, 1 or 2, if omitted, the default is 0. Up to 3 levels are supported, and each level supports up to 16 mount points, so a maximum of 48 mount points are supported.
primary: whether it is the primary mount point, 0 (no) or 1 (yes), the default is 1. The primary mount point is only allowed at level 0, and only one primary mount point is allowed (level=0, primary=1).
Here is a normal configuration (3 storage tiers, each with 3 mount points):
```
dataDir /mnt/data01 0 1
dataDir /mnt/data02 0 0
dataDir /mnt/data03 0 0
dataDir /mnt/data10 1 0
dataDir /mnt/data11 1 0
dataDir /mnt/data12 1 0
dataDir /mnt/data20 2 0
dataDir /mnt/data21 2 0
dataDir /mnt/data22 2 0
```
`The community version` does not support multi-tier storage, and the following three configurations are all normal:
```
dataDir /var/lib/taos
or dataDir /var/lib/taos 0
or dataDir /var/lib/taos 0 1
```
:::
### tempDir
| Attribute | Description |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册