Anexação de um disco compartilhado existente
Cenários
Esta seção descreve como anexar um disco compartilhado existente a um servidor e usá-lo como um disco de dados.
- Compartilhamento de disco: habilitado
- Função: disco de dados
- Estado: em uso ou disponível
Constraints
- A shared disk can be attached to a maximum of 16 ECS. These ECSs and the shared disk must be in the same AZ within a region.
ECS To share files between ECS, set up a shared file system or a clustered management system first.
- If a shared disk is in the In-use state, ensure that the maximum number of ECSs that the disk can be attached to has not been reached.
- All the ECS of a shared disk must run either Windows or Linux no matter the disk is attached to them in a batch or individually.
For example, if you attach a shared disk to multiple Windows ECS in a batch and then detach it from all its ECS, the disk cannot be attached to Linux ECS later. This is because Windows and Linux support different file systems and cannot identify the original file system on the disk. Improper operations may damage the original file system.
- A shared disk can only be used as a data disk. It cannot be used as a system disk.
Procedimento
- Log in to the management console.
- Em Storage, clique em Elastic Volume Service.
A página da lista de discos é exibida.
- Localize o disco de destino na lista e clique em Attach.
- Discos compartilhados suportam anexo em lote para que você possa anexar um disco compartilhado a vários ECSs. A área esquerda da caixa de diálogo Attach Disk mostra a lista do ECS. Depois de selecionar o ECS de destino, o ECS selecionado será exibido na área à direita.
- Um disco compartilhado pode ser anexado ao ECS somente quando o status do disco for Available ou In-use.
- Select the target ECS and then select a device name from the drop-down list for each server you selected. Ensure that the disk and servers are in the same AZ.
One device name can be attached with one disk only. If a device name has been used, it will no longer be displayed in the drop-down list and cannot be selected.
Figura 1 Attach Disk
- Click OK to return to the disk list page. The status of the disk is Attaching, indicating that the disk is being attached to the servers. When the disk status changes to In-use, the disk is successfully attached.
Operações relacionadas
If your disk cannot be attached to a server, see Why Can't My Disk Be Attached?
Para obter mais perguntas frequentes sobre anexação, consulte Anexação.