Datastore Operations
This section details the current command set for working with datastores using the LBAVS tool, including:
- Creating a Datastore
- Deleting a Datastore
- Unmounting a Datastore
- Mounting a Datastore
- Rescanning a Datastore
- Listing Datastores
- Expand Datastore
For a video tutorial, please see the section Chapter 7: Creating a Datastore and vMotioning an Azure VM in AVS in the AVS video series.
Creating a Datastore
To create a datastore, run the following command:
lbavs datastore create -n ${DATASTORE_NAME} -v ${SDDC_CLUSTER_NAME} -s ${SIZE} -r ${REPLICA_COUNT} -c ${COMPRESSION} -f ${FAILURE_DOMAIN}
Example:
lbavs datastore create -n lbds01 -v Cluster-1 -s 1TiB -r 3 -c true
A datastore will be created and LBAVS will output something similar to the below example:

Deleting a Datastore
To delete a datastore, run the following command:
lbavs datastore delete -n ${DATASTORE_NAME} -v ${SDDC_CLUSTER_NAME}
Example:
lbavs datastore delete -n lbds01 -v Cluster-1
Unmounting a Datastore
To unmount a datastore from all ESXi hosts, run the following command:
lbavs datastore unmount -n ${DATASTORE_NAME} -v ${SDDC_CLUSTER_NAME}
Example:
lbavs datastore unmount -n lbds01 -v Cluster-1
Mounting a Datastore
To mount a Lightbits volume with a VMFS filesystem as a datastore to all ESXi hosts, run the following command:
lbavs datastore mount -n ${DATASTORE_NAME} -v ${SDDC_CLUSTER_NAME}
Example:
lbavs datastore mount -n lbds01 -v Cluster-1
Rescanning all Datastores
To rescan a Lightbits datastore on all ESXi hosts, run the following command:
lbavs datastore rescan -v ${SDDC_CLUSTER_NAME}
Example:
lbavs datastore rescan -v Cluster-1
Listing Datastores
To list all Lightbits datastores, run the following command:
lbavs datastore list -v ${SDDC_CLUSTER_NAME}
Example:
lbavs datastore list -v Cluster-1
Expanding Datastores
lbavs datastore resize -v ${SDDC_CLUSTER_NAME} -n ${DATASTORE_NAME} -s ${NEW_SIZE}
Example:
lbavs datastore resize -n lbds01 -v Cluster-1 -s 2TiB