Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 41

How to manage storage volumes for attaching to VMs and VMs created and running on storage volumes in the hybrid cloud platform.

Manage persistent volumes

In private cloud datacenters and public cloud regions, depending on your environment, you can work with virtual storage in the form of volumes and hard disks.

Privileges: Manage virtual storage elements, Manage virtual storage controller, Modify allocation when attaching a disk

Volumes on external storage devices are persistent and independent of the VMs. In contrast, hard disks on the hypervisor datastore are non-persistent and they are destroyed when deleted from the VMs or when the VMs are undeployed. This section covers volumes.

Display persistent storage

To display external storage volumes, go to Virtual datacenters → Volumes

Create a volume of managed storage

API Documentation

For the Abiquo API documentation of this feature, see Abiquo API Resources and the page for this resource VolumesResource.


To create a new volume of integrated storage, select the virtual datacenter, click the  button and complete the form:

Create volume

Field

Description

Virtual datacenter

The Virtual datacenter where the volume will be created

Name

The name of the volume

Description

A description of the volume

Total size

Select the maximum size of the volume

Tier

The Tier (service level) of the volume

Controller type

Select from the list of supported controller types: IDE, SCSI, SATA (ESXi), VIRTIO (KVM). The administrator can configure a default controller:

  • On ESXI, the platform default is IDE

  • On all other hypervisors, the platform default is SCSI

Controller

On ESXi only. The user can create multiple SCSI controllers and more than one of each type.

The Default value is: VirtualLsiLogicController or the controller defined by the system administrator. This controller is used if a virtual machine is deployed with no SCSI controller or SCSI disks.

The user can enter text in the Controller field and these controllers would be created depending on if the text contains:

  • "paravirtual": ParaVirtualSCSIController

  • "bus": VirtualBusLogicController

  • "sas": VirtualLsiLogicSASController

  • none of the above: VirtualLsiLogicController


After you create the volume, to attach it to a VM, edit the VM and go to the Storage tab. See VM storage

For information about creating generic iSCSI volumes, see Creating a Generic iSCSI Volume

Modify a volume

To edit a volume, select the volume and click the edit button. For managed storage volumes, you can modify the Controller type, and on ESXi you can also modify the Controller.

Edit volume

Resize a storage volume

 You can only increase volume size of managed storage volumes, not generic iSCSI storage volumes. After you change the size, remember to enlarge the partitions and file system.

Resize iSCSI volumes on VMware

On ESXi hypervisors to resize disks you must have iSCSI disks on SCSI controllers with thin provisioning. See VMware knowledge base article. The VM must not have VMware snapshots.  VMware snapshots may be part of your cloud provider's backup strategy. If you cannot resize a volume as expected, please contact your System Administrator.

Integrated storage volumes can be resized but only to increase their size. Abiquo does not allow you to make a volume smaller, so as to prevent data loss. This might be because you need additional space on a hard disk, for example, to add service packs/hotfixes, logs, increased swap disk space or temporary system disk space, or for growing installed applications. To resize a volume, first  power off  the VM the volume is attached to.

Using expanded disks

Expanding a disk can damage the data or operating system installed on the disk. You may need to apply additional operating system tools or processes before you can use an expanded disk, for example, resizing partitions and filesystems.

After resizing a disk, remember to resize the partitions and filesystems. For example, with the Linux ext3 filesystem, you can execute the following commands when logged into a shell on the VM:

 $ umount /dev/xxx (/dev/xxx is the partition of the resized volume, inside the VM)
 $ parted /dev/xxx
 # resize Y start end (Y is the partition number, and start/end of the partition varies in each case)
 $ resize2fs /dev/sdx

Move volumes between virtual datacenters

Both managed storage and generic iSCSI volumes can be moved between virtual datacenters, but only if the volumes are not attached to a VM. Volumes can be moved between virtual datacenters that belong to the same physical datacenter and enterprise.

To change the virtual datacenter of a volume,

  1. Go to Virtual datacentersStorage 

  2. Drag the volume into the new virtual datacenter in the V. Datacenters list 

  3. Click Confirm on the popup to complete the move.

 Click here to show/hide the screenshot
Create volume

Delete a volume

Notes about deleting volumes:

  • You can only delete or remove volumes that are NOT attached to a VM. 

  • You cannot delete persistent template volumes if they are used in a virtual appliance. 

  • When you delete a an Integrated storage volume, it will be deleted in the disk cabinet and the data on the volume will be destroyed. 

  • When you delete a generic iSCSI volume, it will be removed from Abiquo (without deleting it in the disk cabinet).

If you are working with volumes on VMware hypervisors, do not use the option "delete from disk" because the volume may be destroyed.

To delete a volume:

  1. Select the volume 

  2. Click the trash delete button.

Persistent volumes

What happens when I create a volume and attach it to a VM?

What happens when I create a volume and attach it to a VM

Related pages

  • No labels