A virtual disk is the portion of disk space on a slot that the system has allocated to a guest. For example, if a guest spans three slots, the system creates three virtual disks for that guest, one per slot. Each virtual disk is implemented as an image file with an .img extension, such as guest_A.img.
You do not explicitly create virtual disks. The vCMP system automatically creates a virtual disk when you set a guest to the Provisioned or Deployed state. However, after you have created and deployed all guests, you can delete virtual disks on the system as a way to optimize disk space.
Using the BIG-IP Configuration utility or the Traffic Management Shell (tmsh), you can delete virtual disks on the system as a way to optimize disk space.
For each slot that you assign to a vCMP guest, the host automatically creates a sparse file to be used as a virtual disk. This amount of disk space can grow to 100 GB, and is not dependent on the number of cores per slot that you configure for that guest. For example, a slot with two cores allocated to guest_A could provide the same amount of available disk space for the guest as a slot with four cores allocated to that guest.
Note that you cannot explicitly create virtual disks; instead, the BIG-IP system creates virtual disks when the guest changes to a Provisioned or Deployed state. You can create a guest that remains in the Configured state, but in this case, the guest has no virtual disk allocated to it.
A virtual disk is in the form of an image that resides in the /shared/vmdisks directory on each physical blade. The default file name that the BIG-IP system initially assigns to a virtual disk is the guest name plus an .img extension (for example, guestA.img). Using the BIG-IP Configuration utility or the Traffic Management Shell (tmsh), you identify and manage virtual disks on the system using these file names.
A virtual disk image for a guest resides on each slot assigned to that guest.
If you need to create multiple guests, you most likely want to minimize the time that the vCMP system needs to create all of the virtual disks. The vCMP system automatically accomplishes this through a feature known as virtual disk templates. A virtual disk template is a virtual disk image that contains a fresh installation of an initial ISO image. Its purpose is to minimize the time that the system uses to create virtual disks on the system.
When you provision a guest on the system, with a specific version of BIG-IP software installed to the relevant blades, the system automatically creates a virtual disk template locally on each blade, pertaining to that ISO image. For example, when you provision a guest on four slots of the cluster, the system creates a template locally on each of the four associated blades. Later, when you create other guests that use the same ISO image, the system instantiates a copy of the virtual disk template to more rapidly create the virtual disks for those guests. The vCMP system creates a separate virtual disk template for each initial image that you initially configure for a guest.
No user intervention is required to use this feature. On the vCMP system, you can view a list of the system-created templates, or you can delete a template, but you cannot explicitly create or modify a template.
You can perform this task to enable or disable the virtual templates feature on any vCMP-enabled system. The virtual templates feature is useful for minimizing the time that the system uses to create virtual disks on the system. By default, the feature is enabled on platforms with solid-state drives. On platforms with spinning drives, the virtual disk templates feature is automatically disabled due to potential stress and latency on spinning drives during guest provisioning. For this reason, F5 Networks recommends that for platforms with spinning drives, you enable virtual disk templates in a test environment only, whenever you need to create multiple guests running the same BIG-IP software version.
|default||When set to default, the
vcmp.installer.use_vdisk_templates enables the
virtual disk templates feature on any vCMP-enabled platforms with
solid-state drives and disables virtual disk templates on any
vCMP-enabled platforms with spinning drives. The default value is
Note: The virtual disk template feature is not supported on the B4200 platform.
|enabled||When set to enabled, the db variable vcmp.installer.use_vdisk_templates enables the virtual disk templates feature on all vCMP-enabled hardware platforms, regardless of drive type.|
|disabled||When set to disabled, the db variable vcmp.installer.use_vdisk_templates disables the virtual disk templates feature on all vCMP-enabled hardware platforms, regardless of drive type.|
You can perform this task to view the current value of the db variable vcmp.installer.use_vdisk_templates.
When a vCMP guest has no virtual disk and moves from the Configured state to the Provisioned state, the system creates a virtual disk and attaches the disk to the guest. This attachment ensures that only that guest can use the virtual disk. A guest can have only one virtual disk attached to it at any one time.
A virtual disk can become unattached from a guest when you perform one of these actions:
With either of these actions, the system retains the virtual disks on the system for future use.
You can attach an existing, unattached virtual disk to a new guest that you create. Attaching an existing virtual disk to a newly-created guest saves the BIG-IP system from having to create a new virtual disk for the guest.
Before you begin this task, ensure that:
It is possible for a virtual disk to become detached from a vCMP guest. A disk that is no longer attached to a guest is known as an unattached virtual disk.
You can attach an unattached virtual disk to another guest either when you create the guest or when you modify the Virtual Disk property of a guest.
Whenever the vCMP system re-assigns a guest to other slots, the system must also migrate the guest's virtual disks to the new slots. This virtual disk migration occurs automatically; you do not need to explicitly manage this migration.
Using the BIG-IP Configuration utility, you can delete a virtual disk from the system.