Storage Device Configuration and Management

Swift Drives

For more information on how to manage capacity, see: Planning and Managing Capacity

Note

Changes to the drives take place immediately and further changes will not be possible until the current change finishes.

Add a Drive

Example Cases:

  • Adding capacity to a cluster
  • Replacing a previously removed drives

Unmanaged Drives

On the Swift Drives page, drives that are not yet being used for Swift appear in the Unmanaged Drives list. Each drive's status will be either Ignored or Available. Drives are Ignored automatically when they are already mounted (like the drive the OS is installed on). If you are sure you want to use the drive for Swift anyway, then select the drive and click Unignore. Likewise, drives you do not want to be used may be selected and the Ignore button clicked.

Format the drive(s)

Select one or more drives from the Unamaged Drives list using their checkboxes or the all/none control. Click Format.

../../_images/format-drives.png

When the operation has finished, the drive(s) will appear in the Manage Swift Drives list.

If the format operation fails, a Format Devices Failed alert will appear on the Alerts page.

Add Policies to the drive(s)

Select the drive(s) to which you wish to add policies. You may select individual drives using their checkbox or a category of drives grouped by status or policy participation.

Click the Add or Remove Policies button to open the policy selection modal.

../../_images/manage-swift-drives.png

Select the policies which you would like the previously-selected drives to participate in. Click the Add Policies button.

../../_images/add-drives-to-policies.png

Node Drive Management

Remove a Drive

Example Cases:

  • A drive has failed and need to be replaced
  • A drive is causing issues and needs to be replaced
  • A drive is replaced by a larger drive to increase cluster capacity
Remove the drive from the policies

On the Swift Drives page, locate the drive in the Manage Drives list. Selecting multiple drives by state Missing or Failed may be appropriate depending on your circumstance.

Click the Add or Remove Policies button to open the policy selection modal.

../../_images/remove-failed-drive.png

If the drive is being decommissioned, ensure that all of the policies are selected. Click the Remove Policies button.

../../_images/remove-drives-from-policies.png
Unmount the drive

Once the modal has closed, select the drive(s) again and click Unmount.

../../_images/unmount-failed-drive.png

Note

Once the drive has been physically removed from the node, there will be an option to Delete a Missing Drive.

Identifying device in the data center

Clean Up a Drive

After removing a drive from a node, if you later want to re-use the drive in the cluster, you should ensure that the data on the drive is removed so that it looks like a new drive to Swift.

  • Log in to Node.

    Perform these commands on the node containing the drive to be cleaned up.

  • Unmount the drive.

    $ sudo umount /srv/node/d3

  • Format the drive.

    $ sudo mkfs.xfs –f –i size=256 /dev/sde

The drive should now be ready to take into use again, as if it was a brand new drive.

Change Policies on a Drive

Example Cases:

See Removing Capacity for more information.

In this use case, drives are assumed to already be formatted and mounted. If they are not, use the procedure for Add a Drive.

Select the drive(s) for which you wish to modify the policies. You may select individual drives using their checkbox or a category of drives grouped by status or policy participation.

Click the Add or Remove Policies button to open the policy selection modal.

Select a Policy Group, click Set Policies. Whatever policies need to be removed will be removed, and whatever policies need to be added will be added to bring these drives in-line with the other drives using this group of policies.

../../_images/set-policies.png

Remount an Unmounted Drive

Unmounted drives will show up with an grey background in the Manage Swift Drives list, and an Missing device alert will be raised.

Select the unmounted drive(s) by checking Unmounted in the Select Devices by State list. Click the Mount button.

../../_images/remount-unmounted-drive.png

Delete a Missing Drive

Example Cases:

  • Drive has been physically removed from the server.

Missing drives will show up with a red background in the Manage Swift Drives list, and an Missing device alert will be raised.

Select the failed drive(s) by checking Failed in the Select Devices by State list. Click the Delete button.

../../_images/delete-missing-drive.png

Note

The Delete button will only appear when there are missing drives. Only missing drives may be deleted.