In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Experimental process
Dashboard operating volume types and QOS management
Log in to the Dashboard interface using admin users, select "Administrator-Volume-Volume Type" in the navigation bar, and click "create Volume Type"
Enter the type name "VolumeType_web" and check "Public" to create it.
Click create QOS Specification
Enter the Qos specification name "QoS_web", "Consumer" and select "backend" to create it.
Return to the list of volume types, view the volume types that have been created, and select "manage QoS specification associations" in the operation list.
Then in the dialog box, in the Qos specifications to be associated, select the QoS_web that has been created, and then associate it
Confirm that the volume specification has been associated
Volume Management create Volume
In the navigation bar, select Project-Volume-Volume, enter the list, and click create Volume
Fill in the following information
Volume name: Volume_web_01 Volume Source: Image uses Mirror as Source: select Mirror "Img_web" Type: select Volume Type "VolumeType_web" size: select 1GB available Partition: nova others keep default
After the creation is complete, view the status of the volume
Mount Volum
In Project-Volume-Volume, select manage connections in the action list
Then select Connect to instance, select Instance_web01, and then click Connect Volume
Return the list of volumes to confirm the status and mount of the volume
Upload Volume to Mirror
Select Project-Volume-Volume in the navigation bar, enter the volume list, and then select upload Image
Enter the image name "Volume_Img_web", select "QCOW2-QEMU Emulator" in disk format, and click upload.
Then in "Project-calculation-Image", enter the list of images and view the created images.
Create a volume snapshot
"Project-Volume-Volume", enter the volume list and select "create Snapshot"
Enter the snapshot name "Volume_Snap_web" to create
Volume expansion
"Project-Volume-Volume", enter the volume list and select "expand Volume"
Enter the size of the expanded volume, 2, and then click expand Volume
Create a volume based on a volume snapshot
"Project-Volume-Snapshot", enter the snapshot list, and then click "create Volume"
Enter the name of the volume "Volume_web_02" and "use Snapshot Source" as "Volume_Sanp_web"
Confirm that the volume was created successfully
Issue virtual machines based on volumes
Click the volume "Volume_web_02" and select "create instance"
Enter the name of the virtual machine instance, such as "Instance_web_02", while others remain by default
Go to the "Source" tab, select "Volume" in the selected source, and add Volume_web02.
Enter the instance type, select "Flavor_web", add, and click create instance
Then return to the volume list to confirm the status and mount of the volume
Enter "Project-Volume-Volume", enter the volume list, edit the volume Volume-web_01, and uncheck: it can be started. At this time, the volume cannot be used as a boot volume, and the virtual machine instance cannot be issued based on the volume.
CLI operating volume types and QOS management
Go to the controller node and import the administrator environment variable
Create volume type "VolumeType_cli" and type "Public"
Openstack volume type create-public VolumeType_cli
View a list of volume types
Openstack volume type list
Create volume QOS, "QoS_cli", and use the object as back-end
Openstack volume qos create-consume back-end QoS_cli
View a list of volumes QoS
Openstack volume qos list
Assign volume QOS "QoS_cli" to volume type "VolumType_cli"
Openstack volume qos associate QoS_cli VolumeType_cli
View the volume type assigned by the volume QoS
Openstack volume qos show QoS_cli
Volume Management create Volume
Create volume Volume_cli_01, volume source Img_web, type VolumeType_web, size 1G, available partition nova, boot volume
Openstack volume create-image Img_cli-type VolumeType_cli-size 1-availability-zone nova-bootable Volume_cli_01
View a list of volumes
Openstack volume list
Mount and unmount volum
Mount the volume Volume_cli_01 to the virtual machine instance Instance_cli_01
Openstack server add volume Instance_cli_01 Volume_cli_01
Check the mount of the volume
Openstack volume list
Unmount volume Volume_cli_01 from virtual machine instance Instance_cli_01
Openstack server remove volume Instance_cli_01 Volume_cli_01
Check to see if the volume has been unmounted
Upload Volume to Mirror
Upload the volume Volume_cli_01 to the image Volume_Img_cli, and set the image format to QCOW2
Openstack image create-volume Volume_cli_01-disk-format qcow2 Volume_Img_cli
View the image you just created
Openstack image list
Create a snapshot
Create a volume snapshot for volume Volume_cli_01 Volume_Snap_cli
Openstack volume snapshot create-volume Volume_cli_01 Volume_Snap_cli
View the volume snapshot you just created
Openstack volume snapshot list
Volume expansion
Expand volume Volume_cli_01 to 2GB
Openstack volume set-size 2 Volume_cli_01
View expanded volumes
Openstack volume show Volume_cli_01
Create a volume based on a volume snapshot
Create volume Volume_cli_02 based on snapshot Volume_Snap_cli
Openstack volume create-snapshot Volume_Snap_cli Volume_cli_02
View the volume you just created
Openstack volume list
Issue virtual machine instances based on volumes
Issue virtual machine instance Instance_cli_02 based on volume volume_cli_02, with specification set to Flavor_cli
Openstack server create-volume Volume_cli_02-flavor Flavor_cli Instance_cli_02
Check the list of virtual machine instances
Openstack server list
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.