标签:justify 数据库 center 记录 color
备注:我们对于CS数据库的操作多数情况下只是查询操作,尽量不要在数据库中直接修改记录的值
[root@master ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 188 Server version: 5.1.61-log Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. mysql> |
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | cloud | | cloud_usage | | cloudbridge | | glance | | mysql | | nova | +--------------------+ 7 rows in set (0.00 sec) mysql>exit; |
[root@master ~]# mysqldump -u root -p -A --events > ./all_db_20140427.sql Enter password: |
备注:
-A :表示备份所有的数据库
--enents :该选项为了避免在备份mysql(包含用户名称及授权表的数据库)时报错
特别注意的是:当重新安装mysql,需要在mysql中创建原有的数据库(mysql、information_schema默认存在)都存在才能进行恢复
[root@master ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 190 Server version: 5.1.61-log Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. mysql> use cloud; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed |
备注:此处我们以查看“From-Xen-29”虚拟机的信息为例
备注:此处我们查看name是“From-Xen-29”的虚拟机的信息
mysql> select * from vm_instance where name="From-Xen-29" \G; *************************** 1. row *************************** id: 21 name: From-Xen-29 uuid: 693a72f8-5f8d-4c92-acd2-1826d4449d41 instance_name: i-2-21-VM state: Running vm_template_id: 203 guest_os_id: 57 private_mac_address: 06:c9:50:00:00:0e private_ip_address: 10.30.18.29 pod_id: 1 data_center_id: 1 host_id: 1 last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: cOheL3tWc6T/cNYULcoF+tdjDgTcDgbXQqb2xjcdc4E= ha_enabled: 0 limit_cpu_use: 0 update_count: 3 update_time: 2014-04-26 01:23:39 created: 2014-04-26 01:23:15 removed: NULL type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 2 reservation_id: 1c5d691c-af25-4b36-a355-d1aed3e30fa9 hypervisor_type: XenServer 1 row in set (0.00 sec) |
备注:此处我们只查看了name是“From-Xen-29”的虚拟机的id和state状态信息
mysql> select id,state from vm_instance where name="From-Xen-29" ; +----+---------+ | id | state | +----+---------+ | 21 | Running | +----+---------+ 1 row in set (0.00 sec) mysql> |
mysql> update vm_instance set state=‘Stopped‘ where id=21; Query OK, 1 row affected (0.08 sec) Rows matched: 1 Changed: 1 Warnings: 0 |
备注:一般情况下不要修改数据库中记录的值。主要用于在CloudStack界面中虚拟机显示不正常状态的修改:例如将Expuning 修改成 Stopped
备注:管理IP不能像来宾IP一样进行二次添加。如果管理IP分配的过少,且在mysql数据库中被占用导致管理IP不足
mysql> select * from op_dc_ip_address_alloc; mysql> update op_dc_ip_address_alloc set nic_id=null,reservation_id=null,taken=null; mysql> commit; |
备注:卷都是存储在主存储上的
mysql> select id,name,path,folder,volume_type from volumes where state="ready" \G; *************************** 1. row *************************** id: 1 name: ROOT-1 path: be954476-935f-4d7a-a8a1-021d8882a39d folder: /export/primary1 volume_type: ROOT *************************** 2. row *************************** id: 2 name: ROOT-2 path: 29fa2289-e368-4507-a94e-0ceec3f64a55 folder: /export/primary1 volume_type: ROOT *************************** 3. row *************************** id: 4 name: From-Xen-32-E path: 97946a32-c7ac-4462-830b-8118625d426b folder: /export/primary1 volume_type: DATADISK *************************** 4. row *************************** id: 5 name: From-Xen-30-E path: 61aab5bc-0194-494b-a2b6-bbbc6fc80abc folder: /export/primary1 volume_type: DATADISK *************************** 5. row *************************** id: 6 name: From-Xen-29-E.vhd path: d8a44de4-caf2-48b0-93c6-83737af4ba61 folder: /export/primary1 volume_type: DATADISK *************************** 6. row *************************** id: 8 name: ROOT-4 path: 02ee677a-4cc8-4da8-be7c-9e45a2ff5e0d folder: /export/primary1 volume_type: ROOT *************************** 7. row *************************** id: 25 name: ROOT-21 path: d62bd6ab-9485-47a6-8c30-413567b01ff3 folder: /export/primary1 volume_type: ROOT *************************** 8. row *************************** id: 28 name: ROOT-24 path: 25e7160e-4fb3-4bab-9d81-d45789aa4cbc folder: /export/primary1 volume_type: ROOT *************************** 9. row *************************** id: 29 name: ROOT-25 path: f6886c71-da8f-461a-8576-88ce54752f01 folder: /export/primary1 volume_type: ROOT 9 rows in set (0.00 sec) |
mysql> select id,name,removed from vm_template where format="vhd" and type="user"\G; *************************** 1. row *************************** id: 202 name: XP-SP2 removed: NULL *************************** 2. row *************************** id: 203 name: From-Xen-29 removed: NULL *************************** 3. row *************************** id: 204 name: From-Xen-32 removed: NULL *************************** 4. row *************************** id: 205 name: From-Xen-30 removed: NULL 4 rows in set (0.00 sec) |
备注:我们只查看状态是“backedup”的快照信息
mysql> select name,backup_snap_id from snapshots where status="backedup"\G; *************************** 1. row *************************** name: Feom-Xen-32_ROOT-25_20140426072726 backup_snap_id: b84fcc71-e731-4a33-9c81-8c8a82b8f5a4 *************************** 2. row *************************** name: From-Xen-30_ROOT-24_20140426073350 backup_snap_id: 70f0ed98-4416-481f-8c85-df2cfaef4e33 *************************** 3. row *************************** name: From-Xen-29_ROOT-21_20140426074236 backup_snap_id: 0ae4c760-04ad-4e98-9434-3f6194b734e6 *************************** 4. row *************************** name: From-Xen-29_From-Xen-29-E.vhd_20140426074703 backup_snap_id: 5ce7cdf7-ac9e-40f0-8312-67b63af68b55 *************************** 5. row *************************** name: From-Xen-30_From-Xen-30-E_20140426075223 backup_snap_id: 3db95d31-1698-4477-b12a-0c15d147fff2 *************************** 6. row *************************** name: Feom-Xen-32_From-Xen-32-E_20140426075617 backup_snap_id: ffa76d2d-09d7-4370-9468-e4530502a9ca 6 rows in set (0.00 sec) |
1、涉及表 user_ip_address和nics
update user_ip_address set public_ip_address=‘1.1.1.1‘ where public_ip_address=‘$OLDIP‘;
update user_ip_address set public_ip_address=‘$OLDIP‘ where public_ip_address=‘$NEWIP‘;
update user_ip_address set public_ip_address=‘$NEWIP‘ where public_ip_address=‘1.1.1.1‘;
update nics set ip4_address=‘$NEWIP‘ where ip4_address=‘$OLDIP‘ and state=‘Reserved‘;
3、重启vm虚拟机
4、如有相应的vrouter正在运行,需要删除重建该vrouter
mysql> show tables ; +--------------------------------------+ | Tables_in_cloud | +--------------------------------------+ | account | | account_details | | account_network_ref | | account_vlan_map | | alert | | async_job | | autoscale_policies | | autoscale_policy_condition_map | | autoscale_vmgroup_policy_map | | autoscale_vmgroups | | autoscale_vmprofiles | | cluster | | cluster_details | | cluster_vsm_map | | cmd_exec_log | | conditions | | configuration | | console_proxy | | counter | | data_center | | data_center_details | | dc_storage_network_ip_range | | disk_offering | | domain | | domain_network_ref | | domain_router | | elastic_lb_vm_map | | event | | external_firewall_devices | | external_load_balancer_devices | | firewall_rules | | firewall_rules_cidrs | | guest_os | | guest_os_category | | guest_os_hypervisor | | host | | host_details | | host_pod_ref | | host_tags | | hypervisor_capabilities | | inline_load_balancer_nic_map | | instance_group | | instance_group_vm_map | | keystore | | launch_permission | | load_balancer_stickiness_policies | | load_balancer_vm_map | | load_balancing_rules | | mshost | | mshost_peer | | netapp_lun | | netapp_pool | | netapp_volume | | network_external_firewall_device_map | | network_external_lb_device_map | | network_offerings | | network_rule_config | | networks | | nics | | ntwk_offering_service_map | | ntwk_service_map | | op_dc_ip_address_alloc | | op_dc_link_local_ip_address_alloc | | op_dc_storage_network_ip_address | | op_dc_vnet_alloc | | op_ha_work | | op_host | | op_host_capacity | | op_host_transfer | | op_host_upgrade | | op_it_work | | op_lock | | op_networks | | op_nwgrp_work | | op_pod_vlan_alloc | | op_user_stats_log | | op_vm_ruleset_log | | ovs_tunnel_interface | | ovs_tunnel_network | | physical_network | | physical_network_isolation_methods | | physical_network_service_providers | | physical_network_tags | | physical_network_traffic_types | | pod_vlan_map | | port_forwarding_rules | | port_profile | | private_ip_address | | project_account | | project_invitations | | projects | | remote_access_vpn | | resource_count | | resource_limit | | resource_tags | | router_network_ref | | s2s_customer_gateway | | s2s_vpn_connection | | s2s_vpn_gateway | | secondary_storage_vm | | security_group | | security_group_rule | | security_group_vm_map | | sequence | | service_offering | | snapshot_policy | | snapshot_schedule | | snapshots | | ssh_keypairs | | stack_maid | | static_routes | | storage_pool | | storage_pool_details | | storage_pool_host_ref | | storage_pool_work | | swift | | sync_queue | | sync_queue_item | | template_host_ref | | template_spool_ref | | template_swift_ref | | template_zone_ref | | upload | | usage_event | | user | | user_ip_address | | user_statistics | | user_vm | | user_vm_details | | version | | virtual_router_providers | | virtual_supervisor_module | | vlan | | vm_instance | | vm_template | | vm_template_details | | volume_host_ref | | volumes | | vpc | | vpc_gateways | | vpc_offering_service_map | | vpc_offerings | | vpn_users | +--------------------------------------+ 143 rows in set (0.01 sec) |
备注1:CS默认的账户只有两个,可以手动建立多个账户并赋予不同的角色(user、admin)
备注:需要注意的是表中admin既是一个可以用于管理登录的账号,也是一个具有管理权限的角色
备注:主要用于存放账号的相关信息
mysql> select * from account \G; *************************** 1. row *************************** id: 1 account_name: system uuid: 6d527226-710a-4d62-8f19-3f5f2640d42e type: 1 domain_id: 1 state: enabled removed: NULL cleanup_needed: 0 network_domain: NULL default_zone_id: NULL *************************** 2. row *************************** id: 2 account_name: admin uuid: 1f8b679f-a327-43e0-8af9-726d3d76ccc9 type: 1 domain_id: 1 state: enabled removed: NULL cleanup_needed: 0 network_domain: NULL default_zone_id: NULL 2 rows in set (0.00 sec) |
备注:默认为空表
mysql> select * from account_details \G; Empty set (0.00 sec) |
mysql> select * from account_network_ref \G; *************************** 1. row *************************** id: 1 account_id: 1 network_id: 200 is_owner: 1 *************************** 2. row *************************** id: 2 account_id: 1 network_id: 201 is_owner: 1 *************************** 3. row *************************** id: 3 account_id: 1 network_id: 202 is_owner: 1 *************************** 4. row *************************** id: 4 account_id: 1 network_id: 203 is_owner: 1 *************************** 5. row *************************** id: 5 account_id: 1 network_id: 204 is_owner: 1 5 rows in set (0.00 sec) |
mysql> select * from account_vlan_map \G; Empty set (0.00 sec) |
mysql> select * from user \G; *************************** 1. row *************************** id: 1 uuid: 5196c6cc-799f-4ab6-bbe6-b709bd21cd1a username: system password: account_id: 1 firstname: system lastname: cloud email: NULL state: enabled api_key: NULL secret_key: NULL created: 2014-04-25 12:58:10 removed: NULL timezone: NULL registration_token: NULL is_registered: 0 *************************** 2. row *************************** id: 2 uuid: 09e32a37-0c88-4009-9deb-a8e4516358d0 username: admin password: 5f4dcc3b5aa765d61d8327deb882cf99 account_id: 2 firstname: admin lastname: cloud email: NULL state: enabled api_key: NULL secret_key: NULL created: 2014-04-25 12:58:10 removed: NULL timezone: NULL registration_token: NULL is_registered: 0 2 rows in set (0.00 sec) |
mysql> select * from user_statistics \G; *************************** 1. row *************************** id: 1 data_center_id: 1 account_id: 1 public_ip_address: NULL device_id: 4 device_type: DomainRouter network_id: 204 net_bytes_received: 0 net_bytes_sent: 0 current_bytes_received: 0 current_bytes_sent: 0 agg_bytes_received: 0 agg_bytes_sent: 0 1 row in set (0.00 sec) |
mysql> select * from user_vm \G; *************************** 1. row *************************** id: 3 iso_id: NULL display_name: vm-1 user_data: NULL update_parameters: 1 *************************** 2. row *************************** id: 5 iso_id: NULL display_name: vm-1 user_data: NULL update_parameters: 1 *************************** 3. row *************************** id: 6 iso_id: NULL display_name: vm-1 user_data: NULL update_parameters: 1 *************************** 4. row *************************** id: 7 iso_id: NULL display_name: vm-1 user_data: NULL update_parameters: 1 *************************** 5. row *************************** id: 8 iso_id: NULL display_name: vm-1 user_data: NULL update_parameters: 1 *************************** 6. row *************************** id: 9 iso_id: NULL display_name: vm-2 user_data: NULL update_parameters: 1 *************************** 7. row *************************** id: 10 iso_id: NULL display_name: vm-3 user_data: NULL update_parameters: 1 *************************** 8. row *************************** id: 11 iso_id: NULL display_name: vm-4 user_data: NULL update_parameters: 1 *************************** 9. row *************************** id: 12 iso_id: NULL display_name: vm-5 user_data: NULL update_parameters: 1 *************************** 10. row *************************** id: 13 iso_id: NULL display_name: vm-6 user_data: NULL update_parameters: 1 *************************** 11. row *************************** id: 14 iso_id: NULL display_name: vm-7 user_data: NULL update_parameters: 1 *************************** 12. row *************************** id: 15 iso_id: NULL display_name: vm-8 user_data: NULL update_parameters: 1 *************************** 13. row *************************** id: 16 iso_id: NULL display_name: vm-9 user_data: NULL update_parameters: 1 *************************** 14. row *************************** id: 17 iso_id: NULL display_name: vm-10 user_data: NULL update_parameters: 1 *************************** 15. row *************************** id: 18 iso_id: NULL display_name: vm-11 user_data: NULL update_parameters: 1 *************************** 16. row *************************** id: 19 iso_id: NULL display_name: vm-12 user_data: NULL update_parameters: 1 *************************** 17. row *************************** id: 20 iso_id: NULL display_name: vm-13 user_data: NULL update_parameters: 1 *************************** 18. row *************************** id: 21 iso_id: NULL display_name: From-Xen-29 user_data: NULL update_parameters: 1 *************************** 19. row *************************** id: 22 iso_id: NULL display_name: From-Xen-30 user_data: NULL update_parameters: 1 *************************** 20. row *************************** id: 23 iso_id: NULL display_name: From-Xen-30 user_data: NULL update_parameters: 1 *************************** 21. row *************************** id: 24 iso_id: NULL display_name: From-Xen-30 user_data: NULL update_parameters: 1 *************************** 22. row *************************** id: 25 iso_id: NULL display_name: Feom-Xen-32 user_data: NULL update_parameters: 1 22 rows in set (0.00 sec) |
mysql> select * from user_vm_details \G; Empty set (0.00 sec) |
备注:该表存储错误报警信息
mysql> select * from alert \G; *************************** 1. row *************************** id: 1 uuid: 649b2aa4-416e-4674-b967-115d014f2397 type: 13 cluster_id: NULL pod_id: 0 data_center_id: 0 subject: Management network CIDR is not configured originally. Set it default to 10.30.18.0/24 sent_count: 1 created: 2014-04-25 04:58:50 last_sent: 2014-04-25 04:58:50 resolved: NULL *************************** 2. row *************************** id: 2 uuid: ff8dc7b2-7201-4529-82f8-bda9ce92838d type: 13 cluster_id: NULL pod_id: 0 data_center_id: 0 subject: Management server node 10.30.18.2 is up sent_count: 1 created: 2014-04-25 04:58:53 last_sent: 2014-04-25 04:58:53 resolved: NULL *************************** 3. row *************************** id: 3 uuid: 10e683bb-c4d2-4fe3-b259-db959f62247a type: 13 cluster_id: NULL pod_id: 0 data_center_id: 0 subject: Management server node 10.30.18.2 is up sent_count: 1 created: 2014-04-25 05:01:13 last_sent: 2014-04-25 05:01:13 resolved: NULL *************************** 4. row *************************** id: 4 uuid: ec3c0ac3-a657-480e-bab9-6182c6fc2f29 type: 12 cluster_id: NULL pod_id: 0 data_center_id: 0 subject: No usage server process running sent_count: 1 created: 2014-04-25 06:01:10 last_sent: 2014-04-25 06:01:10 resolved: NULL *************************** 5. row *************************** id: 5 uuid: 33c0036a-7003-4f02-b389-f6f6c6c5c50f type: 23 cluster_id: NULL pod_id: NULL data_center_id: 1 subject: System Alert: Number of unallocated direct attached public IPs is low in availablity zone ????????? sent_count: 1 created: 2014-04-26 01:16:40 last_sent: 2014-04-26 01:16:40 resolved: NULL *************************** 6. row *************************** id: 6 uuid: 1a01433e-900b-45ee-80c4-13fb025c10e0 type: 7 cluster_id: NULL pod_id: NULL data_center_id: 1 subject: Failed to deploy Vm with Id: 22 sent_count: 1 created: 2014-04-26 01:30:54 last_sent: 2014-04-26 01:30:54 resolved: NULL *************************** 7. row *************************** id: 7 uuid: 188c74df-372e-4422-911b-1e8a4a3e09ee type: 7 cluster_id: NULL pod_id: NULL data_center_id: 1 subject: Failed to deploy Vm with Id: 23 sent_count: 1 created: 2014-04-26 01:36:01 last_sent: 2014-04-26 01:36:01 resolved: NULL 7 rows in set (0.00 sec) |
mysql> select * from cmd_exec_log \G; Empty set (0.00 sec) |
备注:该表中存放发生的事件的信息,条目太多了
mysql> select * from event limit 10 \G; *************************** 1. row *************************** id: 1 uuid: 7ac73b4c-777d-4ab1-9746-3a8e2dad791e type: USER.LOGIN state: Completed description: user has logged in from IP Address 10.30.18.253 user_id: 2 account_id: 2 domain_id: 1 created: 2014-04-25 04:59:23 level: INFO start_id: 0 parameters: NULL *************************** 2. row *************************** id: 2 uuid: 1658d553-7baf-49b2-8b9f-b51094391e49 type: CONFIGURATION.VALUE.EDIT state: Completed description: Successfully completed updating configuration. Name: secstorage.allowed.internal.sites New Value: 10.30.18.0/24 user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:00:04 level: INFO start_id: 0 parameters: NULL *************************** 3. row *************************** id: 3 uuid: f111bc50-405c-4178-9b91-e45713b3527e type: CONFIGURATION.VALUE.EDIT state: Completed description: Successfully completed updating configuration. Name: expunge.delay New Value: 60 user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:00:21 level: INFO start_id: 0 parameters: NULL *************************** 4. row *************************** id: 4 uuid: 510ff664-24f9-4f1d-83a8-b2deaa2d3ed2 type: CONFIGURATION.VALUE.EDIT state: Completed description: Successfully completed updating configuration. Name: expunge.delay New Value: 120 user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:00:28 level: INFO start_id: 0 parameters: NULL *************************** 5. row *************************** id: 5 uuid: e1d94333-c5e4-4ceb-97b6-f1add1285a78 type: CONFIGURATION.VALUE.EDIT state: Completed description: Successfully completed updating configuration. Name: expunge.interval New Value: 120 user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:00:34 level: INFO start_id: 0 parameters: NULL *************************** 6. row *************************** id: 6 uuid: dacb5878-07ee-459a-825d-4198fdca855c type: USER.LOGIN state: Completed description: user has logged in from IP Address 10.30.18.253 user_id: 2 account_id: 2 domain_id: 1 created: 2014-04-25 05:01:15 level: INFO start_id: 0 parameters: NULL *************************** 7. row *************************** id: 7 uuid: 2c674986-b01a-4f01-9106-dc503933f162 type: ZONE.CREATE state: Completed description: Successfully completed creating zone. Zone Name: ????????? user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:15:14 level: INFO start_id: 0 parameters: NULL *************************** 8. row *************************** id: 8 uuid: 720872e6-932f-450b-a501-0d0916edf42e type: SERVICE.PROVIDER.CREATE state: Created description: Successfully created entity for Creating Physical Network ServiceProvider user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:15:14 level: INFO start_id: 0 parameters: NULL *************************** 9. row *************************** id: 9 uuid: 5405e0ef-84b7-4a46-92d8-a0e338c94ce0 type: SERVICE.PROVIDER.CREATE state: Created description: Successfully created entity for Creating Physical Network ServiceProvider user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:15:14 level: INFO start_id: 0 parameters: NULL *************************** 10. row *************************** id: 10 uuid: cac757ba-c2d4-41ce-8633-71631b8eec74 type: SERVICE.PROVIDER.CREATE state: Created description: Successfully created entity for Creating Physical Network ServiceProvider user_id: 2 account_id: 1 domain_id: 1 created: 2014-04-25 05:15:14 level: INFO start_id: 0 parameters: NULL 10 rows in set (0.00 sec) |
mysql> select * from usage_event limit 10 \G; *************************** 1. row *************************** id: 1 type: TEMPLATE.CREATE account_id: 2 created: 2014-04-25 05:23:39 zone_id: 1 resource_id: 202 resource_name: XP-SP2 offering_id: NULL template_id: NULL size: 2733765120 resource_type: NULL processed: 0 *************************** 2. row *************************** id: 2 type: VOLUME.DELETE account_id: 2 created: 2014-04-25 05:32:04 zone_id: 1 resource_id: 3 resource_name: From-Xen-32.vhd offering_id: NULL template_id: NULL size: NULL resource_type: NULL processed: 0 *************************** 3. row *************************** id: 3 type: VOLUME.UPLOAD account_id: 2 created: 2014-04-25 05:39:53 zone_id: 1 resource_id: 4 resource_name: From-Xen-32-E offering_id: NULL template_id: 0 size: 6188216832 resource_type: NULL processed: 0 *************************** 4. row *************************** id: 4 type: VOLUME.UPLOAD account_id: 2 created: 2014-04-25 05:52:07 zone_id: 1 resource_id: 5 resource_name: From-Xen-30-E offering_id: NULL template_id: 0 size: 6028521984 resource_type: NULL processed: 0 *************************** 5. row *************************** id: 5 type: VOLUME.UPLOAD account_id: 2 created: 2014-04-25 06:04:54 zone_id: 1 resource_id: 6 resource_name: From-Xen-29-E.vhd offering_id: NULL template_id: 0 size: 8457564672 resource_type: NULL processed: 0 *************************** 6. row *************************** id: 6 type: TEMPLATE.CREATE account_id: 2 created: 2014-04-25 10:41:28 zone_id: 1 resource_id: 203 resource_name: 1 offering_id: NULL template_id: NULL size: 3263279616 resource_type: NULL processed: 0 *************************** 7. row *************************** id: 7 type: VOLUME.CREATE account_id: 2 created: 2014-04-25 10:42:58 zone_id: 1 resource_id: 7 resource_name: ROOT-3 offering_id: NULL template_id: 203 size: 21474836480 resource_type: NULL processed: 0 *************************** 8. row *************************** id: 8 type: VM.CREATE account_id: 2 created: 2014-04-25 10:42:58 zone_id: 1 resource_id: 3 resource_name: vm-1 offering_id: 2 template_id: 203 size: NULL resource_type: XenServer processed: 0 *************************** 9. row *************************** id: 9 type: NET.IPASSIGN account_id: 2 created: 2014-04-25 10:42:59 zone_id: 1 resource_id: 14 resource_name: 10.30.18.38 offering_id: NULL template_id: 0 size: 0 resource_type: DirectAttached processed: 0 *************************** 10. row *************************** id: 10 type: NETWORK.OFFERING.ASSIGN account_id: 2 created: 2014-04-25 10:45:17 zone_id: 1 resource_id: 3 resource_name: vm-1 offering_id: 6 template_id: NULL size: 1 resource_type: NULL processed: 0 10 rows in set (0.00 sec) |
mysql> select * from async_job \G; *************************** 1. row *************************** id: 67 user_id: 2 account_id: 2 session_key: NULL instance_type: NULL instance_id: NULL job_cmd: com.cloud.api.commands.StopVMCmd job_cmd_originator: NULL job_cmd_info: {"response":"json","id":"1aedd557-a1dd-410b-830b-464880355089","sessionkey":"SwHfSFuxcKG0msn/gOk5eo/5gVc\u003d","ctxUserId":"2","_":"1398508659150","ctxAccountId":"2","ctxStartEventId":"255","forced":"false"} job_cmd_ver: 0 callback_type: 0 callback_address: NULL job_status: 1 job_process_status: 0 job_result_code: 0 job_result: com.cloud.api.response.UserVmResponse/virtualmachine/{"id":{"_tableName":"vm_instance","_value":24},"name":"From-Xen-30","displayname":"From-Xen-30","account":"admin","projectid":{"_tableName":"projects"},"domainid":{"_tableName":"domain","_value":1},"domain":"ROOT","created":"2014-04-26T09:42:57+0800","state":"Stopped","haenable":false,"groupid":{"_tableName":"instance_group"},"zoneid":{"_tableName":"data_center","_value":1},"zonename":"?????????","hostid":{"_tableName":"host","_value":0},"templateid":{"_tableName":"vm_template","_value":205},"templatename":"From-Xen-30","templatedisplaytext":"From-Xen-30","passwordenabled":false,"isoid":{"_tableName":"vm_template"},"serviceofferingid":{"_tableName":"disk_offering","_value":2},"serviceofferingname":"Medium Instance","cpunumber":1,"cpuspeed":1000,"memory":1024,"cpuused":"6.26%","networkkbsread":4473924,"networkkbswrite":12666,"guestosid":{"_tableName":"guest_os","_value":57},"rootdeviceid":1,"rootdevicetype":"NetworkFilesystem","securitygroup":[{"id":{"_tableName":"security_group","_value":1},"name":"default","description":"Default Security Group","projectid":{"_tableName":"projects"},"domainid":{"_tableName":"domain"},"jobid":{"_tableName":"async_job"}}],"nic":[{"id":{"_tableName":"nics","_value":30},"networkid":{"_tableName":"networks","_value":204},"netmask":"255.255.255.0","gateway":"10.30.18.1","ipaddress":"10.30.18.30","isolationuri":"ec2://untagged","broadcasturi":"vlan://untagged","traffictype":"Guest","type":"Shared","isdefault":true,"macaddress":"06:2a:ec:00:00:0f","jobid":{"_tableName":"async_job"}}],"hypervisor":"XenServer","publicipid":{"_tableName":"user_ip_address"},"instancename":"i-2-24-VM","tags":[],"jobid":{"_tableName":"async_job"}} job_init_msid: 233845175752474 job_complete_msid: 233845175752474 created: 2014-04-26 10:37:39 last_updated: 2014-04-26 10:38:01 last_polled: 2014-04-26 10:38:00 removed: NULL uuid: f49cf83c-7a43-4791-ab31-a7dd9fd26416 *************************** 2. row *************************** id: 68 user_id: 2 account_id: 2 session_key: NULL instance_type: NULL instance_id: NULL job_cmd: com.cloud.api.commands.StartVMCmd job_cmd_originator: NULL job_cmd_info: {"response":"json","id":"1aedd557-a1dd-410b-830b-464880355089","sessionkey":"nGxgUKbnC44ekI9WFw5tE2dS//c\u003d","ctxUserId":"2","_":"1398511693899","ctxAccountId":"2","ctxStartEventId":"259"} job_cmd_ver: 0 callback_type: 0 callback_address: NULL job_status: 1 job_process_status: 0 job_result_code: 0 job_result: com.cloud.api.response.UserVmResponse/virtualmachine/{"id":{"_tableName":"vm_instance","_value":24},"name":"From-Xen-30","displayname":"From-Xen-30","account":"admin","projectid":{"_tableName":"projects"},"domainid":{"_tableName":"domain","_value":1},"domain":"ROOT","created":"2014-04-26T09:42:57+0800","state":"Running","haenable":false,"groupid":{"_tableName":"instance_group"},"zoneid":{"_tableName":"data_center","_value":1},"zonename":"?????????","hostid":{"_tableName":"host","_value":1},"hostname":"xenserver-1","templateid":{"_tableName":"vm_template","_value":205},"templatename":"From-Xen-30","templatedisplaytext":"From-Xen-30","passwordenabled":false,"isoid":{"_tableName":"vm_template"},"serviceofferingid":{"_tableName":"disk_offering","_value":2},"serviceofferingname":"Medium Instance","cpunumber":1,"cpuspeed":1000,"memory":1024,"cpuused":"6.26%","networkkbsread":4473924,"networkkbswrite":12666,"guestosid":{"_tableName":"guest_os","_value":57},"rootdeviceid":1,"rootdevicetype":"NetworkFilesystem","securitygroup":[{"id":{"_tableName":"security_group","_value":1},"name":"default","description":"Default Security Group","projectid":{"_tableName":"projects"},"domainid":{"_tableName":"domain"},"jobid":{"_tableName":"async_job"}}],"nic":[{"id":{"_tableName":"nics","_value":30},"networkid":{"_tableName":"networks","_value":204},"netmask":"255.255.255.0","gateway":"10.30.18.1","ipaddress":"10.30.18.30","isolationuri":"ec2://untagged","broadcasturi":"vlan://untagged","traffictype":"Guest","type":"Shared","isdefault":true,"macaddress":"06:2a:ec:00:00:0f","jobid":{"_tableName":"async_job"}}],"hypervisor":"XenServer","publicipid":{"_tableName":"user_ip_address"},"instancename":"i-2-24-VM","tags":[],"jobid":{"_tableName":"async_job"}} job_init_msid: 233845175752474 job_complete_msid: 233845175752474 created: 2014-04-26 11:28:14 last_updated: 2014-04-26 11:28:38 last_polled: 2014-04-26 11:28:35 removed: NULL uuid: 6db2ccf4-31d0-4ee7-8e74-50f49b4d2f72 2 rows in set (0.00 sec) |
备注:该表中存储自动伸缩的策略
mysql> select * from autoscale_policies \G; Empty set (0.00 sec) |
备注:该表中存放自动伸缩策略和出发条件的映射关系
mysql> select * from autoscale_policy_condition_map \G; Empty set (0.00 sec) |
mysql> select * from autoscale_vmgroup_policy_map \G; Empty set (0.00 sec) |
mysql> select * from autoscale_vmgroups \G; Empty set (0.00 sec) |
mysql> select * from autoscale_vmprofiles \G; Empty set (0.00 sec) |
备注:该表中存放数据中心相关信息,相当于CS中的Zone
mysql> select * from data_center \G; *************************** 1. row *************************** id: 1 name: ????????? uuid: 88b302a2-6629-4ba4-9180-b1be0722f2f3 description: NULL dns1: 202.194.104.35 dns2: NULL internal_dns1: 202.194.104.35 internal_dns2: NULL gateway: NULL netmask: NULL router_mac_address: 02:00:00:00:00:01 mac_address: 26 guest_network_cidr: NULL domain: NULL domain_id: 1 networktype: Basic dns_provider: VirtualRouter gateway_provider: NULL firewall_provider: NULL dhcp_provider: VirtualRouter lb_provider: ElasticLoadBalancerVm vpn_provider: NULL userdata_provider: VirtualRouter allocation_state: Enabled zone_token: b81c220d-cb1f-3bb0-a860-a36ba68c395e is_security_group_enabled: 1 is_local_storage_enabled: 0 removed: NULL 1 row in set (0.00 sec) |
mysql> select * from data_center_details \G; Empty set (0.00 sec) |
mysql> select * from dc_storage_network_ip_range \G; Empty set (0.00 sec) |
备注:存放群集相关信息,此处我们只有一个群集
mysql> select * from cluster \G; *************************** 1. row *************************** id: 1 name: XenServer uuid: 24394cc0-a0fe-4d45-8488-e3503c6d19b6 guid: 5cd2b77e-2070-e9a6-a6ba-323a9966fc4e pod_id: 1 data_center_id: 1 hypervisor_type: XenServer cluster_type: CloudManaged allocation_state: Enabled managed_state: Managed removed: NULL 1 row in set (0.00 sec) |
mysql> select * from cluster_details \G; Empty set (0.00 sec) |
mysql> select * from cluster_vsm_map \G; Empty set (0.00 sec) |
备注:该表用于存放计算节点、存储节点、SSVM、CPVM等信息
mysql> select * from host \G; *************************** 1. row *************************** id: 1 name: xenserver-1 uuid: 2974afd1-be11-4ca5-953c-8f8b22ff150b status: Up type: Routing private_ip_address: 10.30.18.10 private_netmask: 255.255.255.0 private_mac_address: e0:db:55:03:a5:75 storage_ip_address: 10.30.18.10 storage_netmask: 255.255.255.0 storage_mac_address: e0:db:55:03:a5:75 storage_ip_address_2: NULL storage_mac_address_2: NULL storage_netmask_2: NULL cluster_id: 1 public_ip_address: 10.30.18.10 public_netmask: 255.255.255.0 public_mac_address: e0:db:55:03:a5:75 proxy_port: NULL data_center_id: 1 pod_id: 1 cpus: 4 speed: 1800 url: iqn.2005-03.org.open-iscsi:fa588c1f3571 fs_type: NULL hypervisor_type: XenServer hypervisor_version: NULL ram: 20262436992 resource: com.cloud.hypervisor.xen.resource.XenServer602Resource version: 3.0.5.20120904142539 parent: NULL total_size: NULL capabilities: xen-3.0-x86_64 , xen-3.0-x86_32p , hvm-3.0-x86_32 , hvm-3.0-x86_32p , hvm-3.0-x86_64 guid: e4d87710-e512-412b-a7e9-5d232ee997cd available: 1 setup: 1 dom0_memory: 0 last_ping: 1365627610 mgmt_server_id: 233845175752474 disconnected: NULL created: 2014-04-25 05:16:18 removed: NULL update_count: 2 resource_state: Enabled *************************** 2. row *************************** id: 2 name: nfs://10.30.18.4/export/secondary1 uuid: 8dd3b559-d730-448d-ac2f-752a1caecd0c status: Alert type: SecondaryStorage private_ip_address: nfs private_netmask: 255.255.255.0 private_mac_address: d4:ae:52:a2:17:1b storage_ip_address: 10.10.7.9 storage_netmask: 255.255.255.0 storage_mac_address: d4:ae:52:a2:17:1b storage_ip_address_2: NULL storage_mac_address_2: NULL storage_netmask_2: NULL cluster_id: NULL public_ip_address: NULL public_netmask: NULL public_mac_address: NULL proxy_port: NULL data_center_id: 1 pod_id: NULL cpus: NULL speed: NULL url: nfs://10.30.18.4/export/secondary1 fs_type: NULL hypervisor_type: None hypervisor_version: NULL ram: 0 resource: NULL version: 3.0.5.20120904142539 parent: d8852827-dc7e-3121-a7ac-faa842b1bd7b total_size: 107374182400 capabilities: NULL guid: nfs://10.30.18.4/export/secondary1 available: 1 setup: 0 dom0_memory: 0 last_ping: 1365627920 mgmt_server_id: NULL disconnected: NULL created: 2014-04-25 05:16:30 removed: NULL update_count: 3 resource_state: Enabled *************************** 3. row *************************** id: 3 name: v-2-VM uuid: 6387dfc8-3256-4543-85ee-6684b68961e1 status: Up type: ConsoleProxy private_ip_address: 10.30.18.20 private_netmask: 255.255.255.0 private_mac_address: 06:da:6c:00:00:05 storage_ip_address: 10.30.18.20 storage_netmask: 255.255.255.0 storage_mac_address: 06:da:6c:00:00:05 storage_ip_address_2: NULL storage_mac_address_2: NULL storage_netmask_2: NULL cluster_id: NULL public_ip_address: 10.30.18.31 public_netmask: 255.255.255.0 public_mac_address: 06:c6:02:00:00:10 proxy_port: NULL data_center_id: 1 pod_id: 1 cpus: NULL speed: NULL url: NoIqn fs_type: NULL hypervisor_type: NULL hypervisor_version: NULL ram: 0 resource: NULL version: 3.0.5.20120904142539 parent: NULL total_size: NULL capabilities: NULL guid: Proxy.2-ConsoleProxyResource available: 1 setup: 0 dom0_memory: 0 last_ping: 1365809628 mgmt_server_id: 233845175752474 disconnected: NULL created: 2014-04-25 05:18:02 removed: NULL update_count: 422 resource_state: Enabled *************************** 4. row *************************** id: 4 name: s-1-VM uuid: 935b6091-9c2f-4091-ab8d-ec0cf7099d3f status: Up type: SecondaryStorageVM private_ip_address: 10.30.18.17 private_netmask: 255.255.255.0 private_mac_address: 06:44:70:00:00:02 storage_ip_address: 10.30.18.17 storage_netmask: 255.255.255.0 storage_mac_address: 06:44:70:00:00:02 storage_ip_address_2: NULL storage_mac_address_2: NULL storage_netmask_2: NULL cluster_id: NULL public_ip_address: 10.30.18.37 public_netmask: 255.255.255.0 public_mac_address: 06:fb:de:00:00:16 proxy_port: NULL data_center_id: 1 pod_id: 1 cpus: NULL speed: NULL url: NoIqn fs_type: NULL hypervisor_type: NULL hypervisor_version: NULL ram: 0 resource: NULL version: 3.0.5.20120904142539 parent: NULL total_size: NULL capabilities: NULL guid: s-1-VM-PremiumSecondaryStorageResource available: 1 setup: 0 dom0_memory: 0 last_ping: 1365628069 mgmt_server_id: 233845175752474 disconnected: NULL created: 2014-04-25 05:19:02 removed: NULL update_count: 2 resource_state: Enabled 4 rows in set (0.00 sec) |
mysql> select * from host_details \G; *************************** 1. row *************************** id: 1 host_id: 1 name: product_version value: 6.0.2 *************************** 2. row *************************** id: 2 host_id: 1 name: private.network.device value: Pool-wide network associated with eth1 *************************** 3. row *************************** id: 3 host_id: 1 name: com.cloud.network.Networks.RouterPrivateIpStrategy value: DcGlobal *************************** 4. row *************************** id: 4 host_id: 1 name: Hypervisor.Version value: 4.1.2 *************************** 5. row *************************** id: 5 host_id: 1 name: Host.OS value: XenServer *************************** 6. row *************************** id: 6 host_id: 1 name: Host.OS.Kernel.Version value: 2.6.32.12-0.7.1.xs6.0.2.542.170665xen *************************** 7. row *************************** id: 7 host_id: 1 name: wait value: 600 *************************** 8. row *************************** id: 8 host_id: 1 name: password value: 0puQKtE8JaOtkvBAXKtQg1ud52CLWPAB *************************** 9. row *************************** id: 9 host_id: 1 name: url value: 10.30.18.10 *************************** 10. row *************************** id: 10 host_id: 1 name: username value: root *************************** 11. row *************************** id: 11 host_id: 1 name: product_brand value: XenServer *************************** 12. row *************************** id: 12 host_id: 1 name: product_version_text_short value: 6.0.2 *************************** 13. row *************************** id: 13 host_id: 1 name: can_bridge_firewall value: false *************************** 14. row *************************** id: 14 host_id: 1 name: Host.OS.Version value: 6.0.2 *************************** 15. row *************************** id: 15 host_id: 1 name: instance.name value: VM *************************** 16. row *************************** id: 16 host_id: 2 name: mount.parent value: dummy *************************** 17. row *************************** id: 17 host_id: 2 name: mount.path value: dummy *************************** 18. row *************************** id: 18 host_id: 2 name: orig.url value: nfs://10.30.18.4/export/secondary1 18 rows in set (0.00 sec) |
备注:该表中存放pod提供点的相关信息
mysql> select * from host_pod_ref \G; *************************** 1. row *************************** id: 1 name: XenServer uuid: 46b6e248-2154-4fe1-918e-1fe52376f9c1 data_center_id: 1 gateway: 10.30.18.1 cidr_address: 10.30.18.0 cidr_size: 24 description: 10.30.18.16-10.30.18.24 allocation_state: Enabled external_dhcp: 0 removed: NULL 1 row in set (0.00 sec) |
备注:该表中存放节点标签的相关信息
mysql> select * from host_tags \G; *************************** 1. row *************************** id: 1 host_id: 1 tag: xenserver-1 1 row in set (0.00 sec) |
mysql> select * from storage_pool \G; *************************** 1. row *************************** id: 200 name: primary-1 uuid: e6a6703b-13bf-36d9-951b-48eed92fd700 pool_type: NetworkFilesystem port: 2049 data_center_id: 1 pod_id: 1 cluster_id: 1 available_bytes: 2193620992000 capacity_bytes: 2197949513728 host_address: 10.30.18.4 path: /export/primary1 created: 2014-04-25 05:16:22 removed: NULL update_time: NULL status: Up 1 row in set (0.00 sec) |
mysql> select * from storage_pool_details \G; *************************** 1. row *************************** id: 1 pool_id: 200 name: primary-1 value: true 1 row in set (0.00 sec) |
mysql> select * from storage_pool_host_ref \G; *************************** 1. row *************************** id: 1 host_id: 1 pool_id: 200 created: 2014-04-25 05:16:29 last_updated: NULL local_path: /mnt/e6a6703b-13bf-36d9-951b-48eed92fd700 1 row in set (0.00 sec) |
mysql> select * from storage_pool_work \G; Empty set (0.00 sec) |
mysql> select * from stack_maid \G; Empty set (0.00 sec) |
备注:该表中存放了管理节点的相关信息
mysql> select * from mshost \G; *************************** 1. row *************************** id: 1 msid: 233845175752474 runid: 1398402068764 name: master state: Up version: 3.0.5.20120904142539 service_ip: 10.30.18.2 service_port: 9090 last_update: 2014-04-27 09:22:47 removed: NULL alert_count: 0 1 row in set (0.00 sec) |
mysql> select * from mshost_peer \G; *************************** 1. row *************************** id: 2 owner_mshost: 1 peer_mshost: 1 peer_runid: 1398402068764 peer_state: Up last_update: 2014-04-25 05:01:11 1 row in set (0.00 sec) |
备注:该表中存放CPVM系统虚拟机信息
mysql> select * from console_proxy \G; *************************** 1. row *************************** id: 2 public_mac_address: 06:c6:02:00:00:10 public_ip_address: 10.30.18.31 public_netmask: 255.255.255.0 active_session: 1 last_update: 2014-04-25 11:40:26 session_details: { "connections": [ { "id": 35, "clientInfo": "", "host": "10.30.18.10", "port": 5905, "tag": "a5fce0db-d448-4b0e-b525-6db975da6f43", "createTime": 1398426025647, "lastUsedTime": 1398426025647 } ] } 1 row in set (0.00 sec) |
mysql> select * from secondary_storage_vm \G; *************************** 1. row *************************** id: 1 public_mac_address: 06:fb:de:00:00:16 public_ip_address: 10.30.18.37 public_netmask: 255.255.255.0 guid: NULL nfs_share: NULL last_update: NULL role: templateProcessor 1 row in set (0.00 sec) |
mysql> select * from virtual_router_providers \G; *************************** 1. row *************************** id: 1 nsp_id: 1 uuid: 50165c67-597a-4eef-b5e0-e48e1621ff54 type: VirtualRouter enabled: 1 removed: NULL *************************** 2. row *************************** id: 2 nsp_id: 3 uuid: 37796fbc-86e4-46f9-86b4-4eb2115a3a2c type: VPCVirtualRouter enabled: 0 removed: NULL 2 rows in set (0.00 sec) |
mysql> select * from router_network_ref \G; *************************** 1. row *************************** id: 1 router_id: 4 network_id: 204 guest_type: Shared 1 row in set (0.00 sec) |
备注:该表中存放vm分组的的相关信息
mysql> select * from instance_group \G; Empty set (0.00 sec) |
备注:该表中存放vm和group的映射关系
mysql> select * from instance_group_vm_map \G; Empty set (0.00 sec) |
mysql> select * from vm_instance limit 15 \G; *************************** 1. row *************************** id: 1 name: s-1-VM uuid: 49731027-ba5d-4f65-a683-cfe86ee2a3f5 instance_name: s-1-VM state: Running vm_template_id: 1 guest_os_id: 133 private_mac_address: 06:44:70:00:00:02 private_ip_address: 10.30.18.17 pod_id: 1 data_center_id: 1 host_id: 1 last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: fk1fV87aWsBU4glpklIgdBHEA52oKGzf ha_enabled: 0 limit_cpu_use: 0 update_count: 3 update_time: 2014-04-25 05:19:08 created: 2014-04-25 05:16:39 removed: NULL type: SecondaryStorageVm vm_type: SecondaryStorageVm account_id: 1 domain_id: 1 service_offering_id: 7 reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 hypervisor_type: XenServer *************************** 2. row *************************** id: 2 name: v-2-VM uuid: b4942404-4032-49eb-ae4e-d6032179a01c instance_name: v-2-VM state: Running vm_template_id: 1 guest_os_id: 133 private_mac_address: 06:da:6c:00:00:05 private_ip_address: 10.30.18.20 pod_id: 1 data_center_id: 1 host_id: 1 last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: coV2oBAw/vWw39URrP91fpNCC0Eu9HwR9plvLf9eWWs= ha_enabled: 0 limit_cpu_use: 0 update_count: 3 update_time: 2014-04-25 05:18:07 created: 2014-04-25 05:16:39 removed: NULL type: ConsoleProxy vm_type: ConsoleProxy account_id: 1 domain_id: 1 service_offering_id: 8 reservation_id: 605eb43f-8d68-4fe9-8633-7207d35489c8 hypervisor_type: XenServer *************************** 3. row *************************** id: 3 name: vm-1 uuid: f5d392fe-c8d0-4923-b5b9-9d1ab0135561 instance_name: i-2-3-VM state: Expunging vm_template_id: 203 guest_os_id: 57 private_mac_address: 06:e1:94:00:00:17 private_ip_address: 10.30.18.38 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: 2 proxy_assign_time: 2014-04-25 10:45:34 vnc_password: yNWJnejr+hBbi2llKOg7DirU9UE96p1TI9tiDXOyrpk= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-25 10:57:11 created: 2014-04-25 10:42:58 removed: 2014-04-25 10:57:12 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 2 reservation_id: NULL hypervisor_type: XenServer *************************** 4. row *************************** id: 4 name: r-4-VM uuid: bd4da983-1f45-4e94-85ae-b08889f878e7 instance_name: r-4-VM state: Running vm_template_id: 1 guest_os_id: 133 private_mac_address: 0e:00:a9:fe:02:fc private_ip_address: 169.254.2.252 pod_id: 1 data_center_id: 1 host_id: 1 last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: eEFt4G4RkQVgc/gG8y/F7sjA/94ICBr+ ha_enabled: 1 limit_cpu_use: 0 update_count: 3 update_time: 2014-04-25 10:43:54 created: 2014-04-25 10:43:00 removed: NULL type: DomainRouter vm_type: DomainRouter account_id: 1 domain_id: 1 service_offering_id: 10 reservation_id: b1b901ef-91e8-495f-a3aa-e3540799ceac hypervisor_type: XenServer *************************** 5. row *************************** id: 5 name: vm-1 uuid: 1d80a663-87d1-4760-bfef-877c341d3973 instance_name: i-2-5-VM state: Expunging vm_template_id: 204 guest_os_id: 57 private_mac_address: 06:1b:c4:00:00:0e private_ip_address: 10.30.18.29 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: 2 proxy_assign_time: 2014-04-25 11:04:46 vnc_password: cPhB53RHoIenGX/RDqvv6KTPi2TLb+CsWzdXLlQArkU= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-25 11:09:13 created: 2014-04-25 11:02:46 removed: 2014-04-25 11:09:14 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 2 reservation_id: NULL hypervisor_type: XenServer *************************** 6. row *************************** id: 6 name: vm-1 uuid: a5fce0db-d448-4b0e-b525-6db975da6f43 instance_name: i-2-6-VM state: Expunging vm_template_id: 204 guest_os_id: 57 private_mac_address: 06:56:8e:00:00:0a private_ip_address: 10.30.18.25 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: 2 proxy_assign_time: 2014-04-25 11:28:44 vnc_password: XH9vNzf5xhEfyvXRu//Z4QZFD2An+iUe6q7h4vxpf0I= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-25 11:33:14 created: 2014-04-25 11:26:59 removed: 2014-04-25 11:33:16 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 2 reservation_id: NULL hypervisor_type: XenServer *************************** 7. row *************************** id: 7 name: vm-1 uuid: 214e24a0-9667-4ce0-a9d3-21b23e7e9049 instance_name: i-2-7-VM state: Expunging vm_template_id: 205 guest_os_id: 57 private_mac_address: 06:b7:ca:00:00:0e private_ip_address: 10.30.18.29 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: 2 proxy_assign_time: 2014-04-25 11:38:20 vnc_password: JvUmD0j0QAZpFTDjlze8lIjYaBHUpuYGfrzhFeWq210= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-25 11:43:16 created: 2014-04-25 11:33:48 removed: 2014-04-25 11:43:28 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 2 reservation_id: NULL hypervisor_type: XenServer *************************** 8. row *************************** id: 8 name: vm-1 uuid: 920ab398-68d8-4f60-b4cb-b90944a1ff33 instance_name: i-2-8-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:f0:f8:00:00:18 private_ip_address: 10.30.18.39 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: CxKV81o6pt1LRF4trMmnUnfUq/nygWQoK01+rylxYqU= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:53:36 created: 2014-04-26 01:09:09 removed: 2014-04-26 01:54:01 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 9. row *************************** id: 9 name: vm-2 uuid: 20e7f2f8-aec9-4029-96fb-e3163f3f03c4 instance_name: i-2-9-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:8f:b6:00:00:0e private_ip_address: 10.30.18.29 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: kuQ6mB7Hd2Ys7OwAAutWI58DmdXkeKUiaeOoOEIqETs= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:21:30 created: 2014-04-26 01:10:37 removed: 2014-04-26 01:21:31 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 10. row *************************** id: 10 name: vm-3 uuid: 7745b408-5a78-418c-a532-ef5a17f45f04 instance_name: i-2-10-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:94:be:00:00:12 private_ip_address: 10.30.18.33 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: 7614xRX9oLdlC623WVA+sbdzw8eVsstSoQBCyEGCiaA= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:54:01 created: 2014-04-26 01:11:44 removed: 2014-04-26 01:54:07 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 11. row *************************** id: 11 name: vm-4 uuid: 84bcd384-774a-46e0-b914-44ae36449fa4 instance_name: i-2-11-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:0b:34:00:00:0f private_ip_address: 10.30.18.30 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: mrpkD5HZtx1dWgC1k5EhF00zdttnCpVzANQQcauXXVM= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:27:32 created: 2014-04-26 01:12:13 removed: 2014-04-26 01:27:33 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 12. row *************************** id: 12 name: vm-5 uuid: e4bccb13-4bc7-45c6-924b-89f54df3b9e7 instance_name: i-2-12-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:0d:30:00:00:11 private_ip_address: 10.30.18.32 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: U65NbrHHdUsQngiPjvflinfNQAyrPL2kadQwfhYMuk4= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:47:35 created: 2014-04-26 01:12:51 removed: 2014-04-26 01:47:36 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 13. row *************************** id: 13 name: vm-6 uuid: 8113541f-b98e-422a-aea9-ec662819a5f1 instance_name: i-2-13-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:a6:9c:00:00:0c private_ip_address: 10.30.18.27 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: j+1iDQz9mnssZEcIOt5KfMTlKGVOHTKfZ808K/RPHa0= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:54:07 created: 2014-04-26 01:13:30 removed: 2014-04-26 01:54:08 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 14. row *************************** id: 14 name: vm-7 uuid: 17a60f45-f8c5-47af-ae7c-fecad30bcfe1 instance_name: i-2-14-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:14:0a:00:00:13 private_ip_address: 10.30.18.34 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: nPGC+MJ6qAZAQfM49htIEUrRdLWWTbcB7/ISjO1TJs0= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:54:09 created: 2014-04-26 01:14:29 removed: 2014-04-26 01:54:10 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer *************************** 15. row *************************** id: 15 name: vm-8 uuid: 85d6a1b3-bc7b-4725-aa81-b2dde56c20c3 instance_name: i-2-15-VM state: Expunging vm_template_id: 5 guest_os_id: 12 private_mac_address: 06:ac:84:00:00:15 private_ip_address: 10.30.18.36 pod_id: 1 data_center_id: 1 host_id: NULL last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: jmehD58OWnD7IDtoMdYqZkYAaBa+UsiTWyzJBn6KE2o= ha_enabled: 0 limit_cpu_use: 0 update_count: 7 update_time: 2014-04-26 01:56:10 created: 2014-04-26 01:14:47 removed: 2014-04-26 01:56:12 type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 11 reservation_id: NULL hypervisor_type: XenServer 15 rows in set (0.00 sec) |
mysql> select * from user_ip_address \G; *************************** 1. row *************************** id: 1 uuid: 0b1d8b0b-b206-401f-ad7e-570c00f21559 account_id: NULL domain_id: NULL public_ip_address: 10.30.18.25 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 10 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 2. row *************************** id: 2 uuid: f40fa190-c75b-4c74-ba52-84f9be363ae0 account_id: NULL domain_id: NULL public_ip_address: 10.30.18.26 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 11 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 3. row *************************** id: 3 uuid: 88d375c4-65cf-4322-8e7e-82649771dcbe account_id: NULL domain_id: NULL public_ip_address: 10.30.18.27 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 12 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 4. row *************************** id: 4 uuid: 07e8b8b9-cfd1-4c52-96bd-ef17e842a5e6 account_id: 1 domain_id: 1 public_ip_address: 10.30.18.28 data_center_id: 1 source_nat: 0 allocated: 2014-04-25 10:43:00 vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Allocated mac_address: 13 source_network_id: 204 network_id: 204 physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 5. row *************************** id: 5 uuid: 532b236d-33f4-4c2f-8a03-0ac93e9c6dab account_id: 2 domain_id: 1 public_ip_address: 10.30.18.29 data_center_id: 1 source_nat: 0 allocated: 2014-04-26 01:23:16 vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Allocated mac_address: 14 source_network_id: 204 network_id: 204 physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 6. row *************************** id: 6 uuid: 7c195723-5c8c-402d-9797-1259573faff6 account_id: 2 domain_id: 1 public_ip_address: 10.30.18.30 data_center_id: 1 source_nat: 0 allocated: 2014-04-26 01:42:58 vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Allocated mac_address: 15 source_network_id: 204 network_id: 204 physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 7. row *************************** id: 7 uuid: d22d7d2b-d1e7-4eaa-9c7d-a2b05a27b06f account_id: 1 domain_id: 1 public_ip_address: 10.30.18.31 data_center_id: 1 source_nat: 0 allocated: 2014-04-25 05:16:41 vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Allocated mac_address: 16 source_network_id: 204 network_id: 204 physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 8. row *************************** id: 8 uuid: 08b3355d-6174-4a48-bfff-51a0552402ae account_id: 2 domain_id: 1 public_ip_address: 10.30.18.32 data_center_id: 1 source_nat: 0 allocated: 2014-04-26 01:48:52 vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Allocated mac_address: 17 source_network_id: 204 network_id: 204 physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 9. row *************************** id: 9 uuid: 1e13a525-091c-4ab5-8182-4323484ca54c account_id: NULL domain_id: NULL public_ip_address: 10.30.18.33 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 18 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 10. row *************************** id: 10 uuid: 7fc22eb1-b726-490d-9560-f7ca391c199b account_id: NULL domain_id: NULL public_ip_address: 10.30.18.34 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 19 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 11. row *************************** id: 11 uuid: caddf6bc-5351-468c-87b1-e61ac2ed6744 account_id: NULL domain_id: NULL public_ip_address: 10.30.18.35 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 20 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 12. row *************************** id: 12 uuid: 3a965feb-5e6d-4175-a8df-9a9ee5b7da29 account_id: NULL domain_id: NULL public_ip_address: 10.30.18.36 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 21 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 13. row *************************** id: 13 uuid: 219a74a4-ed31-4315-bdf8-f0f1d0569754 account_id: 1 domain_id: 1 public_ip_address: 10.30.18.37 data_center_id: 1 source_nat: 0 allocated: 2014-04-25 05:16:41 vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Allocated mac_address: 22 source_network_id: 204 network_id: 204 physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 14. row *************************** id: 14 uuid: 1c1cb94c-947c-468d-afe4-cf7220231451 account_id: NULL domain_id: NULL public_ip_address: 10.30.18.38 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 23 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 15. row *************************** id: 15 uuid: 134e3eb3-43fe-433f-a037-234d0d0b78b9 account_id: NULL domain_id: NULL public_ip_address: 10.30.18.39 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 24 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL *************************** 16. row *************************** id: 16 uuid: a15d202e-c1ca-40db-9ad0-a262e6622d6c account_id: NULL domain_id: NULL public_ip_address: 10.30.18.40 data_center_id: 1 source_nat: 0 allocated: NULL vlan_db_id: 1 one_to_one_nat: 0 vm_id: NULL state: Free mac_address: 25 source_network_id: 204 network_id: NULL physical_network_id: 200 is_system: 0 vpc_id: NULL 16 rows in set (0.00 sec) |
mysql> select * from domain \G; *************************** 1. row *************************** id: 1 parent: NULL name: ROOT uuid: e500fccb-8119-45b0-ba39-039d41462670 owner: 2 path: / level: 0 child_count: 0 next_child_seq: 1 removed: NULL state: Active network_domain: NULL type: Normal 1 row in set (0.00 sec) |
mysql> select * from domain_network_ref \G; *************************** 1. row *************************** id: 1 domain_id: 1 network_id: 204 subdomain_access: 1 1 row in set (0.00 sec) |
mysql> select * from domain_router \G; *************************** 1. row *************************** id: 4 element_id: 1 public_mac_address: NULL public_ip_address: NULL public_netmask: NULL guest_netmask: NULL guest_ip_address: NULL is_redundant_router: 0 priority: 0 is_priority_bumpup: 0 redundant_state: UNKNOWN stop_pending: 0 role: VIRTUAL_ROUTER template_version: Cloudstack Release 3.0 Mon Feb 6 15:10:04 PST 2012 scripts_version: 972b36c07d446c6a53dbb0ed241be266 vpc_id: NULL 1 row in set (0.00 sec) |
mysql> select * from project_account \G; Empty set (0.00 sec) |
mysql> select * from project_invitations \G; Empty set (0.00 sec) |
mysql> select * from projects \G; Empty set (0.00 sec) |
备注:该表中存放磁盘方案相关信息
mysql> select * from disk_offering \G; *************************** 1. row *************************** id: 1 domain_id: NULL name: Small Instance uuid: 460753e7-f55e-426b-af63-15d2fb4e114d display_text: Small Instance disk_size: 0 type: Service tags: NULL recreatable: 0 use_local_storage: 0 unique_name: Cloud.Com-Small Instance system_use: 0 customized: 1 removed: NULL created: 2014-04-25 04:58:36 sort_key: 0 *************************** 2. row *************************** id: 2 domain_id: NULL name: Medium Instance uuid: 207e8fae-9916-499b-9adb-ab72b8618a46 display_text: Medium Instance disk_size: 0 type: Service tags: NULL recreatable: 0 use_local_storage: 0 unique_name: Cloud.Com-Medium Instance system_use: 0 customized: 1 removed: NULL created: 2014-04-25 04:58:36 sort_key: 0 *************************** 3. row *************************** id: 3 domain_id: NULL name: Small uuid: f9ceeff2-68a1-4d42-8f23-22ada17f29c1 display_text: Small Disk, 5 GB disk_size: 5368709120 type: Disk tags: NULL recreatable: 0 use_local_storage: 0 unique_name: Cloud.Com-Small system_use: 0 customized: 0 removed: NULL created: 2014-04-25 04:58:36 sort_key: 0 *************************** 4. row *************************** id: 4 domain_id: NULL name: Medium uuid: 72bb4945-5c17-496e-a60b-7fefb6804a1c display_text: Medium Disk, 20 GB disk_size: 21474836480 type: Disk tags: NULL recreatable: 0 use_local_storage: 0 unique_name: Cloud.Com-Medium system_use: 0 customized: 0 removed: NULL created: 2014-04-25 04:58:36 sort_key: 0 *************************** 5. row *************************** id: 5 domain_id: NULL name: Large uuid: b9a9981b-37c2-42bd-9585-ed91874072ae display_text: Large Disk, 100 GB disk_size: 107374182400 type: Disk tags: NULL recreatable: 0 use_local_storage: 0 unique_name: Cloud.Com-Large system_use: 0 customized: 0 removed: NULL created: 2014-04-25 04:58:37 sort_key: 0 *************************** 6. row *************************** id: 6 domain_id: NULL name: Custom uuid: 2d12f900-2496-46b2-9e55-7ada91e4000b display_text: Custom Disk disk_size: 0 type: Disk tags: NULL recreatable: 0 use_local_storage: 0 unique_name: Cloud.Com-Custom system_use: 0 customized: 1 removed: NULL created: 2014-04-25 04:58:37 sort_key: 0 *************************** 7. row *************************** id: 7 domain_id: NULL name: System Offering For Secondary Storage VM uuid: 21887189-b9d8-4373-aa59-4b4cc26a2665 display_text: NULL disk_size: 0 type: Service tags: NULL recreatable: 1 use_local_storage: 0 unique_name: Cloud.com-SecondaryStorage system_use: 1 customized: 1 removed: NULL created: 2014-04-25 04:58:49 sort_key: 0 *************************** 8. row *************************** id: 8 domain_id: NULL name: System Offering For Console Proxy uuid: c1719d00-0697-42c4-887a-8ae4fe417d2e display_text: NULL disk_size: 0 type: Service tags: NULL recreatable: 1 use_local_storage: 0 unique_name: Cloud.com-ConsoleProxy system_use: 1 customized: 1 removed: NULL created: 2014-04-25 04:58:49 sort_key: 0 *************************** 9. row *************************** id: 9 domain_id: NULL name: System Offering For Elastic LB VM uuid: 362707ab-39b5-4191-8ee6-2a40b3d3ae36 display_text: NULL disk_size: 0 type: Service tags: NULL recreatable: 1 use_local_storage: 0 unique_name: Cloud.Com-ElasticLBVm system_use: 1 customized: 1 removed: NULL created: 2014-04-25 04:58:49 sort_key: 0 *************************** 10. row *************************** id: 10 domain_id: NULL name: System Offering For Software Router uuid: 0590235a-22f2-4f68-b59f-640e164beefa display_text: NULL disk_size: 0 type: Service tags: NULL recreatable: 1 use_local_storage: 0 unique_name: Cloud.Com-SoftwareRouter system_use: 1 customized: 1 removed: NULL created: 2014-04-25 04:58:49 sort_key: 0 *************************** 11. row *************************** id: 11 domain_id: NULL name: mini uuid: 30ec5841-dd0e-4568-ab3d-d6fcd5a2b097 display_text: mini disk_size: 0 type: Service tags: NULL recreatable: 0 use_local_storage: 0 unique_name: NULL system_use: 0 customized: 1 removed: NULL created: 2014-04-26 01:08:33 sort_key: 0 11 rows in set (0.00 sec) |
mysql> select * from network_offerings \G; *************************** 1. row *************************** id: 1 name: System-Public-Network uuid: d0a9349d-1274-4264-84cc-a68ec1b15967 unique_name: System-Public-Network display_text: System Offering for System-Public-Network nw_rate: 0 mc_rate: 0 traffic_type: Public tags: NULL system_only: 1 specify_vlan: 0 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:41 removed: NULL default: 1 availability: Required dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: NULL elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 1 *************************** 2. row *************************** id: 2 name: System-Management-Network uuid: b5916c63-5cca-40b7-9440-42ed08ecc89a unique_name: System-Management-Network display_text: System Offering for System-Management-Network nw_rate: 0 mc_rate: 0 traffic_type: Management tags: NULL system_only: 1 specify_vlan: 0 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:41 removed: NULL default: 1 availability: Required dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: NULL elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 0 *************************** 3. row *************************** id: 3 name: System-Control-Network uuid: 98053ad1-ce4c-4c23-9817-3e1bee49c1b6 unique_name: System-Control-Network display_text: System Offering for System-Control-Network nw_rate: 0 mc_rate: 0 traffic_type: Control tags: NULL system_only: 1 specify_vlan: 0 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:41 removed: NULL default: 1 availability: Required dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: NULL elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 0 *************************** 4. row *************************** id: 4 name: System-Storage-Network uuid: 8f82203c-62ab-439f-821f-466d9b1b7bda unique_name: System-Storage-Network display_text: System Offering for System-Storage-Network nw_rate: 0 mc_rate: 0 traffic_type: Storage tags: NULL system_only: 1 specify_vlan: 0 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Required dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: NULL elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 1 *************************** 5. row *************************** id: 5 name: System-Private-Gateway-Network-Offering uuid: 2b711d40-4d1d-441e-856c-7ea2bcab9cc4 unique_name: System-Private-Gateway-Network-Offering display_text: System Offering for System-Private-Gateway-Network-Offering nw_rate: 0 mc_rate: 0 traffic_type: Guest tags: NULL system_only: 1 specify_vlan: 1 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Isolated elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 0 *************************** 6. row *************************** id: 6 name: DefaultSharedNetworkOfferingWithSGService uuid: 1151f3eb-2797-4025-8828-ad42b1b0fe83 unique_name: DefaultSharedNetworkOfferingWithSGService display_text: Offering for Shared Security group enabled networks nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 1 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Shared elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 1 *************************** 7. row *************************** id: 7 name: DefaultSharedNetworkOffering uuid: 8953bcd8-8c08-4bc4-a2a3-f35380641761 unique_name: DefaultSharedNetworkOffering display_text: Offering for Shared networks nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 1 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Shared elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 1 *************************** 8. row *************************** id: 8 name: DefaultIsolatedNetworkOfferingWithSourceNatService uuid: 687dc53c-e329-4a1b-b31c-1c76a2fc863b unique_name: DefaultIsolatedNetworkOfferingWithSourceNatService display_text: Offering for Isolated networks with Source Nat service enabled nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 0 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Required dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Isolated elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 0 *************************** 9. row *************************** id: 9 name: DefaultIsolatedNetworkOffering uuid: a2c0b586-32ed-4a21-a9c8-e9c246dcc8e8 unique_name: DefaultIsolatedNetworkOffering display_text: Offering for Isolated networks with no Source Nat service nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 1 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Isolated elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 1 *************************** 10. row *************************** id: 10 name: DefaultSharedNetscalerEIPandELBNetworkOffering uuid: 126fcc43-ba4c-45c7-85ed-c59a71a9e60c unique_name: DefaultSharedNetscalerEIPandELBNetworkOffering display_text: Offering for Shared networks with Elastic IP and Elastic LB capabilities nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 1 service_offering_id: NULL conserve_mode: 1 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 0 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Shared elastic_ip_service: 1 elastic_lb_service: 1 specify_ip_ranges: 1 *************************** 11. row *************************** id: 11 name: DefaultIsolatedNetworkOfferingForVpcNetworks uuid: b2e6f860-0510-4c91-8407-b716fc0c61e1 unique_name: DefaultIsolatedNetworkOfferingForVpcNetworks display_text: Offering for Isolated Vpc networks with Source Nat service enabled nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 0 service_offering_id: NULL conserve_mode: 0 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Isolated elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 0 *************************** 12. row *************************** id: 12 name: DefaultIsolatedNetworkOfferingForVpcNetworksNoLB uuid: ad9966a5-a33d-4152-b923-ee14455b3157 unique_name: DefaultIsolatedNetworkOfferingForVpcNetworksNoLB display_text: Offering for Isolated Vpc networks with Source Nat service enabled and LB service Disabled nw_rate: NULL mc_rate: NULL traffic_type: Guest tags: NULL system_only: 0 specify_vlan: 0 service_offering_id: NULL conserve_mode: 0 created: 2014-04-25 04:58:42 removed: NULL default: 1 availability: Optional dedicated_lb_service: 1 shared_source_nat_service: 0 sort_key: 0 redundant_router_service: 0 state: Enabled guest_type: Isolated elastic_ip_service: 0 elastic_lb_service: 0 specify_ip_ranges: 0 12 rows in set (0.00 sec) |
mysql> select * from ntwk_offering_service_map \G; *************************** 1. row *************************** id: 1 network_offering_id: 6 service: Dhcp provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 2. row *************************** id: 2 network_offering_id: 6 service: SecurityGroup provider: SecurityGroupProvider created: 2014-04-25 04:58:42 *************************** 3. row *************************** id: 3 network_offering_id: 6 service: Dns provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 4. row *************************** id: 4 network_offering_id: 6 service: UserData provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 5. row *************************** id: 5 network_offering_id: 7 service: Dhcp provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 6. row *************************** id: 6 network_offering_id: 7 service: Dns provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 7. row *************************** id: 7 network_offering_id: 7 service: UserData provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 8. row *************************** id: 8 network_offering_id: 8 service: Lb provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 9. row *************************** id: 9 network_offering_id: 8 service: PortForwarding provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 10. row *************************** id: 10 network_offering_id: 8 service: Firewall provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 11. row *************************** id: 11 network_offering_id: 8 service: SourceNat provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 12. row *************************** id: 12 network_offering_id: 8 service: StaticNat provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 13. row *************************** id: 13 network_offering_id: 8 service: Dhcp provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 14. row *************************** id: 14 network_offering_id: 8 service: Vpn provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 15. row *************************** id: 15 network_offering_id: 8 service: Gateway provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 16. row *************************** id: 16 network_offering_id: 8 service: Dns provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 17. row *************************** id: 17 network_offering_id: 8 service: UserData provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 18. row *************************** id: 18 network_offering_id: 9 service: Dhcp provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 19. row *************************** id: 19 network_offering_id: 9 service: Dns provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 20. row *************************** id: 20 network_offering_id: 9 service: UserData provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 21. row *************************** id: 21 network_offering_id: 10 service: Lb provider: Netscaler created: 2014-04-25 04:58:42 *************************** 22. row *************************** id: 22 network_offering_id: 10 service: StaticNat provider: Netscaler created: 2014-04-25 04:58:42 *************************** 23. row *************************** id: 23 network_offering_id: 10 service: Dhcp provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 24. row *************************** id: 24 network_offering_id: 10 service: SecurityGroup provider: SecurityGroupProvider created: 2014-04-25 04:58:42 *************************** 25. row *************************** id: 25 network_offering_id: 10 service: Dns provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 26. row *************************** id: 26 network_offering_id: 10 service: UserData provider: VirtualRouter created: 2014-04-25 04:58:42 *************************** 27. row *************************** id: 27 network_offering_id: 11 service: Lb provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 28. row *************************** id: 28 network_offering_id: 11 service: PortForwarding provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 29. row *************************** id: 29 network_offering_id: 11 service: SourceNat provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 30. row *************************** id: 30 network_offering_id: 11 service: StaticNat provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 31. row *************************** id: 31 network_offering_id: 11 service: Dhcp provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 32. row *************************** id: 32 network_offering_id: 11 service: Vpn provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 33. row *************************** id: 33 network_offering_id: 11 service: Gateway provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 34. row *************************** id: 34 network_offering_id: 11 service: Dns provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 35. row *************************** id: 35 network_offering_id: 11 service: NetworkACL provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 36. row *************************** id: 36 network_offering_id: 11 service: UserData provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 37. row *************************** id: 37 network_offering_id: 12 service: PortForwarding provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 38. row *************************** id: 38 network_offering_id: 12 service: SourceNat provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 39. row *************************** id: 39 network_offering_id: 12 service: StaticNat provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 40. row *************************** id: 40 network_offering_id: 12 service: Dhcp provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 41. row *************************** id: 41 network_offering_id: 12 service: Vpn provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 42. row *************************** id: 42 network_offering_id: 12 service: Gateway provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 43. row *************************** id: 43 network_offering_id: 12 service: Dns provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 44. row *************************** id: 44 network_offering_id: 12 service: NetworkACL provider: VpcVirtualRouter created: 2014-04-25 04:58:42 *************************** 45. row *************************** id: 45 network_offering_id: 12 service: UserData provider: VpcVirtualRouter created: 2014-04-25 04:58:42 45 rows in set (0.00 sec) |
mysql> select * from ntwk_service_map \G; *************************** 1. row *************************** id: 1 network_id: 204 service: SecurityGroup provider: SecurityGroupProvider created: 2014-04-25 05:15:35 *************************** 2. row *************************** id: 2 network_id: 204 service: Dns provider: VirtualRouter created: 2014-04-25 05:15:35 *************************** 3. row *************************** id: 3 network_id: 204 service: Dhcp provider: VirtualRouter created: 2014-04-25 05:15:35 *************************** 4. row *************************** id: 4 network_id: 204 service: UserData provider: VirtualRouter created: 2014-04-25 05:15:35 4 rows in set (0.00 sec) |
mysql> select * from service_offering \G; *************************** 1. row *************************** id: 1 cpu: 1 speed: 500 ram_size: 512 nw_rate: NULL mc_rate: NULL ha_enabled: 0 limit_cpu_use: 0 host_tag: NULL default_use: 0 vm_type: NULL sort_key: 0 *************************** 2. row *************************** id: 2 cpu: 1 speed: 1000 ram_size: 1024 nw_rate: NULL mc_rate: NULL ha_enabled: 0 limit_cpu_use: 0 host_tag: NULL default_use: 0 vm_type: NULL sort_key: 0 *************************** 3. row *************************** id: 7 cpu: 1 speed: 500 ram_size: 256 nw_rate: NULL mc_rate: NULL ha_enabled: 0 limit_cpu_use: 0 host_tag: NULL default_use: 1 vm_type: secondarystoragevm sort_key: 0 *************************** 4. row *************************** id: 8 cpu: 1 speed: 500 ram_size: 1024 nw_rate: 0 mc_rate: 0 ha_enabled: 0 limit_cpu_use: 0 host_tag: NULL default_use: 1 vm_type: consoleproxy sort_key: 0 *************************** 5. row *************************** id: 9 cpu: 1 speed: 128 ram_size: 128 nw_rate: 0 mc_rate: 0 ha_enabled: 1 limit_cpu_use: 0 host_tag: NULL default_use: 1 vm_type: elasticloadbalancervm sort_key: 0 *************************** 6. row *************************** id: 10 cpu: 1 speed: 500 ram_size: 128 nw_rate: NULL mc_rate: NULL ha_enabled: 1 limit_cpu_use: 0 host_tag: NULL default_use: 1 vm_type: domainrouter sort_key: 0 *************************** 7. row *************************** id: 11 cpu: 1 speed: 256 ram_size: 256 nw_rate: NULL mc_rate: NULL ha_enabled: 0 limit_cpu_use: 0 host_tag: NULL default_use: 0 vm_type: NULL sort_key: 0 7 rows in set (0.00 sec) |
备注1:快照的导出需要借助tree命令列出二级存储上的目录结构
备注2:主要关注snapshots表的“backup_snap_id”的值,该值为vhd快照文件的名称
mysql> select * from snapshot_policy \G; Empty set (0.00 sec) |
mysql> select * from snapshot_schedule \G; Empty set (0.00 sec) |
mysql> select * from snapshots \G; *************************** 1. row *************************** id: 1 data_center_id: 1 account_id: 2 domain_id: 1 volume_id: 29 disk_offering_id: 2 status: BackedUp path: 04625f12-5a13-47cf-a923-f664ad900f83 name: Feom-Xen-32_ROOT-25_20140426072726 uuid: e2c74b43-f335-4c35-95a0-1a49f3a7edda snapshot_type: 0 type_description: MANUAL size: 21474836480 created: 2014-04-26 07:27:26 removed: NULL backup_snap_id: b84fcc71-e731-4a33-9c81-8c8a82b8f5a4 swift_id: NULL sechost_id: 2 prev_snap_id: 0 hypervisor_type: XenServer version: 2.2 |
备注1:快照的导出需要借助tree命令列出二级存储上的目录结构
备注:
mysql> select id from vm_template where name="XP-SP2"; #得到id=202
+-----+ | id | +-----+ | 202 | +-----+ |
mysql> select install_path from template_host_ref where template_id="202" and destroyed="0"; #得到vhd文件
+----------------------------------------------------------------+ | install_path | +----------------------------------------------------------------+ | template/tmpl//2/202//066508b8-b6a7-3e20-b91f-9e8ab46c7b43.vhd | +----------------------------------------------------------------+ |
mysql> select * from vm_template \G; *************************** 11. row *************************** id: 202 unique_name: 202-2-c12d92c2-f887-338c-92d5-f94b763cdd33 name: XP-SP2 uuid: 7fe10c23-bcc3-4dbf-b8a3-0cc127572fdf public: 1 featured: 1 type: USER hvm: 1 bits: 64 url: http://10.30.18.2/xp-sp2.vhd format: VHD created: 2014-04-25 05:21:15 removed: NULL account_id: 2 checksum: ad809b9d150d250a26ca71e789f84c84 display_text: XP-SP2 enable_password: 0 enable_sshkey: 0 guest_os_id: 57 bootable: 1 prepopulate: 0 cross_zones: 1 extractable: 1 hypervisor_type: XenServer source_template_id: NULL template_tag: NULL sort_key: 0 |
mysql> select * from template_host_ref \G; *************************** 8. row *************************** id: 8 host_id: 2 template_id: 202 created: 2014-04-25 05:21:15 last_updated: 2014-04-25 05:23:39 job_id: 4af5a40d-359a-4c32-ac10-d0d2a8b27d1b download_pct: 100 size: 21474836480 physical_size: 2733765120 download_state: DOWNLOADED error_str: Install completed successfully at 4/25/14 5:23 AM local_path: /mnt/SecStorage/d8852827-dc7e-3121-a7ac-faa842b1bd7b/template/tmpl/2/202/dnld6780578029370815494tmp_ install_path: template/tmpl//2/202//066508b8-b6a7-3e20-b91f-9e8ab46c7b43.vhd url: http://10.30.18.2/xp-sp2.vhd destroyed: 0 is_copy: 0 |
mysql> select * from template_spool_ref \G; *************************** 1. row *************************** id: 1 pool_id: 200 template_id: 1 created: 2014-04-25 05:16:43 last_updated: NULL job_id: NULL download_pct: 100 download_state: DOWNLOADED error_str: NULL local_path: 7df29dcb-6b61-4c3e-9154-0cdb7a43f6a5 install_path: 7df29dcb-6b61-4c3e-9154-0cdb7a43f6a5 template_size: 565240320 marked_for_gc: 0 *************************** 2. row *************************** id: 2 pool_id: 200 template_id: 203 created: 2014-04-25 10:44:10 last_updated: NULL job_id: NULL download_pct: 100 download_state: DOWNLOADED error_str: NULL local_path: f6b78a5b-a74d-4304-8c24-3eec8a7b7456 install_path: f6b78a5b-a74d-4304-8c24-3eec8a7b7456 template_size: 3263279616 marked_for_gc: 0 *************************** 3. row *************************** id: 3 pool_id: 200 template_id: 204 created: 2014-04-25 11:03:04 last_updated: NULL job_id: NULL download_pct: 100 download_state: DOWNLOADED error_str: NULL local_path: 406c648c-1e92-4d38-8df5-a0ee0ae5bae4 install_path: 406c648c-1e92-4d38-8df5-a0ee0ae5bae4 template_size: 3658314240 marked_for_gc: 0 *************************** 4. row *************************** id: 4 pool_id: 200 template_id: 205 created: 2014-04-25 11:34:06 last_updated: NULL job_id: NULL download_pct: 100 download_state: DOWNLOADED error_str: NULL local_path: b66df6b8-0fcc-4396-a45c-8f8293b69667 install_path: b66df6b8-0fcc-4396-a45c-8f8293b69667 template_size: 11594740224 marked_for_gc: 0 4 rows in set (0.00 sec) |
mysql> select * from template_swift_ref \G; Empty set (0.00 sec) |
mysql> select * from template_zone_ref \G; *************************** 1. row *************************** id: 1 zone_id: 1 template_id: 1 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:16:31 removed: NULL *************************** 2. row *************************** id: 2 zone_id: 1 template_id: 2 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:16:31 removed: NULL *************************** 3. row *************************** id: 3 zone_id: 1 template_id: 3 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:16:31 removed: NULL *************************** 4. row *************************** id: 4 zone_id: 1 template_id: 4 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:19:05 removed: NULL *************************** 5. row *************************** id: 5 zone_id: 1 template_id: 5 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:19:05 removed: NULL *************************** 6. row *************************** id: 6 zone_id: 1 template_id: 7 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:19:06 removed: NULL *************************** 7. row *************************** id: 7 zone_id: 1 template_id: 8 created: 2014-04-25 05:16:31 last_updated: 2014-04-25 05:16:31 removed: NULL *************************** 8. row *************************** id: 8 zone_id: 1 template_id: 9 created: 2014-04-25 05:16:32 last_updated: 2014-04-25 05:16:32 removed: NULL *************************** 9. row *************************** id: 9 zone_id: 1 template_id: 202 created: 2014-04-25 05:21:15 last_updated: 2014-04-25 05:21:15 removed: NULL *************************** 10. row *************************** id: 10 zone_id: 1 template_id: 203 created: 2014-04-25 10:38:23 last_updated: 2014-04-25 10:38:23 removed: NULL *************************** 11. row *************************** id: 11 zone_id: 1 template_id: 204 created: 2014-04-25 10:57:48 last_updated: 2014-04-25 10:57:48 removed: NULL *************************** 12. row *************************** id: 12 zone_id: 1 template_id: 205 created: 2014-04-25 11:15:39 last_updated: 2014-04-25 11:15:39 removed: NULL 12 rows in set (0.00 sec) |
mysql> select * from vm_template_details \G; Empty set (0.00 sec) |
mysql> select * from volume_host_ref \G; Empty set (0.00 sec) |
mysql> select * from volumes \G; *************************** 4. row *************************** id: 4 account_id: 2 domain_id: 1 pool_id: 200 last_pool_id: NULL instance_id: 25 device_id: 1 name: From-Xen-32-E uuid: d95b871b-bafd-4977-969f-a35df98564b9 size: 0 folder: /export/primary1 path: 97946a32-c7ac-4462-830b-8118625d426b pod_id: 1 data_center_id: 1 iscsi_name: NULL host_ip: NULL volume_type: DATADISK pool_type: NULL disk_offering_id: 6 template_id: NULL first_snapshot_backup_uuid: NULL recreatable: 0 created: 2014-04-25 05:34:27 attached: 2014-04-26 02:05:12 updated: 2014-04-26 02:05:12 removed: NULL state: Ready chain_info: NULL update_count: 3 |
备注:该表中存放当前CS版本支持的vm虚拟机的系统名称
mysql> desc guest_os \G; *************************** 1. row *************************** Field: id Type: bigint(20) unsigned Null: NO Key: PRI Default: NULL Extra: auto_increment *************************** 2. row *************************** Field: category_id Type: bigint(20) unsigned Null: NO Key: MUL Default: NULL Extra: *************************** 3. row *************************** Field: name Type: varchar(255) Null: YES Key: Default: NULL Extra: *************************** 4. row *************************** Field: uuid Type: varchar(40) Null: YES Key: UNI Default: NULL Extra: *************************** 5. row *************************** Field: display_name Type: varchar(255) Null: NO Key: Default: NULL Extra: 5 rows in set (0.00 sec) |
备注:该表中存放当前版本CS支持的vm虚拟机系统分类
mysql> select * from guest_os_category \G; *************************** 1. row *************************** id: 1 name: CentOS uuid: 9a007e63-cf5b-4eb7-91cc-3466391cf160 *************************** 2. row *************************** id: 2 name: Debian uuid: 9d9145e9-8669-4c0b-b946-b8769b15e6f5 *************************** 3. row *************************** id: 3 name: Oracle uuid: 6ba6873a-8ad7-4ab4-a132-0d2766ac2517 *************************** 4. row *************************** id: 4 name: RedHat uuid: a5cf2313-24a9-4b99-b546-613735693687 *************************** 5. row *************************** id: 5 name: SUSE uuid: 3d24b024-2f2b-4fd9-91c9-bc948b9ad6aa *************************** 6. row *************************** id: 6 name: Windows uuid: eb8d6630-12ef-4f86-98ff-74dc29ae2a59 *************************** 7. row *************************** id: 7 name: Other uuid: 5ed02529-6368-4222-a0e0-f6f8ca4561ee *************************** 8. row *************************** id: 8 name: Novel uuid: aba5f37f-5e00-464e-8925-e8df061aaf05 *************************** 9. row *************************** id: 9 name: Unix uuid: 57d2db2d-781b-464b-86db-69f42791a7a3 *************************** 10. row *************************** id: 10 name: Ubuntu uuid: de6afc4f-b89e-4a50-aee8-85eb55521bd4 10 rows in set (0.00 sec) |
备注:该表中存放当前CS版本支持的Hypervisor类型及版本
mysql> select * from hypervisor_capabilities \G; *************************** 1. row *************************** id: 1 uuid: 7071f7f9-d5a3-4eaf-8abd-6cbc0bb964c6 hypervisor_type: XenServer hypervisor_version: default max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 2. row *************************** id: 2 uuid: 88abf755-9a5f-4db9-92a7-f21d3fb7d0f1 hypervisor_type: XenServer hypervisor_version: XCP 1.0 max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 3. row *************************** id: 3 uuid: a6a6573f-de3a-4994-a439-6290739e4489 hypervisor_type: XenServer hypervisor_version: 5.6 max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 4. row *************************** id: 4 uuid: 564381ab-956d-4ee4-9b7e-d6a030359cb7 hypervisor_type: XenServer hypervisor_version: 5.6 FP1 max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 5. row *************************** id: 5 uuid: 67d2294c-6859-4a76-83e2-5e478f7ccd9b hypervisor_type: XenServer hypervisor_version: 5.6 SP2 max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 6. row *************************** id: 6 uuid: b01a532e-b8bb-48af-9545-2e8dfb9f6709 hypervisor_type: XenServer hypervisor_version: 6.0 max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 13 *************************** 7. row *************************** id: 7 uuid: 67a53ca7-0b14-4735-b22f-69255ca88bd5 hypervisor_type: XenServer hypervisor_version: 6.0.2 max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 13 *************************** 8. row *************************** id: 8 uuid: 8a0af145-473c-4938-a114-27942b58aba9 hypervisor_type: VMware hypervisor_version: default max_guests_limit: 128 security_group_enabled: 0 max_data_volumes_limit: 6 *************************** 9. row *************************** id: 9 uuid: 0157ac10-1691-4c12-98a9-6e07283874b9 hypervisor_type: VMware hypervisor_version: 4.0 max_guests_limit: 128 security_group_enabled: 0 max_data_volumes_limit: 6 *************************** 10. row *************************** id: 10 uuid: 3d26ead3-383d-46b7-b901-eeb714d1967f hypervisor_type: VMware hypervisor_version: 4.1 max_guests_limit: 128 security_group_enabled: 0 max_data_volumes_limit: 6 *************************** 11. row *************************** id: 11 uuid: 8ebe7295-fb73-4291-a0f8-0372447dd8c3 hypervisor_type: VMware hypervisor_version: 5.0 max_guests_limit: 128 security_group_enabled: 0 max_data_volumes_limit: 6 *************************** 12. row *************************** id: 12 uuid: 53f1586d-fc44-4abc-99b8-ebd195c459fd hypervisor_type: KVM hypervisor_version: default max_guests_limit: 50 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 13. row *************************** id: 13 uuid: 994ec674-6629-4600-bb54-178dca23e4db hypervisor_type: Ovm hypervisor_version: default max_guests_limit: 25 security_group_enabled: 1 max_data_volumes_limit: 6 *************************** 14. row *************************** id: 14 uuid: 30be591b-aefc-4129-b36f-4b4284a3bea2 hypervisor_type: Ovm hypervisor_version: 2.3 max_guests_limit: 25 security_group_enabled: 1 max_data_volumes_limit: 6 14 rows in set (0.00 sec) |
备注:该表中存放防火墙规则信息
mysql> select * from firewall_rules \G; Empty set (0.00 sec) |
mysql> select * from firewall_rules_cidrs \G; Empty set (0.00 sec) |
备注:该表中存放关于证书的相关信息
mysql> select * from keystore \G; *************************** 1. row *************************** id: 1 name: CPVMCertificate certificate: -----BEGIN CERTIFICATE----- MIIFZTCCBE2gAwIBAgIHKBCduBUoKDANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE BhMCVVMxEDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAY BgNVBAoTEUdvRGFkZHkuY29tLCBJbmMuMTMwMQYDVQQLEypodHRwOi8vY2VydGlm aWNhdGVzLmdvZGFkZHkuY29tL3JlcG9zaXRvcnkxMDAuBgNVBAMTJ0dvIERhZGR5 IFNlY3VyZSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTERMA8GA1UEBRMIMDc5Njky ODcwHhcNMTIwMjAzMDMzMDQwWhcNMTcwMjA3MDUxMTIzWjBZMRkwFwYDVQQKDBAq LnJlYWxob3N0aXAuY29tMSEwHwYDVQQLDBhEb21haW4gQ29udHJvbCBWYWxpZGF0 ZWQxGTAXBgNVBAMMECoucmVhbGhvc3RpcC5jb20wggEiMA0GCSqGSIb3DQEBAQUA A4IBDwAwggEKAoIBAQCDT9AtEfs+s/I8QXp6rrCw0iNJ0+GgsybNHheU+JpL39LM TZykCrZhZnyDvwdxCoOfE38Sa32baHKNds+y2SHnMNsOkw8OcNucHEBX1FIpOBGp h9D6xC+umx9od6xMWETUv7j6h2u+WC3OhBM8fHCBqIiAol31/IkcqDxxsHlQ8S/o CfTlXJUY6Yn628OA1XijKdRnadV0hZ829cv/PZKljjwQUTyrd0KHQeksBH+YAYSo 2JUl8ekNLsOi8/cPtfojnltzRI1GXi0ZONs8VnDzJ0a2gqZY+uxlz+CGbLnGnlN4 j9cBpE+MfUE+35Dq121sTpsSgF85Mz+pVhn2S633AgMBAAGjggG+MIIBujAPBgNV HRMBAf8EBTADAQEAMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAOBgNV HQ8BAf8EBAMCBaAwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5nb2RhZGR5 LmNvbS9nZHMxLTY0LmNybDBTBgNVHSAETDBKMEgGC2CGSAGG/W0BBxcBMDkwNwYI KwYBBQUHAgEWK2h0dHA6Ly9jZXJ0aWZpY2F0ZXMuZ29kYWRkeS5jb20vcmVwb3Np dG9yeS8wgYAGCCsGAQUFBwEBBHQwcjAkBggrBgEFBQcwAYYYaHR0cDovL29jc3Au Z29kYWRkeS5jb20vMEoGCCsGAQUFBzAChj5odHRwOi8vY2VydGlmaWNhdGVzLmdv ZGFkZHkuY29tL3JlcG9zaXRvcnkvZ2RfaW50ZXJtZWRpYXRlLmNydDAfBgNVHSME GDAWgBT9rGEyk2xF1uLuhV+auud2mWjM5zArBgNVHREEJDAighAqLnJlYWxob3N0 aXAuY29tgg5yZWFsaG9zdGlwLmNvbTAdBgNVHQ4EFgQUZyJz9/QLy5TWIIscTXID E8Xk47YwDQYJKoZIhvcNAQEFBQADggEBAKiUV3KK16mP0NpS92fmQkCLqm+qUWyN BfBVgf9/M5pcT8EiTZlS5nAtzAE/eRpBeR3ubLlaAogj4rdH7YYVJcDDLLoB2qM3 qeCHu8LFoblkb93UuFDWqRaVPmMlJRnhsRkL1oa2gM2hwQTkBDkP7w5FG1BELCgl gZI2ij2yxjge6pOEwSyZCzzbCcg9pN+dNrYyGEtB4k+BBnPA3N4r14CWbk+uxjrQ 6j2Ip+b7wOc5IuMEMl8xwTyjuX3lsLbAZyFI9RCyofwA9NqIZ1GeB6Zd196rubQp 93cmBqGGjZUs3wMrGlm7xdjlX6GQ9UvmvkMub9+lL99A5W50QgCmFeI= -----END CERTIFICATE----- key: -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCDT9AtEfs+s/I8QXp6rrCw0iNJ 0+GgsybNHheU+JpL39LMTZykCrZhZnyDvwdxCoOfE38Sa32baHKNds+y2SHnMNsOkw8OcNucHEBX 1FIpOBGph9D6xC+umx9od6xMWETUv7j6h2u+WC3OhBM8fHCBqIiAol31/IkcqDxxsHlQ8S/oCfTl XJUY6Yn628OA1XijKdRnadV0hZ829cv/PZKljjwQUTyrd0KHQeksBH+YAYSo2JUl8ekNLsOi8/cP tfojnltzRI1GXi0ZONs8VnDzJ0a2gqZY+uxlz+CGbLnGnlN4j9cBpE+MfUE+35Dq121sTpsSgF85 Mz+pVhn2S633AgMBAAECggEAH/Szd9RxbVADenCA6wxKSa3KErRyq1YN8ksJeCKMAj0FIt0caruE qO11DebWW8cwQu1Otl/cYI6pmg24/BBldMrp9IELX/tNJo+lhPpRyGAxxC0eSXinFfoASb8d+jJd Bd1mmemM6fSxqRlxSP4LrzIhjhR1g2CiyYuTsiM9UtoVKGyHwe7KfFwirUOJo3Mr18zUVNm7YqY4 IVhOSq59zkH3ULBlYq4bG50jpxa5mNSCZ7IpafPY/kE/CbR+FWNt30+rk69T+qb5abg6+XGm+OAm bnQ18yZEqX6nJLk7Ch0cfA5orGgrTMOrM71wK7tBBDQ308kOxDGebx6j0qD36QKBgQDTRDr8kuhA 9sUyKr9vk2DQCMpNvEeiwI3JRMqmmxpNAtg01aJ3Ya57vX5Fc+zcuV87kP6FM1xgpHQvnw5LWo2J s7ANwQcP8ricEW5zkZhSjI4ssMeAubmsHOloGxmLFYZqwx0JI7CWViGTLMcUlqKblmHcjeQDeDfP P1TaCItFmwKBgQCfHZwVvIcaDs5vxVpZ4ftvflIrW8qq0uOVK6QIf9A/YTGhCXl2qxxTg2A6+0rg ZqI7zKzUDxIbVv0KlgCbpHDC9d5+sdtDB3wW2pimuJ3p1z4/RHb4n/lDwXCACZl1S5l24yXX2pFZ wdPCXmy5PYkHMssFLNhI24pprUIQs66M1QKBgQDQwjAjWisD3pRXESSfZRsaFkWJcM28hdbVFhPF c6gWhwQLmTp0CuL2RPXcPUPFi6sN2iWWi3zxxi9Eyz+9uBn6AsOpo56N5MME/LiOnETO9TKb+Ib6 rQtKhjshcv3XkIqFPo2XdVvOAgglPO7vajX91iiXXuH7h7RmJud6l0y/lwKBgE+bi90gLuPtpoEr VzIDKz40ED5bNYHT80NNy0rpT7J2GVN9nwStRYXPBBVeZq7xCpgqpgmO5LtDAWULeZBlbHlOdBwl NhNKKl5wzdEUKwW0yBL1WSS5PQgWPwgARYP25/ggW22sj+49WIo1neXsEKPGWObk8e050f1fTt92 Vo1lAoGAb1gCoyBCzvi7sqFxm4V5oapnJeiQQJFjhoYWqGa26rQ+AvXXNuBcigIeDXNJPctSF0Uc p11KbbCgiruBbckvM1vGsk6Sx4leRk+IFHRpJktFUek4o0eUg0shOsyyvyet48Dfg0a8FvcxROs0 gD+IYds5doiob/hcm1hnNB/3vk4= -----END PRIVATE KEY----- domain_suffix: realhostip.com seq: NULL *************************** 2. row *************************** id: 2 name: root certificate: -----BEGIN CERTIFICATE----- MIIE3jCCA8agAwIBAgICAwEwDQYJKoZIhvcNAQEFBQAwYzELMAkGA1UEBhMCVVMx ITAfBgNVBAoTGFRoZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28g RGFkZHkgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjExMTYw MTU0MzdaFw0yNjExMTYwMTU0MzdaMIHKMQswCQYDVQQGEwJVUzEQMA4GA1UECBMH QXJpem9uYTETMBEGA1UEBxMKU2NvdHRzZGFsZTEaMBgGA1UEChMRR29EYWRkeS5j b20sIEluYy4xMzAxBgNVBAsTKmh0dHA6Ly9jZXJ0aWZpY2F0ZXMuZ29kYWRkeS5j b20vcmVwb3NpdG9yeTEwMC4GA1UEAxMnR28gRGFkZHkgU2VjdXJlIENlcnRpZmlj YXRpb24gQXV0aG9yaXR5MREwDwYDVQQFEwgwNzk2OTI4NzCCASIwDQYJKoZIhvcN AQEBBQADggEPADCCAQoCggEBAMQt1RWMnCZM7DI161+4WQFapmGBWTtwY6vj3D3H KrjJM9N55DrtPDAjhI6zMBS2sofDPZVUBJ7fmd0LJR4h3mUpfjWoqVTr9vcyOdQm VZWt7/v+WIbXnvQAjYwqDL1CBM6nPwT27oDyqu9SoWlm2r4arV3aLGbqGmu75RpR SgAvSMeYddi5Kcju+GZtCpyz8/x4fKL4o/K1w/O5epHBp+YlLpyo7RJlbmr2EkRT cDCVw5wrWCs9CHRK8r5RsL+H0EwnWGu1NcWdrxcx+AuP7q2BNgWJCJjPOq8lh8BJ 6qf9Z/dFjpfMFDniNoW1fho3/Rb2cRGadDAW/hOUoz+EDU8CAwEAAaOCATIwggEu MB0GA1UdDgQWBBT9rGEyk2xF1uLuhV+auud2mWjM5zAfBgNVHSMEGDAWgBTSxLDS kdRMEXGzYcs9of7dqGrU4zASBgNVHRMBAf8ECDAGAQH/AgEAMDMGCCsGAQUFBwEB BCcwJTAjBggrBgEFBQcwAYYXaHR0cDovL29jc3AuZ29kYWRkeS5jb20wRgYDVR0f BD8wPTA7oDmgN4Y1aHR0cDovL2NlcnRpZmljYXRlcy5nb2RhZGR5LmNvbS9yZXBv c2l0b3J5L2dkcm9vdC5jcmwwSwYDVR0gBEQwQjBABgRVHSAAMDgwNgYIKwYBBQUH AgEWKmh0dHA6Ly9jZXJ0aWZpY2F0ZXMuZ29kYWRkeS5jb20vcmVwb3NpdG9yeTAO BgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQEFBQADggEBANKGwOy9+aG2Z+5mC6IG OgRQjhVyrEp0lVPLN8tESe8HkGsz2ZbwlFalEzAFPIUyIXvJxwqoJKSQ3kbTJSMU A2fCENZvD117esyfxVgqwcSeIaha86ykRvOe5GPLL5CkKSkB2XIsKd83ASe8T+5o 0yGPwLPk9Qnt0hCqU7S+8MxZC9Y7lhyVJEnfzuz9p0iRFEUOOjZv2kWzRaJBydTX RE4+uXR21aITVSzGh6O1mawGhId/dQb8vxRMDsxuxN89txJx9OjxUUAiKEngHUuH qDTMBqLdElrRhjZkAzVvb3du6/KFUJheqwNTrZEjYx8WnM25sgVjOuH0aBsXBTWV U+4= -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIE+zCCBGSgAwIBAgICAQ0wDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1Zh bGlDZXJ0IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIElu Yy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24g QXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAe BgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTA0MDYyOTE3MDYyMFoX DTI0MDYyOTE3MDYyMFowYzELMAkGA1UEBhMCVVMxITAfBgNVBAoTGFRoZSBHbyBE YWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28gRGFkZHkgQ2xhc3MgMiBDZXJ0 aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgC ggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCAPVYYYwhv 2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6wwdhFJ2+q N1j3hybX2C32qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXiEqITLdiO r18SPaAIBQi2XKVlOARFmR6jYGB0xUGlcmIbYsUfb18aQr4CUWWoriMYavx4A6lN f4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmYvLEHZ6IVDd2gWMZEewo+YihfukEH U1jPEX44dMX4/7VpkI+EdOqXG68CAQOjggHhMIIB3TAdBgNVHQ4EFgQU0sSw0pHU TBFxs2HLPaH+3ahq1OMwgdIGA1UdIwSByjCBx6GBwaSBvjCBuzEkMCIGA1UEBxMb VmFsaUNlcnQgVmFsaWRhdGlvbiBOZXR3b3JrMRcwFQYDVQQKEw5WYWxpQ2VydCwg SW5jLjE1MDMGA1UECxMsVmFsaUNlcnQgQ2xhc3MgMiBQb2xpY3kgVmFsaWRhdGlv biBBdXRob3JpdHkxITAfBgNVBAMTGGh0dHA6Ly93d3cudmFsaWNlcnQuY29tLzEg MB4GCSqGSIb3DQEJARYRaW5mb0B2YWxpY2VydC5jb22CAQEwDwYDVR0TAQH/BAUw AwEB/zAzBggrBgEFBQcBAQQnMCUwIwYIKwYBBQUHMAGGF2h0dHA6Ly9vY3NwLmdv ZGFkZHkuY29tMEQGA1UdHwQ9MDswOaA3oDWGM2h0dHA6Ly9jZXJ0aWZpY2F0ZXMu Z29kYWRkeS5jb20vcmVwb3NpdG9yeS9yb290LmNybDBLBgNVHSAERDBCMEAGBFUd IAAwODA2BggrBgEFBQcCARYqaHR0cDovL2NlcnRpZmljYXRlcy5nb2RhZGR5LmNv bS9yZXBvc2l0b3J5MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOBgQC1 QPmnHfbq/qQaQlpE9xXUhUaJwL6e4+PrxeNYiY+Sn1eocSxI0YGyeR+sBjUZsE4O WBsUs5iB0QQeyAfJg594RAoYC5jcdnplDQ1tgMQLARzLrUc+cb53S8wGd9D0Vmsf SxOaFIqII6hR8INMqzW/Rn453HWkrugp++85j09VZw== -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0 IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG 9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMTk1NFoXDTE5MDYy NjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOOnHK5avIWZJV16vY dA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVCCSRrCl6zfN1SLUzm1NZ9 WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7RfZHM047QS v4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9v UJSZSWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTu IYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwC W/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd -----END CERTIFICATE----- key: NULL domain_suffix: realhostip.com seq: 0 2 rows in set (0.00 sec) |
mysql> select * from ssh_keypairs \G; Empty set (0.00 sec) |
mysql> select * from security_group \G; *************************** 1. row *************************** id: 1 name: default uuid: da8c8d96-94ae-4d45-a598-93792fe3a1cf description: Default Security Group domain_id: 1 account_id: 2 1 row in set (0.00 sec) |
mysql> select * from security_group_rule \G; Empty set (0.00 sec) |
mysql> select * from security_group_vm_map \G; *************************** 1. row *************************** id: 18 security_group_id: 1 instance_id: 21 *************************** 2. row *************************** id: 21 security_group_id: 1 instance_id: 24 *************************** 3. row *************************** id: 22 security_group_id: 1 instance_id: 25 3 rows in set (0.00 sec) |
mysql> select * from sequence \G; *************************** 1. row *************************** name: checkpoint_seq value: 1 *************************** 2. row *************************** name: networks_seq value: 205 *************************** 3. row *************************** name: physical_networks_seq value: 201 *************************** 4. row *************************** name: private_mac_address_seq value: 1 *************************** 5. row *************************** name: public_mac_address_seq value: 1 *************************** 6. row *************************** name: storage_pool_seq value: 201 *************************** 7. row *************************** name: vm_instance_seq value: 26 *************************** 8. row *************************** name: vm_template_seq value: 206 *************************** 9. row *************************** name: volume_seq value: 1 9 rows in set (0.00 sec) |
备注:该表中存放额外的防火墙设备信息
mysql> select * from external_firewall_devices \G; Empty set (0.00 sec) |
备注:该表中存放额外的负载均衡设备信息
mysql> select * from external_load_balancer_devices \G; Empty set (0.00 sec) |
mysql> select * from network_external_firewall_device_map \G; Empty set (0.00 sec) |
mysql> select * from network_external_lb_device_map \G; Empty set (0.00 sec) |
备注:该表中存放vm负载均衡的相关信息
mysql> select * from elastic_lb_vm_map \G; Empty set (0.00 sec) |
mysql> select * from inline_load_balancer_nic_map \G; Empty set (0.00 sec) |
备注:该表存放负载均衡的粘度策略信息
mysql> select * from load_balancer_stickiness_policies \G; Empty set (0.00 sec) |
mysql> select * from load_balancer_vm_map \G; Empty set (0.00 sec) |
mysql> select * from load_balancing_rules \G; Empty set (0.00 sec) |
备注:这些表用于存方NetApp存储相关的信息
mysql> select * from netapp_lun \G; Empty set (0.00 sec) |
mysql> select * from netapp_pool \G; Empty set (0.00 sec) |
mysql> select * from netapp_volume \G; Empty set (0.00 sec) |
3、
mysql> select * from swift \G; Empty set (0.00 sec) |
mysql> select * from ovs_tunnel_interface \G; *************************** 1. row *************************** id: 1 ip: 0 netmask: 0 mac: 0 host_id: 0 label: lock 1 row in set (0.00 sec) |
mysql> select * from ovs_tunnel_network \G; *************************** 1. row *************************** id: 1 from: 0 to: 0 network_id: 0 key: 0 port_name: lock state: SUCCESS 1 row in set (0.00 sec) |
mysql> select * from pod_vlan_map \G; *************************** 1. row *************************** id: 1 pod_id: 1 vlan_db_id: 1 1 row in set (0.00 sec) |
mysql> select * from vlan \G; *************************** 1. row *************************** id: 1 uuid: c9c526a1-344a-4cbb-a1bd-54f4ec4c0b83 vlan_id: untagged vlan_gateway: 10.30.18.1 vlan_netmask: 255.255.255.0 description: 10.30.18.25-10.30.18.40 vlan_type: DirectAttached data_center_id: 1 network_id: 204 physical_network_id: 200 1 row in set (0.00 sec) |
mysql> select * from port_forwarding_rules \G; Empty set (0.00 sec) |
mysql> select * from port_profile \G; Empty set (0.00 sec) |
mysql> select * from remote_access_vpn \G; Empty set (0.00 sec) |
mysql> select * from vpn_users \G; Empty set (0.00 sec) |
mysql> select * from s2s_customer_gateway \G; Empty set (0.00 sec) |
mysql> select * from s2s_vpn_connection \G; Empty set (0.00 sec) |
mysql> select * from s2s_vpn_gateway \G; Empty set (0.00 sec) |
mysql> select * from vpc \G; Empty set (0.00 sec) |
mysql> select * from vpc_gateways \G; Empty set (0.00 sec) |
mysql> select * from vpc_offering_service_map \G; *************************** 1. row *************************** id: 1 vpc_offering_id: 1 service: Lb provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 2. row *************************** id: 2 vpc_offering_id: 1 service: PortForwarding provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 3. row *************************** id: 3 vpc_offering_id: 1 service: SourceNat provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 4. row *************************** id: 4 vpc_offering_id: 1 service: StaticNat provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 5. row *************************** id: 5 vpc_offering_id: 1 service: Dhcp provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 6. row *************************** id: 6 vpc_offering_id: 1 service: Vpn provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 7. row *************************** id: 7 vpc_offering_id: 1 service: Gateway provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 8. row *************************** id: 8 vpc_offering_id: 1 service: Dns provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 9. row *************************** id: 9 vpc_offering_id: 1 service: NetworkACL provider: VpcVirtualRouter created: 2014-04-25 04:58:49 *************************** 10. row *************************** id: 10 vpc_offering_id: 1 service: UserData provider: VpcVirtualRouter created: 2014-04-25 04:58:49 10 rows in set (0.00 sec) |
|
mysql> select * from vpc_offerings \G; *************************** 1. row *************************** id: 1 uuid: 72b3f4be-fd3e-40ea-8c5c-1c2f832dee70 unique_name: Default VPC offering name: Default VPC offering display_text: Default VPC offering state: Enabled default: 1 removed: NULL created: 2014-04-25 04:58:49 service_offering_id: NULL 1 row in set (0.00 sec) |
mysql> select * from network_rule_config \G; Empty set (0.00 sec) |
mysql> select * from networks \G; *************************** 1. row *************************** id: 200 name: NULL uuid: 7124710b-9f88-485b-ba92-be138dd42ab9 display_text: NULL traffic_type: Public broadcast_domain_type: Vlan broadcast_uri: NULL gateway: NULL cidr: NULL mode: Static network_offering_id: 1 physical_network_id: NULL data_center_id: 1 guru_name: PublicNetworkGuru state: Setup related: 200 domain_id: 1 account_id: 1 dns1: NULL dns2: NULL guru_data: NULL set_fields: 0 acl_type: NULL network_domain: NULL reservation_id: NULL guest_type: NULL restart_required: 0 created: 2014-04-25 05:15:13 removed: NULL specify_ip_ranges: 1 vpc_id: NULL *************************** 2. row *************************** id: 201 name: NULL uuid: 500955fd-dd60-4492-a221-dddd57d515a3 display_text: NULL traffic_type: Management broadcast_domain_type: Native broadcast_uri: NULL gateway: NULL cidr: NULL mode: Static network_offering_id: 2 physical_network_id: NULL data_center_id: 1 guru_name: PodBasedNetworkGuru state: Setup related: 201 domain_id: 1 account_id: 1 dns1: NULL dns2: NULL guru_data: NULL set_fields: 0 acl_type: NULL network_domain: NULL reservation_id: NULL guest_type: NULL restart_required: 0 created: 2014-04-25 05:15:13 removed: NULL specify_ip_ranges: 0 vpc_id: NULL *************************** 3. row *************************** id: 202 name: NULL uuid: 82407a9e-80c4-4cf0-97d3-52eead719855 display_text: NULL traffic_type: Control broadcast_domain_type: LinkLocal broadcast_uri: NULL gateway: 169.254.0.1 cidr: 169.254.0.0/16 mode: Static network_offering_id: 3 physical_network_id: NULL data_center_id: 1 guru_name: ControlNetworkGuru state: Setup related: 202 domain_id: 1 account_id: 1 dns1: NULL dns2: NULL guru_data: NULL set_fields: 0 acl_type: NULL network_domain: NULL reservation_id: NULL guest_type: NULL restart_required: 0 created: 2014-04-25 05:15:13 removed: NULL specify_ip_ranges: 0 vpc_id: NULL *************************** 4. row *************************** id: 203 name: NULL uuid: 1e7a3645-46b5-470d-9057-4f3eef49a1a6 display_text: NULL traffic_type: Storage broadcast_domain_type: Native broadcast_uri: NULL gateway: NULL cidr: NULL mode: Static network_offering_id: 4 physical_network_id: NULL data_center_id: 1 guru_name: StorageNetworkGuru state: Setup related: 203 domain_id: 1 account_id: 1 dns1: NULL dns2: NULL guru_data: NULL set_fields: 0 acl_type: NULL network_domain: NULL reservation_id: NULL guest_type: NULL restart_required: 0 created: 2014-04-25 05:15:14 removed: NULL specify_ip_ranges: 1 vpc_id: NULL *************************** 5. row *************************** id: 204 name: guestNetworkForBasicZone uuid: 65eb4836-d932-40e6-9ce9-8b9c64e630a1 display_text: guestNetworkForBasicZone traffic_type: Guest broadcast_domain_type: Vlan broadcast_uri: NULL gateway: NULL cidr: NULL mode: Dhcp network_offering_id: 6 physical_network_id: 200 data_center_id: 1 guru_name: DirectPodBasedNetworkGuru state: Setup related: 204 domain_id: 1 account_id: 1 dns1: NULL dns2: NULL guru_data: NULL set_fields: 0 acl_type: Domain network_domain: cs1cloud.internal reservation_id: NULL guest_type: Shared restart_required: 0 created: 2014-04-25 05:15:35 removed: NULL specify_ip_ranges: 1 vpc_id: NULL 5 rows in set (0.00 sec) |
mysql> select * from nics limit 10 \G; *************************** 1. row *************************** id: 1 uuid: 780ca2b0-e60b-42de-8382-0827b6733ce6 instance_id: 1 mac_address: 06:fb:de:00:00:16 ip4_address: 10.30.18.37 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: vlan://untagged network_id: 204 mode: Dhcp state: Reserved strategy: Start reserver_name: DirectPodBasedNetworkGuru reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 device_id: 2 update_time: 2014-04-25 13:16:41 isolation_uri: ec2://untagged ip6_address: NULL default_nic: 1 vm_type: SecondaryStorageVm created: 2014-04-25 05:16:39 removed: NULL *************************** 2. row *************************** id: 2 uuid: 3cef5e4e-3f6b-4bb7-bdd9-80a1835dc489 instance_id: 1 mac_address: 0e:00:a9:fe:02:d4 ip4_address: 169.254.2.212 netmask: 255.255.0.0 gateway: 169.254.0.1 ip_type: Ip4 broadcast_uri: NULL network_id: 202 mode: Static state: Reserved strategy: Start reserver_name: ControlNetworkGuru reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 device_id: 0 update_time: 2014-04-25 13:16:41 isolation_uri: NULL ip6_address: NULL default_nic: 0 vm_type: SecondaryStorageVm created: 2014-04-25 05:16:39 removed: NULL *************************** 3. row *************************** id: 3 uuid: 75a93824-0b74-48f3-8400-f134a1a72eb0 instance_id: 1 mac_address: 06:44:70:00:00:02 ip4_address: 10.30.18.17 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: NULL network_id: 201 mode: Static state: Reserved strategy: Start reserver_name: PodBasedNetworkGuru reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 device_id: 1 update_time: 2014-04-25 13:16:42 isolation_uri: NULL ip6_address: NULL default_nic: 0 vm_type: SecondaryStorageVm created: 2014-04-25 05:16:39 removed: NULL *************************** 4. row *************************** id: 4 uuid: a1e78fe4-61c4-4dd4-a067-592cf6eb4c45 instance_id: 1 mac_address: 06:ff:60:00:00:08 ip4_address: 10.30.18.23 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: NULL network_id: 203 mode: Static state: Reserved strategy: Start reserver_name: StorageNetworkGuru reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 device_id: 3 update_time: 2014-04-25 13:16:43 isolation_uri: NULL ip6_address: NULL default_nic: 0 vm_type: SecondaryStorageVm created: 2014-04-25 05:16:39 removed: NULL *************************** 5. row *************************** id: 5 uuid: c8fc4c7f-5bed-4d9e-83aa-c5ee3c48442c instance_id: 2 mac_address: 06:c6:02:00:00:10 ip4_address: 10.30.18.31 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: vlan://untagged network_id: 204 mode: Dhcp state: Reserved strategy: Start reserver_name: DirectPodBasedNetworkGuru reservation_id: 605eb43f-8d68-4fe9-8633-7207d35489c8 device_id: 2 update_time: 2014-04-25 13:16:41 isolation_uri: ec2://untagged ip6_address: NULL default_nic: 1 vm_type: ConsoleProxy created: 2014-04-25 05:16:39 removed: NULL *************************** 6. row *************************** id: 6 uuid: 477d757e-ec69-4d94-ab79-1eba171ec924 instance_id: 2 mac_address: 0e:00:a9:fe:02:d8 ip4_address: 169.254.2.216 netmask: 255.255.0.0 gateway: 169.254.0.1 ip_type: Ip4 broadcast_uri: NULL network_id: 202 mode: Static state: Reserved strategy: Start reserver_name: ControlNetworkGuru reservation_id: 605eb43f-8d68-4fe9-8633-7207d35489c8 device_id: 0 update_time: 2014-04-25 13:16:41 isolation_uri: NULL ip6_address: NULL default_nic: 0 vm_type: ConsoleProxy created: 2014-04-25 05:16:39 removed: NULL *************************** 7. row *************************** id: 7 uuid: 5cee1ae4-ad44-408e-96da-8c73761590f5 instance_id: 2 mac_address: 06:da:6c:00:00:05 ip4_address: 10.30.18.20 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: NULL network_id: 201 mode: Static state: Reserved strategy: Start reserver_name: PodBasedNetworkGuru reservation_id: 605eb43f-8d68-4fe9-8633-7207d35489c8 device_id: 1 update_time: 2014-04-25 13:16:42 isolation_uri: NULL ip6_address: NULL default_nic: 0 vm_type: ConsoleProxy created: 2014-04-25 05:16:39 removed: NULL *************************** 8. row *************************** id: 8 uuid: 8b197d94-1c7a-4dff-8bfc-5e9afe93fd76 instance_id: 3 mac_address: 06:e1:94:00:00:17 ip4_address: 10.30.18.38 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: vlan://untagged network_id: 204 mode: Dhcp state: Deallocating strategy: Start reserver_name: DirectPodBasedNetworkGuru reservation_id: 6abd23de-a994-4aea-a2da-8ff7517fdefa device_id: 0 update_time: 2014-04-25 18:57:11 isolation_uri: ec2://untagged ip6_address: NULL default_nic: 1 vm_type: User created: 2014-04-25 10:42:58 removed: 2014-04-25 10:57:11 *************************** 9. row *************************** id: 9 uuid: 95b3cce3-d238-4376-b0da-8f41c72049fb instance_id: 4 mac_address: 06:d3:50:00:00:0d ip4_address: 10.30.18.28 netmask: 255.255.255.0 gateway: 10.30.18.1 ip_type: Ip4 broadcast_uri: vlan://untagged network_id: 204 mode: Dhcp state: Reserved strategy: Start reserver_name: DirectPodBasedNetworkGuru reservation_id: b1b901ef-91e8-495f-a3aa-e3540799ceac device_id: 0 update_time: 2014-04-25 18:43:01 isolation_uri: ec2://untagged ip6_address: NULL default_nic: 1 vm_type: DomainRouter created: 2014-04-25 10:43:00 removed: NULL *************************** 10. row *************************** id: 10 uuid: b6668111-2da3-41ad-8766-3d3015f2e46d instance_id: 4 mac_address: 0e:00:a9:fe:02:fc ip4_address: 169.254.2.252 netmask: 255.255.0.0 gateway: 169.254.0.1 ip_type: Ip4 broadcast_uri: NULL network_id: 202 mode: Static state: Reserved strategy: Start reserver_name: ControlNetworkGuru reservation_id: b1b901ef-91e8-495f-a3aa-e3540799ceac device_id: 1 update_time: 2014-04-25 18:43:01 isolation_uri: NULL ip6_address: NULL default_nic: 0 vm_type: DomainRouter created: 2014-04-25 10:43:00 removed: NULL 10 rows in set (0.00 sec) |
mysql> select * from physical_network \G; *************************** 1. row *************************** id: 200 uuid: 4a275be6-8392-47d8-8d66-45093c97430f name: Physical Network 1 data_center_id: 1 vnet: NULL speed: NULL domain_id: NULL broadcast_domain_range: POD state: Enabled created: 2014-04-25 05:15:14 removed: NULL 1 row in set (0.00 sec) |
mysql> select * from physical_network_isolation_methods \G; Empty set (0.00 sec) |
mysql> select * from physical_network_service_providers \G; *************************** 1. row *************************** id: 1 uuid: b7ca6186-6644-4c61-a1c9-17e2ea00f3d3 physical_network_id: 200 provider_name: VirtualRouter state: Enabled destination_physical_network_id: 0 vpn_service_provided: 1 dhcp_service_provided: 1 dns_service_provided: 1 gateway_service_provided: 1 firewall_service_provided: 1 source_nat_service_provided: 1 load_balance_service_provided: 1 static_nat_service_provided: 1 port_forwarding_service_provided: 1 user_data_service_provided: 1 security_group_service_provided: 0 networkacl_service_provided: 0 removed: NULL *************************** 2. row *************************** id: 2 uuid: 81d1f5a1-23fd-46dd-a3f7-4d4ba9fd5fbc physical_network_id: 200 provider_name: SecurityGroupProvider state: Enabled destination_physical_network_id: 0 vpn_service_provided: 0 dhcp_service_provided: 0 dns_service_provided: 0 gateway_service_provided: 0 firewall_service_provided: 0 source_nat_service_provided: 0 load_balance_service_provided: 0 static_nat_service_provided: 0 port_forwarding_service_provided: 0 user_data_service_provided: 0 security_group_service_provided: 1 networkacl_service_provided: 0 removed: NULL *************************** 3. row *************************** id: 3 uuid: 8f4510c3-6545-4a1e-840d-82422dd98daf physical_network_id: 200 provider_name: VpcVirtualRouter state: Disabled destination_physical_network_id: 0 vpn_service_provided: 1 dhcp_service_provided: 1 dns_service_provided: 1 gateway_service_provided: 1 firewall_service_provided: 0 source_nat_service_provided: 1 load_balance_service_provided: 1 static_nat_service_provided: 1 port_forwarding_service_provided: 1 user_data_service_provided: 1 security_group_service_provided: 0 networkacl_service_provided: 1 removed: NULL 3 rows in set (0.00 sec) |
mysql> select * from physical_network_tags \G; Empty set (0.00 sec) |
mysql> select * from physical_network_traffic_types \G; *************************** 1. row *************************** id: 1 uuid: 1d42686f-7d73-4e11-a19c-4b384275c4e4 physical_network_id: 200 traffic_type: Guest xen_network_label: NULL kvm_network_label: NULL vmware_network_label: NULL simulator_network_label: NULL ovm_network_label: NULL vlan: NULL *************************** 2. row *************************** id: 2 uuid: 65e77d00-ee03-4256-9326-1e8416f9ed17 physical_network_id: 200 traffic_type: Management xen_network_label: NULL kvm_network_label: NULL vmware_network_label: NULL simulator_network_label: NULL ovm_network_label: NULL vlan: NULL *************************** 3. row *************************** id: 3 uuid: 5f260569-cec4-41cd-8dc7-0ae82793dc6b physical_network_id: 200 traffic_type: Storage xen_network_label: NULL kvm_network_label: NULL vmware_network_label: NULL simulator_network_label: NULL ovm_network_label: NULL vlan: NULL 3 rows in set (0.00 sec) |
mysql> select * from op_dc_ip_address_alloc \G; *************************** 1. row *************************** id: 1 ip_address: 10.30.18.16 data_center_id: 1 pod_id: 1 nic_id: NULL reservation_id: NULL taken: NULL mac_address: 1 *************************** 2. row *************************** id: 2 ip_address: 10.30.18.17 data_center_id: 1 pod_id: 1 nic_id: 3 reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 taken: 2014-04-25 05:16:42 mac_address: 2 *************************** 3. row *************************** id: 3 ip_address: 10.30.18.18 data_center_id: 1 pod_id: 1 nic_id: NULL reservation_id: NULL taken: NULL mac_address: 3 *************************** 4. row *************************** id: 4 ip_address: 10.30.18.19 data_center_id: 1 pod_id: 1 nic_id: NULL reservation_id: NULL taken: NULL mac_address: 4 *************************** 5. row *************************** id: 5 ip_address: 10.30.18.20 data_center_id: 1 pod_id: 1 nic_id: 7 reservation_id: 605eb43f-8d68-4fe9-8633-7207d35489c8 taken: 2014-04-25 05:16:42 mac_address: 5 *************************** 6. row *************************** id: 6 ip_address: 10.30.18.21 data_center_id: 1 pod_id: 1 nic_id: NULL reservation_id: NULL taken: NULL mac_address: 6 *************************** 7. row *************************** id: 7 ip_address: 10.30.18.22 data_center_id: 1 pod_id: 1 nic_id: NULL reservation_id: NULL taken: NULL mac_address: 7 *************************** 8. row *************************** id: 8 ip_address: 10.30.18.23 data_center_id: 1 pod_id: 1 nic_id: 4 reservation_id: 6cef6bd8-6fa2-4911-acbb-4b23239882b3 taken: 2014-04-25 05:16:42 mac_address: 8 *************************** 9. row *************************** id: 9 ip_address: 10.30.18.24 data_center_id: 1 pod_id: 1 nic_id: NULL reservation_id: NULL taken: NULL mac_address: 9 9 rows in set (0.00 sec) |
mysql> desc op_dc_link_local_ip_address_alloc \G; *************************** 1. row *************************** Field: id Type: bigint(20) unsigned Null: NO Key: PRI Default: NULL Extra: auto_increment *************************** 2. row *************************** Field: ip_address Type: char(40) Null: NO Key: Default: NULL Extra: *************************** 3. row *************************** Field: data_center_id Type: bigint(20) unsigned Null: NO Key: MUL Default: NULL Extra: *************************** 4. row *************************** Field: pod_id Type: bigint(20) unsigned Null: NO Key: MUL Default: NULL Extra: *************************** 5. row *************************** Field: nic_id Type: bigint(20) unsigned Null: YES Key: MUL Default: NULL Extra: *************************** 6. row *************************** Field: reservation_id Type: char(40) Null: YES Key: Default: NULL Extra: *************************** 7. row *************************** Field: taken Type: datetime Null: YES Key: Default: NULL Extra: 7 rows in set (0.00 sec) |
mysql> select * from op_dc_storage_network_ip_address \G; Empty set (0.00 sec) |
mysql> select * from op_dc_vnet_alloc \G; Empty set (0.00 sec) |
mysql> select * from op_networks \G; *************************** 1. row *************************** id: 200 mac_address_seq: 1 nics_count: 0 gc: 0 check_for_gc: 0 *************************** 2. row *************************** id: 201 mac_address_seq: 1 nics_count: 0 gc: 0 check_for_gc: 0 *************************** 3. row *************************** id: 202 mac_address_seq: 1 nics_count: 0 gc: 0 check_for_gc: 0 *************************** 4. row *************************** id: 203 mac_address_seq: 1 nics_count: 0 gc: 0 check_for_gc: 0 *************************** 5. row *************************** id: 204 mac_address_seq: 1 nics_count: 3 gc: 0 check_for_gc: 1 5 rows in set (0.00 sec) |
mysql> select * from private_ip_address \G; Empty set (0.00 sec) |
mysql> select * from op_ha_work \G; Empty set (0.00 sec) |
mysql> select * from op_host \G; *************************** 1. row *************************** id: 1 sequence: 1 *************************** 2. row *************************** id: 2 sequence: 1 *************************** 3. row *************************** id: 3 sequence: 1 *************************** 4. row *************************** id: 4 sequence: 1 4 rows in set (0.00 sec) |
mysql> select * from op_host_capacity \G; *************************** 1. row *************************** id: 1 host_id: 1 data_center_id: 1 pod_id: 1 cluster_id: 1 used_capacity: 4697620480 reserved_capacity: 0 total_capacity: 20262436992 capacity_type: 0 capacity_state: Enabled update_time: 2014-04-26 11:28:15 created: 2014-04-25 05:16:20 #内存 *************************** 2. row *************************** id: 2 host_id: 1 data_center_id: 1 pod_id: 1 cluster_id: 1 used_capacity: 4500 reserved_capacity: 0 total_capacity: 7200 capacity_type: 1 capacity_state: Enabled update_time: 2014-04-26 11:28:15 created: 2014-04-25 05:16:20 #cpu *************************** 3. row *************************** id: 3 host_id: 200 data_center_id: 1 pod_id: 1 cluster_id: 1 used_capacity: 95317243904 reserved_capacity: 0 total_capacity: 4395899027456 capacity_type: 3 capacity_state: Enabled update_time: 2014-04-27 09:36:40 created: 2014-04-25 05:16:30 #存储 *************************** 4. row *************************** id: 4 host_id: NULL data_center_id: 1 pod_id: NULL cluster_id: NULL used_capacity: 6 reserved_capacity: 0 total_capacity: 16 capacity_type: 8 capacity_state: Enabled update_time: 2014-04-26 01:56:40 created: 2014-04-25 05:16:40 #来宾ip *************************** 5. row *************************** id: 5 host_id: NULL data_center_id: 1 pod_id: 1 cluster_id: NULL used_capacity: 3 reserved_capacity: 0 total_capacity: 9 capacity_type: 5 capacity_state: Enabled update_time: 2014-04-25 05:16:43 created: 2014-04-25 05:16:40 #管理ip 5 rows in set (0.00 sec) |
mysql> select * from op_host_transfer \G; Empty set (0.00 sec) mysql> select * from op_host_upgrade \G; Empty set (0.00 sec) |
mysql> select * from op_it_work limit 10 \G; *************************** 1. row *************************** id: 03963031-70c3-4e9c-97de-0889a0a50e55 mgmt_server_id: 233845175752474 created_at: 1398474490 thread: Job-Executor-21 type: Starting vm_type: User step: Done updated_at: 1398474610 instance_id: 8 resource_type: NULL resource_id: 0 *************************** 2. row *************************** id: 06e3444c-5e8c-4578-a7b4-e66e0316fcd1 mgmt_server_id: 233845175752474 created_at: 1398474850 thread: Job-Executor-27 type: Starting vm_type: User step: Done updated_at: 1398474850 instance_id: 14 resource_type: NULL resource_id: 0 *************************** 3. row *************************** id: 0af847ba-f7cc-4459-8b67-45e6fee08e2c mgmt_server_id: 233845175752474 created_at: 1398650050 thread: Job-Executor-75 type: Starting vm_type: User step: Done updated_at: 1398650110 instance_id: 25 resource_type: NULL resource_id: 0 *************************** 4. row *************************** id: 1c5d691c-af25-4b36-a355-d1aed3e30fa9 mgmt_server_id: 233845175752474 created_at: 1398475390 thread: Job-Executor-35 type: Starting vm_type: User step: Done updated_at: 1398475390 instance_id: 21 resource_type: NULL resource_id: 0 *************************** 5. row *************************** id: 31357deb-5aba-4bf1-94be-7d15dc91fe9c mgmt_server_id: 233845175752474 created_at: 1398474970 thread: Job-Executor-30 type: Starting vm_type: User step: Done updated_at: 1398474970 instance_id: 17 resource_type: NULL resource_id: 0 *************************** 6. row *************************** id: 34472d00-3531-494e-8d6d-36fe810148d9 mgmt_server_id: 233845175752474 created_at: 1398511690 thread: Job-Executor-68 type: Starting vm_type: User step: Done updated_at: 1398511690 instance_id: 24 resource_type: NULL resource_id: 0 *************************** 7. row *************************** id: 4b7e0b85-e6e4-46dc-a36c-9b400e7753d0 mgmt_server_id: 233845175752474 created_at: 1398474850 thread: Job-Executor-28 type: Starting vm_type: User step: Done updated_at: 1398474910 instance_id: 15 resource_type: NULL resource_id: 0 *************************** 8. row *************************** id: 515fe9bd-2b9b-4fb0-a26d-7e4eda471ede mgmt_server_id: 233845175752474 created_at: 1398425590 thread: Job-Executor-19 type: Starting vm_type: User step: Done updated_at: 1398425830 instance_id: 7 resource_type: NULL resource_id: 0 *************************** 9. row *************************** id: 605eb43f-8d68-4fe9-8633-7207d35489c8 mgmt_server_id: 233845175752474 created_at: 1398402970 thread: consoleproxy-1 type: Starting vm_type: ConsoleProxy step: Done updated_at: 1398403030 instance_id: 2 resource_type: NULL resource_id: 0 *************************** 10. row *************************** id: 6488e1c8-2ded-4a45-a0df-97f9925ebb57 mgmt_server_id: 233845175752474 created_at: 1398474970 thread: Job-Executor-31 type: Starting vm_type: User step: Done updated_at: 1398474970 instance_id: 18 resource_type: NULL resource_id: 0 10 rows in set (0.00 sec) |
mysql> select * from op_lock \G; Empty set (0.00 sec) |
mysql> select * from op_nwgrp_work \G; Empty set (0.00 sec) |
mysql> select * from op_pod_vlan_alloc \G; Empty set (0.00 sec) |
mysql> select * from op_user_stats_log \G; Empty set (0.00 sec) |
mysql> select * from op_vm_ruleset_log \G; *************************** 1. row *************************** id: 1 instance_id: 3 created: 2014-04-25 18:45:17 logsequence: 1 *************************** 2. row *************************** id: 2 instance_id: 5 created: 2014-04-25 19:04:18 logsequence: 1 *************************** 3. row *************************** id: 3 instance_id: 6 created: 2014-04-25 19:27:23 logsequence: 1 *************************** 4. row *************************** id: 4 instance_id: 7 created: 2014-04-25 19:37:59 logsequence: 1 *************************** 5. row *************************** id: 5 instance_id: 8 created: 2014-04-26 09:10:23 logsequence: 1 *************************** 6. row *************************** id: 6 instance_id: 9 created: 2014-04-26 09:11:02 logsequence: 1 *************************** 7. row *************************** id: 7 instance_id: 10 created: 2014-04-26 09:12:11 logsequence: 1 *************************** 8. row *************************** id: 8 instance_id: 11 created: 2014-04-26 09:12:40 logsequence: 1 *************************** 9. row *************************** id: 9 instance_id: 12 created: 2014-04-26 09:13:18 logsequence: 1 *************************** 10. row *************************** id: 10 instance_id: 13 created: 2014-04-26 09:13:56 logsequence: 1 *************************** 11. row *************************** id: 11 instance_id: 14 created: 2014-04-26 09:14:57 logsequence: 1 *************************** 12. row *************************** id: 12 instance_id: 15 created: 2014-04-26 09:15:21 logsequence: 1 *************************** 13. row *************************** id: 13 instance_id: 16 created: 2014-04-26 09:15:57 logsequence: 1 *************************** 14. row *************************** id: 14 instance_id: 17 created: 2014-04-26 09:16:39 logsequence: 1 *************************** 15. row *************************** id: 15 instance_id: 18 created: 2014-04-26 09:17:09 logsequence: 1 *************************** 16. row *************************** id: 16 instance_id: 19 created: 2014-04-26 09:17:34 logsequence: 1 *************************** 17. row *************************** id: 17 instance_id: 20 created: 2014-04-26 09:17:58 logsequence: 1 *************************** 18. row *************************** id: 18 instance_id: 21 created: 2014-04-26 09:23:39 logsequence: 1 *************************** 19. row *************************** id: 19 instance_id: 24 created: 2014-04-26 09:43:20 logsequence: 3 *************************** 20. row *************************** id: 20 instance_id: 25 created: 2014-04-26 09:49:14 logsequence: 1 20 rows in set (0.00 sec) |
mysql> select * from configuration limit 10 \G; *************************** 1. row *************************** category: Advanced instance: DEFAULT component: management-server name: account.cleanup.interval value: 86400 description: The interval (in seconds) between cleanup for removed accounts *************************** 2. row *************************** category: Advanced instance: DEFAULT component: management-server name: agent.lb.enabled value: false description: If agent load balancing enabled in cluster setup *************************** 3. row *************************** category: Advanced instance: DEFAULT component: management-server name: agent.load.threshold value: 0.7 description: Percentage (as a value between 0 and 1) of connected agents after which agent load balancing will start happening *************************** 4. row *************************** category: Alert instance: DEFAULT component: management-server name: alert.email.addresses value: NULL description: Comma separated list of email addresses used for sending alerts. *************************** 5. row *************************** category: Alert instance: DEFAULT component: management-server name: alert.email.sender value: NULL description: Sender of alert email (will be in the From header of the email). *************************** 6. row *************************** category: Alert instance: DEFAULT component: management-server name: alert.smtp.host value: NULL description: SMTP hostname used for sending out email alerts. *************************** 7. row *************************** category: Secure instance: DEFAULT component: management-server name: alert.smtp.password value: NULL description: Password for SMTP authentication (applies only if alert.smtp.useAuth is true). *************************** 8. row *************************** category: Alert instance: DEFAULT component: management-server name: alert.smtp.port value: 465 description: Port the SMTP server is listening on. *************************** 9. row *************************** category: Alert instance: DEFAULT component: management-server name: alert.smtp.useAuth value: NULL description: If true, use SMTP authentication when sending emails. *************************** 10. row *************************** category: Alert instance: DEFAULT component: management-server name: alert.smtp.username value: NULL description: Username for SMTP authentication (applies only if alert.smtp.useAuth is true). 10 rows in set (0.00 sec) |
mysql> select * from resource_count \G; *************************** 1. row *************************** id: 1 account_id: NULL domain_id: 1 type: user_vm count: 3 *************************** 2. row *************************** id: 2 account_id: NULL domain_id: 1 type: public_ip count: -17 *************************** 3. row *************************** id: 3 account_id: NULL domain_id: 1 type: volume count: 5 *************************** 4. row *************************** id: 4 account_id: NULL domain_id: 1 type: snapshot count: 6 *************************** 5. row *************************** id: 5 account_id: NULL domain_id: 1 type: template count: 4 *************************** 6. row *************************** id: 6 account_id: NULL domain_id: 1 type: project count: 0 *************************** 7. row *************************** id: 7 account_id: NULL domain_id: 1 type: network count: 0 *************************** 8. row *************************** id: 8 account_id: NULL domain_id: 1 type: vpc count: 0 *************************** 9. row *************************** id: 9 account_id: 1 domain_id: NULL type: user_vm count: 0 *************************** 10. row *************************** id: 10 account_id: 1 domain_id: NULL type: public_ip count: 0 *************************** 11. row *************************** id: 11 account_id: 1 domain_id: NULL type: volume count: 0 *************************** 12. row *************************** id: 12 account_id: 1 domain_id: NULL type: snapshot count: 0 *************************** 13. row *************************** id: 13 account_id: 1 domain_id: NULL type: template count: 0 *************************** 14. row *************************** id: 14 account_id: 1 domain_id: NULL type: project count: 0 *************************** 15. row *************************** id: 15 account_id: 1 domain_id: NULL type: network count: 0 *************************** 16. row *************************** id: 16 account_id: 1 domain_id: NULL type: vpc count: 0 *************************** 17. row *************************** id: 17 account_id: 2 domain_id: NULL type: user_vm count: 3 *************************** 18. row *************************** id: 18 account_id: 2 domain_id: NULL type: public_ip count: -17 *************************** 19. row *************************** id: 19 account_id: 2 domain_id: NULL type: volume count: 5 *************************** 20. row *************************** id: 20 account_id: 2 domain_id: NULL type: snapshot count: 6 *************************** 21. row *************************** id: 21 account_id: 2 domain_id: NULL type: template count: 4 *************************** 22. row *************************** id: 22 account_id: 2 domain_id: NULL type: project count: 0 *************************** 23. row *************************** id: 23 account_id: 2 domain_id: NULL type: network count: 0 *************************** 24. row *************************** id: 24 account_id: 2 domain_id: NULL type: vpc count: 0 24 rows in set (0.00 sec) |
mysql> select * from resource_limit \G; Empty set (0.00 sec) |
mysql> select * from resource_tags \G; Empty set (0.00 sec) |
mysql> select * from static_routes \G; Empty set (0.00 sec) |
mysql> select * from sync_queue \G; Empty set (0.00 sec) |
mysql> select * from sync_queue_item \G; Empty set (0.00 sec) |
mysql> select * from counter \G; *************************** 1. row *************************** id: 1 uuid: 8ff4da00-ee2f-48ae-ae2b-4d046a20803d source: snmp name: Linux User CPU - percentage value: 1.3.6.1.4.1.2021.11.9.0 removed: NULL created: 2014-04-25 12:52:15 *************************** 2. row *************************** id: 2 uuid: 509f9842-dc9f-4bc1-a57b-8da7f82a213d source: snmp name: Linux System CPU - percentage value: 1.3.6.1.4.1.2021.11.10.0 removed: NULL created: 2014-04-25 12:52:15 *************************** 3. row *************************** id: 3 uuid: 0ba6297a-4cd5-4434-b042-61f461c07655 source: snmp name: Linux CPU Idle - percentage value: 1.3.6.1.4.1.2021.11.11.0 removed: NULL created: 2014-04-25 12:52:15 *************************** 4. row *************************** id: 100 uuid: e74c04a2-cabe-45de-a4e5-3db58abccdd0 source: netscaler name: Response Time - microseconds value: RESPTIME removed: NULL created: 2014-04-25 12:52:15 4 rows in set (0.00 sec) |
mysql> select * from version \G; *************************** 1. row *************************** id: 1 version: 3.0.5.20120904142539 updated: 2014-04-25 12:51:53 step: Complete 1 row in set (0.00 sec) |
mysql> select * from virtual_supervisor_module \G; Empty set (0.00 sec) |
mysql> select * from launch_permission \G; Empty set (0.00 sec) |
mysql> select * from conditions \G; Empty set (0.00 sec) |
mysql> select * from upload \G; Empty set (0.00 sec) |
标签:justify 数据库 center 记录 color
原文地址:http://hongxin.blog.51cto.com/2464891/1405814