Detach and Delete Cloud Block Storage Volumes


Detaching a Cloud Block Storage volume will prevent you from writing to it when you want to take a snapshot. It is also useful when you want to take a volume offline for archival purposes, or to move a volume to another server. A Cloud Block Storage volume must be detached before resizing the server to which it is mounted. You should also detach a volume before you delete it. In all cases, you must unmount the volume before you detach it through the Control Panel. The instructions are below.

On this Page:

Unmount a Volume

There are a few reasons to detach a volume:

  • To prevent writes when you take a snapshot
  • To prevent issues when resizing the server to which it is attached
  • To move it to another Server
  • To delete it

Before you detach a Volume from a Server, you should unmount it to prevent errors.

Unmount Volume from a Linux Server.

Confirm in the Control Panel how the volume is presented to the cloud server.

At your server, use the df -h command to see how it is mounted.

Use the value under Mounted On in the unmount command.

Also, comment out second line (highlighted above) in /etc/fstab to prevent the volume from trying to mount on the next boot.

Input:

# umount /dev/xvdb1/

Output:

The output is the prompt ready for the next command.

#

Unmount a Volume from a Windows Server.

  1. In the Server Manager, Select File and Storage Services > Disks.
  2. Under the Disks window, right-click the Cloud Block Storage Volume. Select Take Offline from the pop-up menu. If the Take Disk Offline warning window displays, click Yes.

The Cloud Block Storage Volume no longer displays as a drive under Computer.

Detach a Volume

In the Rackspace Cloud Control Panel, click Block Storage in the Servers sub-navigation to display the Block Storage Volumes screen.

Click the Actions button (the cog) next to the Volume name. Click the Detach Volume link.

Click the Detach Volume button.

The Volume detaches.
Note: It may take several minutes for your Volume to detach.

 

Delete a Volume

 In the Rackspace Cloud Control Panel, click Block Storage in the Servers sub-navigation to display the Block Storage Volumes screen.

Click the Actions button (the cog) next to the Volume name. Click the Delete Volume link.



Was this content helpful?




© 2014 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER