Commit ca4fa842 authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Mention detach_on_shutdown in README

parent 1a8b4123
......@@ -50,8 +50,11 @@ Because of this, the driver needs to keep some state so that it knows which
disks are already attached, and can connect the ID of the PV as used by
Kubernetes to the Cosmos ID of the underlying disk.
This state is kept on the node as a set of files and symlinks in
`/run/ghost`:
This state is stored on the node in `/run/ghost`. That is assumed to be a tmpfs
mount, cleared on every reboot. We pass a special `detach_on_shutdown` flag to
Cosmos2 when attaching ghost disks, so Cosmos2 will detach these disks when the
node shuts down, so it starts without any ghost disks attached, matching the
empty state in `/run/ghost`. Details of the state recorded:
* for every disk, a file is kept in `/run/ghost/disks/$cosmosID` containing
a log of activity pertaining to that disk;
* for every PV that is attached, a symlink is created in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment