cc_staff
172
edits
No edit summary |
No edit summary |
||
Line 71: | Line 71: | ||
Finally, click the blue "Create Volume" button. | Finally, click the blue "Create Volume" button. | ||
== | ==Mounting a Volume to a VM== <!--T:14--> | ||
[[File:Manage_attachments_EN.png|400px|thumb| Managing attachments command in Actions menu (Click for larger image)]] | [[File:Manage_attachments_EN.png|400px|thumb| Managing attachments command in Actions menu (Click for larger image)]] | ||
To | To prepare the volume you must first '''attach''' it to a running VM. This is analogous to inserting a USB key or plugging an external drive into your personal computer. You can attach a volume from the Volumes page. | ||
* At the right-hand end of the line describing the volume is the Actions column; from the drop-down menu, select "Manage Attachments." | * At the right-hand end of the line describing the volume is the Actions column; from the drop-down menu, select "Manage Attachments." | ||
* In the "Attach To Instance" drop-down menu, select a VM. | * In the "Attach To Instance" drop-down menu, select a VM. | ||
* Click the blue "Attach Volume" button. | * Click the blue "Attach Volume" button. | ||
Attaching should complete in a few seconds. Then the Volumes page will show the newly created volume attached to your selected VM on <code>/dev/vdb</code> or some similar location. | |||
In order to access the volume, it must be mounted. This is the process of mapping the volume's directory and file structure logically within the VM's directory and file structure. | |||
* To mount the volume, use a command similar to <code>mount /dev/vdb /mnt</code> depending on the device name and the desired mount point in your filesystem. | * To mount the volume, use a command similar to <code>mount /dev/vdb /mnt</code> depending on the device name and the desired mount point in your filesystem. | ||
This command makes the volume's directory and file structure available under the VM's /mnt directory. | |||
==Formatting and Mounting an Empty Volume== <!--T:15--> | ==Formatting and Mounting an Empty Volume== <!--T:15--> |