A virtual disk (VDisk) is a logical disk that the cluster presents to the hosts.
To keep a VDisk accessible even when a managed disk on which it depends has become unavailable, a mirrored copy can be added to a selected VDisk. Each VDisk can have a maximum of two copies. Each VDisk copy is created from a set of extents in an MDisk group.
Application servers on the SAN access VDisks, not managed disks (MDisks).
There are three types of VDisks: striped, sequential, and image.
You can also supply a list of MDisks to use as the stripe set. This list can contain two or more MDisks from the MDisk group. The round-robin procedure is used across the specified stripe set.
Figure 1 shows an example of an MDisk group that contains three MDisks. This figure also shows a striped VDisk copy that is created from the extents that are available in the group.
When you create an image-mode VDisk copy, you must assign it to an MDisk group. An image-mode VDisk copy must be at least one extent in size. The minimum size of an image-mode VDisk copy is the extent size of the MDisk group to which it is assigned.
The extents are managed in the same way as other VDisk copies. When the extents have been created, you can move the data onto other MDisks that are in the group without losing access to the data. After you move one or more extents, the VDisk copy becomes a virtualized disk, and the mode of the MDisk changes from image to managed.
MDisks that contain existing data have an initial mode of unmanaged, and the cluster cannot determine if it contains partitions or data.
You can use more sophisticated extent allocation policies to create VDisk copies. When you create a striped VDisk, you can specify the same MDisk more than once in the list of MDisks that are used as the stripe set. This is useful if you have an MDisk group in which not all the MDisks are of the same capacity. For example, if you have an MDisk group that has two 18 GB MDisks and two 36 GB MDisks, you can create a striped VDisk copy by specifying each of the 36 GB MDisks twice in the stripe set so that two-thirds of the storage is allocated from the 36 GB disks.
If you delete a VDisk, you destroy access to the data that is on the VDisk. The extents that were used in the VDisk are returned to the pool of free extents that is in the MDisk group. The deletion might fail if the VDisk is still mapped to hosts. The deletion might also fail if the VDisk is still part of a FlashCopy®, Metro Mirror or Global Mirror mapping. If the deletion fails, you can specify the force-delete flag to delete both the VDisk and the associated mappings to hosts. Forcing the deletion deletes the Copy Services relationship and mappings.
| State | Description |
|---|---|
| Online | At least one synchronized copy of the VDisk is online and available if both nodes in the I/O group can access the VDisk. A single node can only access a VDisk if it can access all the MDisks in the MDisk group that are associated with the VDisk. |
| Offline | The VDisk is offline and unavailable if both nodes in the I/O group are missing or none of the nodes in the I/O group that are present can access any synchronized copy of the VDisk. The VDisk can also be offline if the VDisk is the secondary of a Metro Mirror or Global Mirror relationship that is not synchronized. A space-efficient VDisk goes offline if a user attempts to write an amount of data that exceeds the available disk space. |
| Degraded | The status of the VDisk is degraded if one node
in the I/O group is online and the other node is either missing or
cannot access any synchronized copy of the VDisk. Note: If you have
a degraded VDisk and all of the associated nodes and MDisks are online,
call the IBM® Support
Center for
assistance.
|
You can select to have read and write operations stored in cache by specifying a cache mode. You must specify the cache mode when you create the VDisk. After the VDisk is created, you cannot change the cache mode.
Table 2 describes the two types of cache modes for a VDisk.