Attaching volumes between different machines
In previous post How to create snapshots in BCOS? We learned how to create snapshots on instances.
In the post How to apply volumes to instances in BCOS?, we learned what volumes are and their application in the BCOS environment, now we will look at how to disassociate a volume from one instance and associate it with another machine.
Access the machine console with the volume attached, acquire superuser permission, unmount the volume, and list the mount point to see how the command works:
Example:
Super user permission: sudo -i
Unmount volume: umount /mnt
List mount point: df -h
In Project / Compute / Instance on the instance actions button select Disconnect Volume, select the volume and confirm by clicking in Disconnect Volume again, then confirm the disconnect:
In the VM03 action button select Attach Volume, Select Volume and confirm by clicking in Attach Volume again:
Note: Follow the volume mounting steps in How to apply volumes to instances in BCOS? to learn how to mount the volume on the new attached machine.
The volume that was attached to VM01 is now available on VM03.
In the next post, How to access instances through key pairs in BCOS?, we will learn how to login by key pairs with SSH.