This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:cloud [2020/08/20 00:30] lphukungoane [Introduction - Volumes] |
guide:cloud [2025/10/12 12:31] (current) sfebruary [CHPC Cloud Resources] |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| *[[guide: | *[[guide: | ||
| *[[guide: | *[[guide: | ||
| + | | ||
| *[[guide: | *[[guide: | ||
| *[[guide: | *[[guide: | ||
| Line 50: | Line 51: | ||
| **3. Identify A volume within Instance.** | **3. Identify A volume within Instance.** | ||
| - | SSH into your instance, su to root and run ‘lsblk’ | + | SSH into your instance, su to root and run **‘lsblk’** |
| // | // | ||
| Line 63: | Line 64: | ||
| apt-get install xfsprogs -y | apt-get install xfsprogs -y | ||
| - | | + | |
| + | **Format using xfs** | ||
| + | |||
| + | We are using **xfs** in this example because it is widely supported and supports extremely large volume sizes (9 exabytes) | ||
| + | |||
| + | mkfs.xfs -f /dev/vdc | ||
| ---- | ---- | ||
| **5. Mounting a Volume.** | **5. Mounting a Volume.** | ||
| + | |||
| + | Create a directory to mount the volume (example ‘data1’), | ||
| + | |||
| + | As root: | ||
| + | |||
| + | "mkdir data1 | ||
| + | mount -t xfs /dev/vdc /data1 | ||
| + | df -hT / | ||
| ---- | ---- | ||
| Line 73: | Line 88: | ||
| **a) Unmount the volume.** | **a) Unmount the volume.** | ||
| - | As root, Within your VM instance, use the command **" | + | As root, use the command **" |
| umount /data1 | umount /data1 | ||
| Line 82: | Line 97: | ||
| From the Openstack dashboard, click **Compute > Volumes** and then on the Actions drop down for the volume you want to attach to an Instance, click **‘Manage Attachments’**. | From the Openstack dashboard, click **Compute > Volumes** and then on the Actions drop down for the volume you want to attach to an Instance, click **‘Manage Attachments’**. | ||
| + | |||
| + | {{ : | ||
| From the Manage Volume Attachments form, Click **‘Detach Volume’** for the instance you wish to detach the volume from. | From the Manage Volume Attachments form, Click **‘Detach Volume’** for the instance you wish to detach the volume from. | ||
| Line 92: | Line 109: | ||
| **8. Extend Volume (Grow)** | **8. Extend Volume (Grow)** | ||
| + | Volumes can also be extended in size. In order to Extend the volume it must be unmounted and detached from an Instance. | ||
| + | |||
| + | Note: Volumes cannot have their size reduced. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Enter the new size of the volume and click **Extend Volume**. | ||
| + | |||
| + | Re-attach the volume to your Instance, and remount the volume from within the instance. You will need to grow the xfs filesystem before it will make the new space available. | ||
| + | |||
| + | As root: | ||
| + | |||
| + | | ||
| + | |||
| + | For more details, visit the openstack official pages: | ||
| + | ---- | ||
| + | ===== Upload and manage images ===== | ||
| + | |||
| + | A virtual machine image, referred to in this document simply as an image, is a single file that contains a virtual disk that has a bootable operating system installed on it. Images are used to create virtual machine instances within the cloud. For information about creating image files, see the [[https:// | ||
| + | |||
| + | **1. Upload an image** | ||
| + | |||
| + | Follow this procedure to upload an image to a project: | ||
| + | |||
| + | a) Log in to the dashboard. | ||
| + | b) Select the appropriate project from the drop down menu at the top left. | ||
| + | c) On the Project tab, open the Compute tab and click Images category. | ||
| + | d) Click Create Image. | ||
| + | |||
| + | Then Create An Image dialog box appears | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | //Select **" | ||
| + | |||
| + | ---- | ||
| + | **How to deploy windows on openstack** | ||
| + | |||
| + | Windows Image for OpenStack: For most Linux distributions, | ||
| + | |||
| + | Since Microsoft Windows is still a major component in many IT infrastructures, | ||
| + | |||
| + | To upload Windows image, We suggest that you follow this tutorial for [[https:// | ||
| + | |||
| + | Note: CHPC does not provide licenses, Appropriate licenses for any software run on the service by | ||
| + | users must be sought and applied by the users, including any licenses that may be required to run | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | ===== Access and security for instances ===== | ||
| + | work in progess...! | ||