Primary Storage Operations

Primary Storage Page

In the navigation pane of the ZStack Private Cloud UI, choose Hardware > Primary Storage. Then, the Primary Storage page is displayed.

As shown in Primary Storage Page.
Figure 1. Primary Storage Page


On the Primary Storage page, check the information of all primary storages, including names of primary storages, storage types, URLs, capacities of primary storages, states, and statuses. In addition, you can add, enable, and disable one or more primary storages.

Primary Storage Operations

You can perform the following operations on a primary storage:
  • Search: Support three types of search method on the primary storage page: name, UUID, and advanced.
  • Add a primary storage: Add a primary storage to the cloud. Each primary storage has its own corresponding primary storage type. When you select different primary storage types, the Add Primary Storage page is a bit different. This chapter will introduce all these differences according to the types.
  • Enable: Enable the primary storage that is in the disabled state. Batch operations are supported.
  • Disable: Disable the primary storage. After you disable the primary storage, you cannot create new VM instances, volumes, and snapshots by using the primary storage. Original resources are not affected. Batch operations are supported.
  • Reconnect: Reconnect the primary storage. When you reconnect the primary storage, the storage information that is associated with the primary storage will be updated. Batch operations are supported.
    Note: If any one of hosts can connect normally to the primary storage, the status of the primary storage will be Connected.
  • Create volume: Create a volume on the primary storage. Then, this volume will be an instantiated volume. Only a single operation is supported.
    Note: Shared volumes currently support two types of primary storage: Ceph and Shared Block.
  • Attach cluster: Attach the primary storage to the specified cluster. One cluster can attach multiple storages.
    The following are primary storages of the same type that a cluster can have:
    • A cluster can have one or more LocalStorage primary storages attached.
    • A cluster can have one or more NFS primary storages attached.
    • A cluster can have one or more Shared Block primary storages attached.
    • A cluster can have one Shared Mount Point primary storages attached.
    • A cluster can have only one Ceph primary storage attached.
    The following are combinations of primary storages that a cluster can have:
    • A cluster can have both a LocalStorage and an NFS primary storage attached.
    • A cluster can have both a LocalStorage and a Shared Mount Point primary storage attached.
    • A cluster can have both a LocalStorage and a Shared Block primary storage attached.
    • A cluster can have both a Ceph and a Shared Block primary storage attached.
    • A cluster can have both a Ceph and more than one Shared Block primary storage attached.
  • Detach cluster: Detach the primary storage from the specified cluster.
    Note: If you detach a primary storage from a cluster, note that:
    • All VM instances on the primary storage will be stopped.
    • All vRouters or VPC vRouters on the primary storage will be deleted. In this regard, the network services of related VM instances will be abnormal.
    • All volumes on the primary storage cannot be used normally.
  • Enter maintenance mode: After the primary storage enters the maintenance mode, all VM instances (including NeverStop) that use the primary storage will be stopped. Batch operations are supported.
  • Delete: Delete the primary storage. Batch operations are supported.
    Note:
    • Before you perform this deleting operation, verify that you detach the primary storage from all clusters.
    • Deleting the primary storage is a very dangerous operation. If you perform this operation, all resources on the primary storage will be deleted, such as VM instances, volumes, and snapshots. Even if you add this primary storage again, the original files cannot be automatically detected.
  • Clean up: Clean up original data (trashes) reserved during the migrations across Ceph primary storages, the migrations across NFS primary storages, and the migrations across Shared Block primary storages. On the Clear Data tab, click Clean UP to clean up trashes reserved during the storage migrations. Exercise caution. After you clean up the trashes successfully, the trashes cannot be recovered.