mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
docs(block): require removal of same-device nested mounts
This commit is contained in:
1 parent
c24e8b23ae
commit
1e3ef67f07
1 file changed
+3
-2
@@ -953,8 +953,9 @@ two hosts, follow the host-by-host order there. Where SeaweedFS was already runn
|
||||
3. **Remove sw-block.** The removal runs only after the same check succeeds in the same command. A failed query
|
||||
removes nothing. If section 1 put blockmaster's state on its own filesystem, empty and unmount it first, then
|
||||
delete its persistent mount configuration (its `/etc/fstab` line): `rm -rf` cannot remove a mount point, so
|
||||
the removal below would stop there. Unmount any other filesystem mounted below these directories first:
|
||||
`-xdev` and `--one-file-system` make the removal stop at such a mount instead of deleting its contents.
|
||||
the removal below would stop there. Identify and unmount every nested mount below these directories first,
|
||||
including bind mounts on the same device. The `-xdev` and `--one-file-system` flags stop traversal onto a
|
||||
different device; they do not protect same-device bind mounts and do not replace this check.
|
||||
|
||||
```sh
|
||||
units=$(systemctl list-units 'sw-blockvolume*' 'sw-blockmaster*' --state=active,activating,deactivating --no-legend) &&
|
||||
|
||||
Reference in new issue
Block a user