diff --git a/seaweed-block/docs/operations-manual.md b/seaweed-block/docs/operations-manual.md index 05564ec98c..f3599ad789 100644 --- a/seaweed-block/docs/operations-manual.md +++ b/seaweed-block/docs/operations-manual.md @@ -923,15 +923,16 @@ Then start blockmaster as in section 2. Check `cluster format-level` and `ops wo ### Start the holder and guest on A `volume start` writes the instance settings but has no flags for the holder's mTLS credentials. Before its first -start, on **both** hosts add those flags to a per-instance systemd override. Run this from the release repository -installed in section 1; it copies the shipped `ExecStart` unchanged except for appending the three TLS flags. -The settings file's `--layout-id` and other extra arguments remain in use: +start, on **both** hosts add those flags to a per-instance systemd override. The root shell from `sudo -i` +starts in root's home, so this block reads the installed template by its absolute path. It copies the shipped +`ExecStart` unchanged except for appending the three TLS flags. The settings file's `--layout-id` and other extra +arguments remain in use: ```sh mkdir -p /etc/systemd/system/sw-blockvolume@v1.service.d -test "$(grep -c '^ \$SWB_VOLUME_EXTRA_ARGS$' deploy/systemd/sw-blockvolume@.service)" = 1 && +test "$(grep -c '^ \$SWB_VOLUME_EXTRA_ARGS$' /etc/systemd/system/sw-blockvolume@.service)" = 1 && { printf '[Service]\nExecStart=\n'; - sed -n '/^ExecStart=/,/^ \$SWB_VOLUME_EXTRA_ARGS$/p' deploy/systemd/sw-blockvolume@.service | + sed -n '/^ExecStart=/,/^ \$SWB_VOLUME_EXTRA_ARGS$/p' /etc/systemd/system/sw-blockvolume@.service | sed 's|^ \$SWB_VOLUME_EXTRA_ARGS$| $SWB_VOLUME_EXTRA_ARGS --master-tls-cert /etc/sw-block/tls/node.crt --master-tls-key /etc/sw-block/tls/node.key --master-ca /etc/sw-block/tls/ca.crt|'; } > /etc/systemd/system/sw-blockvolume@v1.service.d/master-tls.conf systemctl daemon-reload