资源描述
Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,5/6/2013,#,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,5/6/2013,#,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,#,VMware,Inc.,在虚拟化的平台上运行,关键应用,U2VL,内容提要,什么是关键应用,关键应用为何虚拟化,关键应用如何虚拟化,结语,什么是关键应用,?,数据库服务器,Web,服务器,应用服务器,42,%,47%,2,%,对关键应用 而言,VMware,是,D,isruptive,Technology,100%,9,8,%,59,%,DB2,DB2,Oracle,71,国内案例,中国人寿股份有限公司,国家电网公司,中国南方电网,北京市朝阳区教育委员会,苏州工业园区管委会计算机信息中心,广东中烟,山东电信,江西财政厅,遵义商行,西南交通大学图书馆,合肥卷烟厂:,精品黄山生产系统,,Oracle RAC,做数据库高可用,,底层存储是,IBM SVC,DS5000,山东城商联盟:,银行基金购买应用,,VMware HA,做系统高可用,四川电信:,综合营帐的计费,,VMware HA,。,信用控制,Oracle RAC,江苏电信,:,网上营业厅,ORACLE RAC,这些坚定的从,Unix,移植到,Vmware-Linux,的企业都同时看到了什麽?,性能,VMware+x86Linux,与,RS/6000-AIX,性能一样好。,风险,VMware+x86Linux,比,RS/6000-AIX,更可靠。,解决了,UNIX,老问题,VMware+x86Linux,解决了困扰,RS/6000-AIX,的四大,IT,难题,。,Agenda,什么是关键应用,关键应用为何虚拟化,关键应用如何虚拟化,结语,更稳定的性能,,更可靠,解决四大,IT,难题,X86-E7-ESX,性能 优于,Power6 21%,银行基金,WAS+DB2,应用性能测试比较,x86,与,Power6,关键应用虚拟化性能比,RS/6000,好吗?可靠吗?,XX,保险公司,Oracle OLTP,在线交易,虚拟化最终测试结果,结论,:,x86 Xeon-7650,比,Power6 CPU,处理能力高,33.7%,惨,HP BL685G7,,,64Core,目前配置的功耗约为,600W,。,IBM P6/570,16 core,配置的功耗为,3200W,踏破铁鞋:,X86,服务器与,Power7,小机,TPC-C,的比较,每个核的性能,Power7,优于,x86 16.8%,每个核的性能,Power7,比,虚拟化后,的,x86,快,12%,Vmware,数据库虚拟化后的损耗为,5.8%,SAP-2tier,比较关键应用,x86,虚拟化与,Power7,比较,VMware+x86Linux,与,PowerVM-AIX,的性能比较,X86-E7-ESX,性能 优于,Power6 21%,X86-7560-ESX,性能,优于,Power6 33.7%,X86-7560-ESX+SSD,性能 优于,Power6 37%,基于,TPC-C Power7,性能优于,x86 16.8%,基于,SAP,Power7,性能优于,x86+VMware 12%,X86+VMware,性能,大于,Power6+PowerVM,30%,Power7+PowerVM,性能,大于,x86+VMware,15%,Power7+PowerVM,性能,大于,x86+VMware,30%,性能我清楚了,不用再测了。接着我们看,HA,的测试结果,如果可以,我们可以开始规划一步一步的把小机换成,x86,采用新技术要有远见,,2008,年我开始用了,VMware,以后,,2,年我帮公司省了,4000,万服务器的采购款。这还不包含,R6,的,MA,跟软件的维护费用。,X86,加了,VMware,以后的可靠性超过,AIX,加上,Power,VMware,是大才小用,它真正的价值在可靠性,不是省那些,CPU.,那些,x86,的,cpu,没几个钱,Stephen:,程总,您是说,VMware,加上,x86,可靠性超过小机吗?,程总:是啊,远远超过。我们过去几年出的事故都是小机,几乎没有,x86,。,AIX,数据库,PowerVM Hypervisor,HA-CMP,Pwr HA,应用,Novell,等等,ESX,HA,数据库,应用,AIX,数据库,PowerVM Hypervisor,HA-CMP,Pwr HA,应用,Novell,等等,ESX,HA,数据库,应用,一样的硬件,但是:,x86,虚拟化平台提供更好的可用性,AIX,AIX,要不断的保持一致性,SUSE,服务器的可靠性依赖的是高可用的软件,IT,管理员:因为领导要求零事故啊!,领导:我们,RS/6000,从来都没有事故啊!,Step 1.Install the PowerHA software,You can purchase this software from IBM directly(see,Resources for a link);the file sets all start with the word,cluster.Use the,installp,command to install the software,much like any other licensed program package(LPP).,Step 2.Edit some flat files,Put all of the IP addresses associated with the clusterboot,persistent,and serviceinto each/etc/hosts file on each node of the cluster.Do the same with the/usr/es/sbin/cluster/etc/rhosts file.Verify that the server hostnames match the appropriate IP addresses;the servers hostname should also match with the persistent IP address.,Step 3.Configure the boot IP addresses,Run the,smitty chinet,command,and set the boot IP addresses for each network adapter.Make sure that you are able to ping and connect freely from node to node on all respective networks.Also,double-check to make sure that the default route is properly configured.If it isnt,run,smitty tcpip,go into the Minimum Configuration menu,enter the default route for the primary adapter,and press Enter.,Step 4.Make application start and stop scripts,Create two simple Korn shell scriptsone that starts an application and one that stops an application.Keep these scripts in identical directories on both nodes.,Step 5.Define the cluster,Run the command:,smitty cm_config_an_hacmp_cluster_menu_dmn,Then,define the cluster,including naming it appropriately.,Step 6.Define the nodes,Run the command:,smitty cm_config_hacmp_nodes_menu_dmn,Define every node within the cluster on both nodes.,Step 7.Define the networks,Run the command:,smitty cm_config_hacmp_networks_menu_dmn,This defines one network per Ethernet adapter.I prefer to use the Pre-defined option as opposed to the Discovered path,but that is up to your discretion.Check the subnet masks for consistency.,Step 8.Define the boot IP addresses,Run the command:,smitty cm_config_hacmp_communication_interfaces_devices_menu_dmn,This defines the boot IP addresses on the respective network adapters.This address should be the same IP addresses you used in,step 3.Make sure you define these addresses within the proper respective PowerHA-defined network.,Step 9.Define the persistent IP addresses,Run the command:,smitty cm_config_hacmp_persistent_node_ip_label_addresses_menu_dmn,This defines the persistent IP addresses,again paying attention to pick the proper respective PowerHA-defined network.,Step 10.Define the service IP addresses,Run the command:,smitty cm_config_hacmp_service_ip_labels_addresses_menu_dmn,This defines the service IP addresses.,Step 11.Perform a discovery and reboot,By this point,the nodes should have the ability to communicate with each other and keep the information stored in the nodes Object Data Managers(ODMs)in sync.Make the nodes within the cluster communicate with each other by running the command:,smitty cm_extended_config_menu_dmn,Select the Discover PowerHA-related Information from Configured Nodes option,and check for errors to fix.Generally,rebooting each node can clear up any minor problems,and this is a good point to test restarting each server anyway.,Step 12.Define the resource group,Run the command:,smitty cm_hacmp_extended_resource_group_config_menu_dmn,Define the resource group.Then,perform these steps:Select all participating nodes in the cluster.Set the Startup Policy to Online On First Available Node.Set the Fallback Policy to Never Fallback.This setting prevents the resources from going back to the original server when it is brought up,which is a wise thing to do.,Step 13.Create a shared volume group,Note:Run this command only on one node.Run the,smitty cl_vg,command,and create a shared volume group.When you create a shared volume group,you only need to select one of the nodes,because the disk is shared.,Step 14.Create a heartbeat disk,First,run the,smitty cl_convg,command,and then select Create a Concurrent Volume Group with Data Path Devices.Choose one node and the target disk.Next,run the command:,smitty cm_config_hacmp_communication_interfaces_devices_menu_dmn,Repeat,step 7,except this time,select the Discovered option and the target disk.,Step 15.Define an application server,Run the command:,smitty cm_cfg_app_extended,This defines an application server for an application that PowerHA will manage.Use the scripts you created in,step 4.,Step 16.Configure the resource group,Note:Run this command on only one node.Run the command:,smitty cm_hacmp_extended_resource_group_config_menu_dmn,Select the Change/Show Resources and Attributes for a Resource Group option.Then,perform these steps:Select the appropriate service IP addresses.Select the appropriate shared volume groups and heartbeat disk.Select the appropriate application servers.,Step 17.Perform a synchronization,Synchronize the cluster configuration.Run the command:,smitty cm_ver_and_sync,Set Automatically correct errors found during verification?to Interactive.Correct any problems along the way.,Step 18.Start the cluster,At this point,the cluster is ready to start.On one of the nodes,run the,smitty clstart,command,and pick that particular node.My preference is not to have the cluster start on reboot,because if there is a PowerHA-related problem on startup,it can be difficult to troubleshoot it.After the node comes up with the resources available,start the cluster on the other node.,Step 19.Perform a test failover,The best way I have found to test PowerHAs adaptability is to reboot the active node and let things fail over naturally while running the,tail f/tmp/hacmp.out,command on the other node to watch as things go over.Or,run the command:,smitty cl_resgrp_move.node_site,Select the Move Resource Groups to Another Node option.,Step 20.Perform failure testing,If you really want to make sure your cluster is solid,perform testing by literally emoving cables and seeing how the resources move back and forth.The more you test,the more reliable your cluster will be,.,Step 1.Install the PowerHA,Step 2.Edit some flat files,Put all of the IP addresses associated with the clusterboot,persistent,and serviceinto each/etc/hosts file on each node of the cluster.Do the same with the/usr/es/sbin/cluster/etc/rhosts file.Verify that the server hostnames match the appropriate IP addresses;the servers hostname should also match with the persistent IP address.,Step 3.Configure the boot IP addresses,Run the smitty chinet command,and set the boot IP addresses for each network adapter.Make sure that you are able to ping and connect freely from node to node on all respective networks.Also,double-check to make sure that the default route is properly configured.If it isnt,run smitty tcpip,go into the Minimum Configuration menu,enter the default route for the primary adapter,and press Enter.,Step 4.Make application start and stop scripts,Create two simple Korn shell scriptsone that starts an application and one that stops an application.Keep these scripts in identical directories on both nodes.,、,Vmware HA-,保障关键应用,VMware,解决了,AIX,的 四大,IT,难题!,没有容错功能,没有系统飘移功能(,VMotion,),没有基于,PowerVM,的灾备解决方案,电力紧缺,超低使用率,不支持开源软件,HACMP/PowerHA,的可靠性问题,被单一厂商绑架,oracleu2l u2l$python u2l.py,Enter number of loop to test-50,transaction#0 Fri Sep 21 15:01:38 2012 response=1,transaction#1 Fri Sep 21 15:01:39 2012 response=1,transaction#2 Fri Sep 21 15:01:41 2012 response=1,transaction#3 Fri Sep 21 15:01:42 2012 response=1,transaction#4 Fri Sep 21 15:01:43 2012 response=1,Sleep 1 second&try to access again.,Sleep 2 second&try to access again.,Sleep 3 second&try to access again.,Sleep 4 second&try to access again.,。,。,Sleep 13,0,second&try to access again.,Sleep 13,1,second&try to access again.,Sleep 13,2,second&try to access again.,transaction#23 Fri Sep 21 15:02:34 2012 response=133,transaction#24 Fri Sep 21 15:02:36 2012 response=1,transaction#25 Fri Sep 21 15:02:37 2012 response=1,。,。,transaction#30 Fri Sep 21 15:02:44 2012 response=1,transaction#31 Fri Sep 21 15:02:45 2012 response=1,transaction#32 Fri Sep 21 15:02:47 2012 response=1,Test for 50 loop end at-Fri Sep 21 15:03:10 2012,使用,Vmware-HA,高可用接管,oracleu2l u2l$python u2l.py,Enter number of loop to test-50,transaction#0 Fri Sep 21 15:01:38 2012 response=1,transaction#1 Fri Sep 21 15:01:39 2012 response=1,transaction#2 Fri Sep 21 15:01:41 2012 response=1,transaction#3 Fri Sep 21 15:01:42 2012 response=1,transaction#4 Fri Sep 21 15:01:43 2012 response=1,transaction#1 Fri Sep 21 15:01:39 2012 response=1,transaction#2 Fri Sep 21 15:01:41 2012 response=1,transaction#3 Fri Sep 21 15:01:42 2012 response=1,transaction#4 Fri Sep 21 15:01:43 2012 response=1,transaction#1 Fri Sep 21 15:01:39 2012 response=1,transaction#2 Fri Sep 21 15:01:41 2012 response=1,transaction#3 Fri Sep 21 15:01:42 2012 response=1,transaction#4 Fri Sep 21 15:01:43 2012 response=1,transaction#1 Fri Sep 21 15:01:39 2012 response=1,transaction#2 Fri Sep 21 15:01:41 2012 response=1,transaction#3 Fri Sep 21 15:01:42 2012 response=1,transaction#4 Fri Sep 21 15:01:43 2012 response=1,。,。,。,transaction#30 Fri Sep 21 15:02:44 2012 response=1,transaction#31 Fri Sep 21 15:02:45 2012 response=1,transaction#32 Fri Sep 21 15:02:47 2012 response=1,Test for 50 loop end at-Fri Sep 21 15:03:10 2012,使用,Vmware-FT,容错接管,133,-140,秒,0,秒,AIX-PowerVM,的第一个难题,:没有容错功能,RS/6000 p6-595,关键应用,2012,年,5,月 使用状态,IBM,p6-,P595,,,数据服务器,,AIX 5.3,,,4.2 GHz,,,2x4=8core,.,第四年,用户为何不愿意提高使用率?,RS/6000,使用率低为何是常见现象?,用户:噢,我们也有这个现象,好像挺普遍的。,第四年,Server 90%,以上的花费,Oracle 90%,以上的花费,Server MA-90%,以上的花费,Oracle MA-90%,以上的花费,数据库服务器,Web,服务器,应用服务器,42,%,47%,2,%,对关键应用 而言,VMware,是,D,isruptive,Technology,PowerVMware+AIX,VMware+Linux,AIX-PowerVM,的第二个难题,没有系统飘移功能,(,VMotion,),特点:一举数得,-,可靠,易于实现,异步,不实时,先保障数据,逐步迁移应用,发生灾难的保障,AIX-PowerVM,的第三个难题:没,有基于,PowerVM,的灾备解决方案,生产中心,VirtualCenter,Site Recovery,Manager,Site,A,Datastore Groups,IBM,-x3850,HP-DL980,灾备中心,VirtualCenter,Site Recovery,Manager,Site B,Datastore Groups,IBM,-x3850,HP-DL980,Replication,HACMP/PowerHA,HMC/PowerVM,Site,A/RS6000,R6-p780,R6-p795,REDO LOG,Replication,云灾备:一举多得,5,赢,运行商:电信,服务器设备供应商,软件与技术:,VMware,服务提供商:合作伙伴,需要灾备的中小企业,www.theregister.co.uk/2011/08/31/ibm_power_chip_roadmap_update/,电不够用,拿掉一台,PowerVM-AIX,机可以低三台,AIX-PowerVM,的第四个难题:耗电,AIX-PowerVM,的第五个难题,运行旧版本的,AIX,极其艰难,Agenda,什么是关键应用,关键应用为何虚拟化,关键应用如何虚拟化,结语,当前运行数据库关键应用最可靠的服务器架构,是,Vmware,搭建的,Linux,服务器,,不是,PowerVM,下搭建的,AIX,核心存储,3Par,(,SSD+FC,硬盘),SAN,交换机,区域,A,区域,B,HP DL980,万兆,网络,FC SAN,FC SAN,同步复制,核心存储,3Par,(,SSD+FC,硬盘),说明,处理器,4,处理器或,8,处理器,高达,10,核,Intel Xeon Westmere-EX,处理器,内存,128,个,DDR3 DIMM,插槽,最大内存,4TB,(采用,32GB,内存条),内置存储设备,8,个标配,SFF SAS,热插拔托架,支持嵌入式,RAID,1,个,DVD,可移动驱动器托架,网络,4,个嵌入式千兆位网卡,I/O,高达,16,个可用的,I/O,插槽,5-PCI-e Gen 2,个标配,I/O,插槽(,2 x8,和,3 x4,),可选的,I/O,扩展器,支持高达,11,个额外的插槽,一个具有,6,个插槽的全高选件,,一个具有,5,个插槽的薄型选件,管理,iLO 3,外形,8U,机架安装式服务器,操作系统,Windows,、,Linux,虚拟化,VMWare ESX,、,Microsoft HyperV,、,Linux Virtualization,、,Oracle VM,方剂,核心存储,3Par,(,SSD+FC,硬盘),SAN,交换机,C7000,刀片机箱。,8,台,BL685,刀片服务器。每台配置(,64,个,CPU Core,,,512GB,146GBx2,4,个万兆网卡,,2,个,8Gb HBA,端口,,IO,加速卡,640GB,),+VMware,HP C7000,区域,A,区域,B,HP C7000,万兆,网络,HP C7000,FC SAN,FC SAN,HP C7000,同步复制,核心存储,3Par,(,SSD+FC,硬盘),刀片也能做数据库关键应用的方剂,Power6,升级到,Power7,得到,21%,Power,5,升级到,Power7,得到,31-45%,Power6,升级到,x86,得到,25-26%,Power,5,升级到,x86,得到,29-44%,*RPERF:RPERF calculated by Stephen Chu,*,数据库关键应用虚拟化的容量规划,关键应用虚拟化步骤,第二步:迁移数据库,第三步:迁移应用服务器,如果不牵涉应用改造(如,CICS6000),第四步:迁移应用,可用性,优先顺序,450,万,100%,的浪费,使用率,=1.6%,使用率,=80%,VMware,U2L,后,IT,预算包产到户,使用率,=1.6%,关键应用虚拟化最后一步:把,IT,预算花在做实事的,SI,,,ISV,身上,Agenda,什么是关键应用,关键应用为何虚拟化,关键应用虚拟化的时机,关键应用虚拟化的步骤,结语,结语,数据库关键应用,-,选择最可靠的,Vmware+x86,性能,VMware+x86Linux,与,RS/6000-AIX,性能一样好。,风险,VMware+x86Linux,比,RS/6000-AIX,更可靠。,解决了,UNIX,老问题,VMware+x86Linux,解决了困扰,RS/6000-AIX,的四大,IT,难题,。,VMware,与您一起建设新时代的关键应用,谢谢!,期待与您共同思考和探索!,
展开阅读全文