0% found this document useful (0 votes)
13 views

Basic Openstack Commands for Ccloud

Uploaded by

manogara05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Basic Openstack Commands for Ccloud

Uploaded by

manogara05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Basic Openstack Commands for Ccloud

Note : Please run commands using “sudo” instead of switching to root user.

To View the server with basic details (Machine Type , IP’s , Power Status , Machine Id )

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud server list | grep -i <Server_Name>

To View the server complete details

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud server show <Server_Name>

To power-on the server

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud server start <Server_Name>

To power-off the server

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud server stop <Server_Name>

To Restart / Reboot the server

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud server reboot <Server_Name>

To Confirm the RAM Resize

[root@dlm-lts01:~]# sudo openstack server resize <Server_Name> --confirm

To View the Volumes / disks attached to Server

[root@vlgspadm02:~]# sudo openstack server show <Server_Name> -c volumes_attached

To View the Volume / disk basic details

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud volume list | grep -i <Volume_Name>

(OR)

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud volume list | grep -i <‘Volume_Id’>


To Add or Attach the Volume / disk from server

[root@dlm-lts01:~]# sudo openstack server add volume <Server_Name> <Volume_Id>

To Remove or detach the Volume / disk from server

[root@dlm-lts01:~]# sudo openstack server remove volume <Server_Name> <Volume_Id>

To Reset the Status of Volume / disk

[root@dlm-lts01:~]# sudo openstack --os-cloud=ccloud volume set --state=available <Volume_Id>

To Create Snapshot of Volume

sudo openstack volume snapshot create --description "<Description>" --volume <Volume_Id>


<SnapShot_Name>

To Create Disk / Volume from snapshot

sudo openstack volume create --snapshot <Snapshot_Id> <New_Volume_Name>

You might also like