Skip to content

Commit

Permalink
docs: fix refactored polar-initdb.sh params
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck committed Oct 18, 2024
1 parent f5961b3 commit 71f39e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions polar-doc/docs/deploying/db-pfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ initdb -D $HOME/primary
# 使用 pfs 创建共享数据目录
sudo pfs -C disk mkdir /nvme1n1/shared_data
# 初始化 db 的本地和共享数据目录
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
```

编辑 Primary 节点的配置。打开 `~/primary/postgresql.conf`,增加配置项:
Expand Down Expand Up @@ -86,7 +86,7 @@ psql -p 5432 -d postgres \

```shell:no-line-numbers
mkdir -m 0700 $HOME/replica1
sudo polar-initdb.sh /nvme1n1/shared_data/ $HOME/replica1/
sudo polar-initdb.sh $HOME/replica1/ /nvme1n1/shared_data/ replica
initdb -D /tmp/replica1
cp /tmp/replica1/*.conf $HOME/replica1/
Expand Down
4 changes: 2 additions & 2 deletions polar-doc/docs/operation/scale-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ initdb -D $HOME/primary

```shell:no-line-numbers
sudo pfs -C disk mkdir /nvme1n1/shared_data
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
```

### 编辑 Primary 节点配置
Expand Down Expand Up @@ -200,7 +200,7 @@ sudo /usr/local/polarstore/pfsd/bin/start_pfsd.sh -p nvme1n1 -w 4

```shell:no-line-numbers
mkdir -m 0700 $HOME/replica1
sudo polar-initdb.sh /nvme1n1/shared_data/ $HOME/replica1/
sudo polar-initdb.sh $HOME/replica1/ /nvme1n1/shared_data/ replica
initdb -D /tmp/replica1
cp /tmp/replica1/*.conf $HOME/replica1/
Expand Down
4 changes: 2 additions & 2 deletions polar-doc/docs/zh/deploying/db-pfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ initdb -D $HOME/primary
# 使用 pfs 创建共享数据目录
sudo pfs -C disk mkdir /nvme1n1/shared_data
# 初始化 db 的本地和共享数据目录
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
```

编辑 Primary 节点的配置。打开 `~/primary/postgresql.conf`,增加配置项:
Expand Down Expand Up @@ -86,7 +86,7 @@ psql -p 5432 -d postgres \

```shell:no-line-numbers
mkdir -m 0700 $HOME/replica1
sudo polar-initdb.sh /nvme1n1/shared_data/ $HOME/replica1/
sudo polar-initdb.sh $HOME/replica1/ /nvme1n1/shared_data/ replica
initdb -D /tmp/replica1
cp /tmp/replica1/*.conf $HOME/replica1/
Expand Down
4 changes: 2 additions & 2 deletions polar-doc/docs/zh/operation/scale-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ initdb -D $HOME/primary

```shell:no-line-numbers
sudo pfs -C disk mkdir /nvme1n1/shared_data
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
```

### 编辑 Primary 节点配置
Expand Down Expand Up @@ -200,7 +200,7 @@ sudo /usr/local/polarstore/pfsd/bin/start_pfsd.sh -p nvme1n1 -w 4

```shell:no-line-numbers
mkdir -m 0700 $HOME/replica1
sudo polar-initdb.sh /nvme1n1/shared_data/ $HOME/replica1/
sudo polar-initdb.sh $HOME/replica1/ /nvme1n1/shared_data/ replica
initdb -D /tmp/replica1
cp /tmp/replica1/*.conf $HOME/replica1/
Expand Down

0 comments on commit 71f39e5

Please sign in to comment.