1. Use the command to view the swift service status, then create a container, and use the command to view the container
list.
[root@controller ~]# source /etc/keystone/admin-openrc.sh
[root@controller ~]# swift stat //View service status
[root@controller ~]# swift post test //Create container
[root@controller ~]# swift list --lh //View container list
2. Use swift related commands, Create a container and use commands to view the status of the container.
Use swift related commands to query the
maximum value of a single file size that the swift object storage service can store.
[root@controller ~]# swift post test //Create container
[root@controller ~]# swift stat //View service status
4. Use swift Related commands, create a container, and then upload a file to the container (the file
can be created by yourself). After the upload is completed, use the command to view the container.
root@controller ~]# swift post test //Create container
[root@controller ~]# dd if=/dev/zero of=/tmp/example-500Mb bs=1M count=500
500 0 records in
500 0 records out
524288000 bytes (524 MB) copied, 0.380656 s, 1.4 GB/s
[root@controller ~]# swift list --lh //View the container list
5. Log in to the iaas cloud host, use the openstack command to create a container, query and upload a
File (can be created by yourself) into this container and query.
root@controller ~]# swift post test //Create container
[root@controller ~]# dd if=/dev/zero of=/tmp/example-500Mb bs=1M count=500
500 0 records in
500 0 records out
524288000 bytes (524 MB) copied, 0.380656 s, 1.4 GB/s
[root@controller ~]# swift list --lh //View container list
KVM operation and maintenance
3. This question uses the physical iaas platform. Log in to the compute node and use commands to bind the KVM process to a specific cpu.
ps -e|grep kvm
5. This question uses the physical iaas platform. Log in to the controller node, use the cat command to check only how many huge pages there are in the current system, then set the number of huge pages and check, then use the command to make the configuration permanent, and then mount the huge pages to /dev/hugepages/.
[root@controller ~]# echo 20 > /proc/sys/vm/nr_hugepages
[root@controller ~]# grep Huge /proc/meminfo
AnonHugePages: 659456 kB
HugePages_Total: 20
HugePages_Free: 20
##HugePages_Rsvd: 0##HugePages_Surp: 0
##Hugepagesize: 2048 kB [root@controller ~]# cat /proc/sys/vm/nr_hugepages206. Log in to 192.168.100.10/dashboard and create a cloud host. On the physical node where the cloud host is located, enter the virsh interactive interface, adjust the memory size of the virtual machine, and then use the command to view the details of the virtual machine. [root@controller~]#virshvirsh#dominfoinstance-000000fdvirsh#setmeminstance-000000fd5242880virsh#dominfoinstance-000000fdNetwork operation and maintenance:1. Install and configure the JDK environment on the control node. After the installation is complete, query the JDK version information. [root@controller ~]# java -version 3. Continue to complete the installation of OpenDaylight. After completion, use the curl command to access the web page http://192.168.100.10:8181/index.html . Load balancing:2. Use load balancing to create an nginx resource pool, use the http protocol, and select the round-robin load balancing method. After creation, add vip: nginx-vip, use http protocol, port is 80, HTTP_COOKIE session persistence. Use the neutron command to query the resource pool nginx details and nginx-vip details. 3. Use load balancing to create an nginx resource pool, use the http protocol, and select the round robin load balancing method. After creation, add vip: nginx-vip, use http protocol, port is 80, and HTTP_COOKIE session persistence. Use the command to view the haproxy configuration file of the created resource pool. (Physical environment)Firewall:
Create firewall rules, add a rule named icmp, and deny all ICMP rules for source IP, source port, destination IP, and destination port. Use the neutron command to query rule list information and detailed information. (Physical environment) 2. Firewall creation, create a firewall named nginx, add the firewall rule nginx-80, and allow all rules with source IP, source port, destination IP, and destination port of 80. Create a firewall policy nginx-policy and add nginx-80 rules. Use the neutron command to query firewall details, policy details, and rule details. (Physical environment)
The above is the detailed content of Swift operation and maintenance. For more information, please follow other related articles on the PHP Chinese website!