CADESUser DocumentationCADES Cloud User GuideManage Your VM InstancesConvert to Volume Instance

Converting your instance that does not have a volume into a volume

Do this if you notice lagging performance on a instance that you have set up with only virtual storage. Sometimes users may wish to add CPU or Memory resources to an existing VM instance. This can be accomplished easily through the Horizon interface:

  1. SSH into your instance an issue the command: shutdown -h now
  2. Navigate to Project→Compute→Instances
  3. Find the instance you gave the shutdown command to and verify the Power State is ‘Shut Down’
  4. -If it is not, wait a bit as it might still be in the process of shutting down.
  5. -If it has been a few minutes and it is still not shutdown, click on the arrow under actions and click on ‘Shut Off Instance’

  6. Create a snapshot of the Instance

  7. While still on the page of your listed instances click on the instance dropdown under Actions
  8. Click ‘Create Snapshot’
  9. Give your snapshot a name and click ‘Create Snapshot’
  10. The UI will automatically change your view to the snapshot list. One of the lines will be your new snapshot trying to create.
  11. The snapshot is done when it is no longer highlighted and Status is ‘Active’

  12. Create a Volume from the Snapshot

  13. Click on the Snapshot dropdown under Actions
  14. Click on ‘Create Volume’
  15. In the new prompt fill out the Volume Name and Description, and if you want the volume to be bigger increase the size as well. (Remember: Volumes can be grown but not reduced in size and cannot be bigger than your volume quota)
  16. Type - NetApp (fast) or LargeDataStore (home for larger volumes). Boot volumes are almost always netapp and data volumes over 200G are almost always large data store. If in doubt or you get a error ask via cades-help@ornl.gov.
  17. Click ‘Create Volume’
  18. The UI will automatically change your view to the volume list. One of the lines will list your new volume trying to create.

  19. Launch a new Instance with your newly created Volume

  20. Once the volume is done creating, launch a new instance with the volume
  21. Click on the dropdown menu under 'Actions' for your new Volume
  22. Click on 'Launch as Instance'
  23. Fill out the Launch Instance prompt
  24. Required Tabs have blue stars next to them. These must be filled out in order to launch
  25. To insure the correct keys are uploaded, while not required according to the prompt, be sure to navigate to the Key Pair tab and add your key pair
  26. Click on 'Launch Instance' when you have finished filling out all needed information.
  27. Navigate to Project→Compute→Instances
  28. Your new instance should be in the process of creating/starting if it is not already done.
  29. It is done when the Status is Active, the Task is None, and the Power State is Running
  30. If you increased the size of your volume back at step 3.3, be sure to also increase the partition and filesystem

  31. Find your disk and partition with lsblk

  32. Expand your partition e.g. sudo growpart /dev/vda 1
  33. In the example vda is your disk and 1 is your partition number. Please note there is a space between disk and partition number
  34. Verify the partition grew with lsblk. The size of your partition will now be bigger
  35. Use df -h to verify the size of the file system.
  36. If you have XFS, extend the XFS file system e.g. sudo xfs_growfs -d /
  37. Verify the file system reflects the increase volume size by using df -h command again.
  38. Enjoy your new Instance

results matching ""

    No results matching ""