- Overview
- Getting Started
- Permissions Management
- Creating and Using an EVS Disk
- Disk Capacity Expansion
- Detaching an EVS Disk
- Attaching an Existing Disk
- Deleting EVS Disks
- Viewing EVS Disk Details
- Managing Encrypted EVS Disks
- Managing Shared EVS Disks
- Managing EVS Backups
- Managing EVS Snapshots
- Managing EVS Transfers
- Managing a Tag
- Changing EVS Disk Name
- Viewing EVS Monitoring Data
- Viewing EVS Monitoring Data (Agent Installed and Simplified Monitoring Metrics Used)
- Auditing
- Managing Quotas
- FAQ
- Appendix
- Change History
Managing Shared EVS Disks
How to Use Shared VBD and SCSI Disks
You can create shared VBD disks or shared SCSI disks. It is recommended that you attach a shared disk to the ECSs in the same ECS group to improve service reliability.
- Shared VBD disks: The device type of a newly created shared disk is VBD by default. Such disks can be used as virtual block storage devices, but do not support SCSI reservations. If SCSI reservations are required for your applications, create shared SCSI EVS disks.
- Shared SCSI disks: Such disks support SCSI reservations.
NOTICE:
- To improve data security, you are advised to use SCSI reservations together with the anti-affinity policy of an ECS group. That said, ensure that shared SCSI disks are only attached to ECSs in the same anti-affinity ECS group.
- If an ECS does not belong to any anti-affinity ECS group, you are advised not to attach shared SCSI disks to this ECS. Otherwise, SCSI reservations may not work properly, which may put your data at risk.
Concepts of the anti-affinity ECS group and SCSI reservations:
- The anti-affinity policy of an ECS group allows ECSs to be created on different physical servers to improve service reliability.
For details about ECS groups, see Managing ECS Groups in the Elastic Cloud Server User Guide.
- The SCSI reservation mechanism uses a SCSI reservation command to perform SCSI reservation operations. If an ECS sends such a command to an EVS disk, the disk is displayed as locked to other ECSs, preventing the data damage that may be caused by simultaneous read/write operations to the disk from multiple ECSs.
- ECS groups and SCSI reservations have the following relationship: A SCSI reservation on a single EVS disk cannot differentiate multiple ECSs on the same physical host. For that reason, if multiple ECSs that use the same shared EVS disk are running on the same physical host, SCSI reservations will not work properly. So you are advised to use SCSI reservations only on ECSs that are in the same ECS group, thus having a working anti-affinity policy.
Attaching a Shared EVS Disk
A non-shared EVS disk can only be attached to one server, whereas a shared EVS disk can be attached to up to 16 servers.
For details, see Attaching a Shared Disk.
Deleting a Shared EVS Disk
Because a shared EVS disk can be attached to multiple servers, ensure that the shared EVS disk is detached from all the servers before deletion.
For details, see Deleting EVS Disks.
Expanding a Shared EVS Disk
Shared EVS disks must be expanded when they are in the Available state. For details, see Expanding Capacity for an In-use EVS Disk.
Related Operations
For more disk sharing FAQs, see Sharing.