Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:services:server_services:gwdg_cloud_server:volumes_manual [2021/05/20 08:48]
ssadegh [Manage an existing volume]
en:services:server_services:gwdg_cloud_server:volumes_manual [2021/08/09 16:51] (current)
ssadegh [Manage an existing volume]
Line 3: Line 3:
 This manual provide a quick help on how to create, delete, attach and detach your volume using [[https://cloud.gwdg.de/horizon/project/volumes/| Volumes Dashboard]]. This manual provide a quick help on how to create, delete, attach and detach your volume using [[https://cloud.gwdg.de/horizon/project/volumes/| Volumes Dashboard]].
  
 +**To login:** \\
 +Authenticate using: Keystone Credentials \\
 +Domain: gwdg \\
 +User Name: your academic email (e.g. myname@gwdg.de) \\
 +Password: your Password \\
 ===== Create a new volume ===== ===== Create a new volume =====
 In GWDG horizon dashboard, you can create a volume (block storage) by following these steps: In GWDG horizon dashboard, you can create a volume (block storage) by following these steps:
Line 15: Line 20:
   * Description: Optionally, provide a brief description for the volume.   * Description: Optionally, provide a brief description for the volume.
   * Volume Source: Select "No source, empty volume" unless you want to create the volume as a copy of an existing volume or image.   * Volume Source: Select "No source, empty volume" unless you want to create the volume as a copy of an existing volume or image.
-  * Type: Select "ssd" for a faster SSD-based storage or "standard" for a normal HDD-based storage.+  * Type: Select "ssd" for a faster SSD-based storage or "standard" (not recommended) for a legacy HDD-based storage.
   * Size (GiB): The size of the volume in gibibytes.   * Size (GiB): The size of the volume in gibibytes.
   * Availability Zone: Leave it with default value "nova".   * Availability Zone: Leave it with default value "nova".
Line 35: Line 40:
 </WRAP><WRAP column half> {{ :en:services:server_services:gwdg_cloud_server:new:volume_manage_list.png?direct&200 |}} </WRAP></WRAP> </WRAP><WRAP column half> {{ :en:services:server_services:gwdg_cloud_server:new:volume_manage_list.png?direct&200 |}} </WRAP></WRAP>
 <WRAP Group> <WRAP column half> To attach or detach a Volume to or from an instance, the **Manage Attachments** option should be used.  <WRAP Group> <WRAP column half> To attach or detach a Volume to or from an instance, the **Manage Attachments** option should be used. 
 +</WRAP><WRAP column half>  </WRAP></WRAP>
  
 +<WRAP Group> <WRAP column half>
 To attach a volume to a running instance, the following steps should be fulfilled: To attach a volume to a running instance, the following steps should be fulfilled:
  
Line 41: Line 48:
   * On displayed form, select the intended instance from the "Attach to Instance" list.   * On displayed form, select the intended instance from the "Attach to Instance" list.
   * You can optionally change the device name.   * You can optionally change the device name.
-  * Connect to your instance and run "//fdisk -l//" to verify if the volume is attached+  * Click "Attach Volume"
-  * If the volume is new (has not been attached to another instance before) you will see a message in the output of previous command indicating that the disk doesn't contain a valid partition table+  * Connect to your instance and run "//sudo fdisk -l//" or "//sudo lsblk//" to verify if the volume is attached. 
-  * To format your device, execute:  "//fdisk /dev/vdc//"  (/dev/vdc should be replaced by your device name if it is different) +  * To format your device, execute: "//sudo mkfs.ext4 /dev/vdc//"  (/dev/vdc should be replaced by your device name if it is different) 
 +  * Create a directory for mounting the new storage volume: "//sudo mkdir /mnt/my-volume//"
 +  * Mount the new volume: "//sudo mount /dev/vdc /mnt/my-volume//" 
 +  * Add the mounting command to "fstab", so you won't need to mount it after each reboot: 
 +  - Run "vim /etc/fstab" to edit the file. 
 +  - Press "i" to be in insert mode. And then go to the end of existing text and press Enter to be in a new line. 
 +  - Add the line (change the names based on your state): "/dev/vdc    /mnt/my-volume    ext4    defaults    0 0" 
 +  - Press "Esc" to exit from insert mode. Then press ":wq" to save the changes and exit. 
 </WRAP><WRAP column half> {{ :en:services:server_services:gwdg_cloud_server:new:volume_attach.png?direct&400 |}} </WRAP></WRAP> </WRAP><WRAP column half> {{ :en:services:server_services:gwdg_cloud_server:new:volume_attach.png?direct&400 |}} </WRAP></WRAP>
 +
 +<WRAP Group> <WRAP column half>
 +To detach a volume from an instance, the following steps should be fulfilled:
 +
 +  * Be sure that you have unmounted the Volume inside your instance.
 +  * Select "Manage Attachment" of a volume with "In-use" status.
 +  * Click "Detach Volume" of intended instance.
 +  * Confirm displayed message.
 +
 +</WRAP><WRAP column half> {{ :en:services:server_services:gwdg_cloud_server:new:volume_detach.png?direct&400 |}} </WRAP></WRAP>