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:

Bash
Copy

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:

Bash
Copy

Example:

lbavs datastore delete -n lbds01 -v Cluster-1

Unmounting a Datastore

To unmount a datastore from all ESXi hosts, run the following command:

Bash
Copy

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:

Bash
Copy

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:

Bash
Copy

Example:

lbavs datastore rescan -v Cluster-1

Listing Datastores

To list all Lightbits datastores, run the following command:

Bash
Copy

Example:

lbavs datastore list -v Cluster-1

Expanding Datastores

Bash
Copy

Example:

lbavs datastore resize -n lbds01 -v Cluster-1 -s 2TiB

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard