View and manage storage targets

The storage targets settings page shows information about each storage target for your HPC Cache, and gives options to manage individual storage targets.

Tip

Instructions for listing storage targets using Azure CLI are included in the Add storage targets article. Other actions listed here might not yet be available in Azure CLI.

Screenshot of the Settings > Storage targets page in the Azure portal. There are multiple storage targets in the list, and column headings show Name, Type, State, Provisioning state, Address/Container, and Usage model for each one.

Manage storage targets

You can perform management actions on individual storage targets. These actions supplement the cache-level options discussed in Manage your cache.

These controls can help you recover from an unexpected situation (like an unresponsive storage target), and also give you the ability to override some automatic cache actions (like writing changed files back to the long-term storage system).

Open the Storage targets page in the Azure portal. Click the ... image on the far right of the storage target list to open the list of tasks.

Screenshot of the storage targets page in the Azure portal, with the cursor over the menu exposed by clicking on the three dots (...) symbol to the far right of the storage target's row in the list.

These options are available:

  • Flush - Write all cached changes to the back-end storage
  • Suspend - Temporarily stop the storage target from serving requests
  • Resume - Put a suspended storage target back into service
  • Force remove - Delete a storage target, skipping some safety steps (Force remove can cause data loss)
  • Delete - Permanently remove a storage target

Some storage targets also have a Refresh DNS option on this menu, which updates the storage target IP address from a custom DNS server. This configuration is uncommon.

Read the rest of this article for more detail about these options.

Write cached files to the storage target

The Flush option tells the cache to immediately copy any changed files stored in the cache to the back-end storage system. For example, if your client machines are updating a particular file repeatedly, it is held in the cache for quicker access and not written to the long-term storage system for a period ranging from several minutes to more than an hour.

The Flush action tells the cache to write all files to the storage system.

The cache won't accept requests from clients for files on this storage target until after the flush is complete.

You could use this option to make sure that the back-end storage is populated before doing a backup, or for any situation where you want to make sure the back-end storage has recent updates.

This option mainly applies to usage models that include write caching. Read Understand cache usage models to learn more about read and write caching.

Suspend a storage target

The suspend feature disables client access to a storage target, but doesn't permanently remove the storage target from your cache. You can use this option if you need to disable a back-end storage system for maintenance, repair, or replacement.

Put a suspended storage target back in service

Use Resume to un-suspend a storage target.

Force remove a storage target

Note

This option can cause data loss for the affected storage target.

If a storage target can't be removed with a normal delete action, you can use the Force remove option to delete it from the Azure HPC Cache.

This action skips the step that synchronizes files in the cache with the files in the back-end storage system. There is no guarantee that any changes written to the HPC Cache will be written to the back-end storage system, so changes can be lost if you use this option.

There also is no guarantee that the back-end storage system will be accessible after it is removed from the cache.

Usually, force remove is used only when a storage target has become unresponsive or otherwise is in a bad state. This option lets you remove the bad storage target instead of having to take more drastic action.

Delete a storage target

You can use the Azure portal or the AZ CLI to delete a storage target.

The regular delete option permanently removes the storage target from the HPC Cache, but first it synchronizes the cache contents with the back-end storage system. It's different from the force delete option, which does not synchronize data.

Deleting a storage target removes the storage system's association with this Azure HPC Cache, but it does not change the back-end storage system. For example, if you used an Azure Blob storage container, the container and its contents still exist after you delete it from the cache. You can add the container to a different Azure HPC Cache, re-add it to this cache, or delete it with the Azure portal.

If there is a large amount of changed data stored in the cache, deleting a storage target can take several minutes to complete. Wait for the action to finish to be sure that the data is safely stored in your long-term storage system.

To remove a storage target, open the Storage targets page. Click the '...' next to the storage target and choose Delete from the menu.

Update IP address (custom DNS configurations only)

If your cache uses a non-default DNS configuration, it's possible for your NFS storage target's IP address to change because of back-end DNS changes. If your DNS server changes the back-end storage system's IP address, Azure HPC Cache can lose access to the storage system.

Ideally, you should work with the manager of your cache's custom DNS system to plan for any updates, because these changes make storage unavailable.

If you need to update a storage target's DNS-provided IP address, use the Storage targets page. Click the ... symbol in the right column to open the context menu. Choose Refresh DNS to query the custom DNS server for a new IP address.

Screenshot of storage target list. For one storage target, the "..." menu in the far right column is open and these options appear: Flush, Suspend, Refresh DNS, Force remove, Resume (this option is disabled), and Delete.

If successful, the update should take less than two minutes. You can only refresh one storage target at a time; wait for the previous operation to complete before trying another.

Understand storage target state

The storage target list shows two types of status: State and Provisioning state.

  • State indicates the operational state of the storage target. This value updates regularly and helps you understand whether or not the storage target is available for client requests, and also which of the management options are available.
  • Provisioning state tells you whether the last action to add or edit the storage target was successful. This value is only updated if you edit the storage target.

The State value affects which management options you can use. Here is a short explanation of the values and their effects.

  • Ready - The storage target is operating normally and available to clients. You can use any of the management options on this storage target (except for Resume, which only is valid for suspended storage targets).
  • Busy - The storage target is processing another operation. You can delete or force remove the storage target.
  • Suspended - The storage target has been taken offline. You can still flush, delete, or force remove this storage target. Choose Resume to put the target back in service.
  • Flushing - The storage target is writing data to the back-end storage. The target can't process client requests while flushing, but it will automatically go back to its previous state after it finishes writing data.

Next steps