Prerequisites
- The
spriteCLI, signed in withsprite login. - An Archil disk in the Archil region of your choice.
disk CLI. The output includes the disk ID and a one-time mount token, which grants access to this disk only:
Mount the disk in a Sprite
Create a Sprite and install thearchil client in it:
archil-mount.sh. It mounts the disk at /mnt/archil, gives the sprite user ownership of it, and unmounts when the service is stopped:
archil-mount.sh
Successfully mounted. Write a file to the disk:
Share the disk between Sprites
Create a second Sprite and repeat the same steps:How the disk behaves in a Sprite
The mount uses conditional mode. With--conditional, every Sprite can read and write anywhere on the disk at the same time, and none of them holds a lock that another Sprite has to wait for. See Sharing disks.
Pauses need no special handling. When a Sprite pauses warm, the mount is suspended with it and the client reconnects on wake. When a Sprite boots cold, its runtime starts the archil service again, which mounts the disk before you use it.
Stop the service to unmount. sprite-env services stop archil unmounts the disk and keeps it unmounted until you run sprite-env services start archil.
Clean up
Destroy the Sprites and delete the disk once you no longer need them:Next steps
- TypeScript SDK: read, write, and search the disk without mounting it.
- Sharing disks: how conditional mode and checkouts work.
archilCLI reference: everyarchil mountoption.