Introduction
A volume instance provides key services to the edge nodes, such as storing the applications, storing data generated by the apps, and enabling apps on the same node to share data with each other. This article explains how to manage volume instances using the ZEDEDA CLI, including creating, viewing, updating, and deleting them.
Prerequisites
This is a series of articles. You will likely follow them in this order.
- Volume Instance Overview
- Create a Volume Instance
- Manage a Volume Instance
- Use the ZEDEDA CLI to Manage a Volume Instance - You are here!
Create a Volume Instance
Create a volume instance from the ZCLI.
zcli volume-instance create <name> --volume-type=<volume-type> --project=<project> (--edge-node=<edge-node> | --edge-node-cluster=<edge-node-cluster>) --size=<size> --access-mode=<access-mode> [--content-tree=<name>] [--label=<label>] [--image=<image>] [--title=<title>] [--description=<description>]
zcli volume-instance create MY-VOL-INST --volume-type=CONTENT_TREE --project=MY-PROJECT --edge-node=MY-EDGE-NODE --size=100 --access-mode=READWRITE
zcli volume-instance create MY-VOL-INST --volume-type=CONTENT_TREE --project=MY-PROJECT --edge-node-cluster=MY-CLUSTER --size=100 --access-mode=READWRITE
View a Volume Instance
After you create volume instances, you can view them.
zcli volume-instance show [[[<name> | --uuid=<uuid>] [--detail]] | [[--name-pattern=<name-pattern>] [--summary] [--page-size=<page-size>] [--project=<project> [--edge-node=<edge-node> | --edge-node-cluster=<edge-node-cluster>]]]]
For example, the show command for volume instances displays the following output:
zcli volume-instance show
zcli volume-instance show --edge-node=MY-NODE
zcli volume-instance show --edge-node-cluster
Update a Volume Instance
After you create a volume instance, you can update it whenever things change.
zcli volume-instance update <name> [--title=<title>] [--description=<description>]
zcli volume-instance update MY-VOL-INST --title=MY-NEW-VOL-INST-TITLE
Delete a Volume Instance
After you add a volume instance, you can delete it if you no longer need it. If you don’t use the
-f option, you’ll be prompted to confirm.
zcli volume-instance delete <name> [-f]
zcli volume-instance delete MY-VOL-INST -f
Next Steps
This is a series of articles. You will likely follow them in this order.
- Volume Instance Overview
- Create a Volume Instance
- Manage a Volume Instance
- Use the ZEDEDA CLI to Manage a Volume Instance - You are here!
After you’ve completed the series, you might be interested in the following articles.