diff --git a/polar-doc/docs/deploying/db-pfs.md b/polar-doc/docs/deploying/db-pfs.md index ac1ef59aafb..6f93b987817 100644 --- a/polar-doc/docs/deploying/db-pfs.md +++ b/polar-doc/docs/deploying/db-pfs.md @@ -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`,增加配置项: @@ -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/ diff --git a/polar-doc/docs/operation/scale-out.md b/polar-doc/docs/operation/scale-out.md index 8d5b3fa3af4..a946a5405c0 100644 --- a/polar-doc/docs/operation/scale-out.md +++ b/polar-doc/docs/operation/scale-out.md @@ -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 节点配置 @@ -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/ diff --git a/polar-doc/docs/zh/deploying/db-pfs.md b/polar-doc/docs/zh/deploying/db-pfs.md index ac1ef59aafb..6f93b987817 100644 --- a/polar-doc/docs/zh/deploying/db-pfs.md +++ b/polar-doc/docs/zh/deploying/db-pfs.md @@ -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`,增加配置项: @@ -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/ diff --git a/polar-doc/docs/zh/operation/scale-out.md b/polar-doc/docs/zh/operation/scale-out.md index 8d5b3fa3af4..a946a5405c0 100644 --- a/polar-doc/docs/zh/operation/scale-out.md +++ b/polar-doc/docs/zh/operation/scale-out.md @@ -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 节点配置 @@ -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/