云服务平台二期部署方案_第1页
云服务平台二期部署方案_第2页
云服务平台二期部署方案_第3页
云服务平台二期部署方案_第4页
云服务平台二期部署方案_第5页
已阅读5页,还剩80页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

云二期部署方第1 架构设 总体架 服务器连接方 连接方 JuniperSRX连接方 接入界 第2 设备信 网络设备信 设备信 服务器信 物理环境VLAN信 虚拟机信 第3 安装管理服务 架构说 做数据库.............................................................................................. 配置 配置NTP与HTTP服务 配置usage Mysql备份............................................................................................配置计划任 安装 第4 安装虚拟化环 环境说 安装 安装XenServerSupportPackage 更新参数配 安装license 更新 打补丁更 ntp同 开启多路 网卡绑定与设 第5 配置......................................................................................................架构说 配置一级..............................................................................................配置二级..............................................................................................第6 更新程序代 上传包与.......................................................................................安装包与.......................................................................................第7 配置 Cloudstackzone信 Zone结构规 网络规 规 创建 添加 添加primary 添加 第8 参数配 GlobalSettings设 用户资源设 第9 创建服务方 计算方 磁盘方 网络方 第10 创建用 添加.................................................................................................添加用 第11 创建网 Isolated网 Shared网 第12 主机配 Value用户主机配 Premium用户主机配 第1章架构设云二期的整体架构为搭建一套与一期环境完全独立的CloudStackJuniperJuniper堆LenovoCloudStack管图H3CH3C心跳1GbpsLAN10GpbsFCEMC前端通过两台JuniperSRX550进行安全防护,对外连接到公网Internet,对内连接到两台H3CS5500三层交换机,在三层交换机上配置路由策略,两台三层交换机之间用Trunk方式进行连接,通过两台H3CLS-S5120二层交换机下联到云平台服务器上,二层交换机只起到接上面部署策略,两台二层交换机通过堆叠接口进行连接以实现管理二期一共部署2018台服务器用于CloudStack云平台的Host节点,两台服务器用作部署CloudStack4210Gbps光口用作iSCSI连接,连接到后端的H3CS5820交换机上。二期用一台EMCVNX5500阵列设备提供Cloudstack云平台的主存储与二级,其中主采用iSCSI方式通过交换机与服务器向连接,二级采用NAS机头方式通过二层接入交换机的万兆光纤端口连接至服务10GpsFberLenovoS5820V2-52QFS5820V2-52QFLS-S5120-52SC-HILS-S5120-52SC-HI86个为千兆电口,2兆光口。64个,eth0和eth1绑定为bond0,通行CloudStack的managementtrafficLS-S5120-52SC-HI机的端口配置为Access模式;eth2和eth3绑定为bond1,通行CloudStack的storagetraffic、publictraffic、guesttraffic,上联到两台接入交换机LS-S5120-52SC-HI上,交换机的端口配置为TrunkEth6和Eth7绑定为bond2,以光纤的方式连接到交换机H3CS5820V2-52QF上,通行到后端的EMCVNX5500设备。EMC光纤线路连接到两台H3CS5820V2-52QF交换机上,两台交换机上启用Trunk链路互联。NAS10Gbps光纤线路连接到H3CLS-S5120-52SCJuniperSRX连接方CloudStack内置了对JuniperSRX的支持,架构图如下4:JuniperSRX在具体的配置中,需要在JuniperSRX上,配置一个接口连接到Cloudstack的PublicnetworkPublicNetwork即为Internet网络,配置一个接口连接到Cloudstack的Guestnetwork上,还需要配置一个接口用作对JuniperSRX的管理。需要在Cloudstack上添加SRX的设备信息。在配置的过程中,必须保证JuniperSRX的Publicnetwork接口所用的VLAN和CloudStack的Publictraffic所用的VLAN信息相同。第2章设备信序设备用备1H3CS5500-34C-HI2H3CS5500-34C-HI345H3CS5820V2-52QF6H3CS5820V2-52QF序设备类管理备1EMC23ForA-4B-5A-6B-7For序管理备123456789VLANVLANIP掩备VLANFor主机ILO管预Xenserverconnectionbetweenswitchandconnectionbetweenmainswitchandfirewall预ZoneforiSCSIZoneforiSCSiVLANForsyslogserver,VLANForCSmgmt,VLANforinternet底层备12数据库数据库前http服系统日DNS服器第3章安装管理服务

用户通过https站点,的为haproxy服务器。Haproxy把https请求通过http方式均衡转发到后端的两台managementserver上。Managementserver8080端口开启。两台managementserver的db为MysqlmasterMysqlmaster和mysqlslavedb以root修改/etc/hosts文件,添加fqdnvivi0配置安装光盘为YUM修改iptablesiptablesiptables-chkconfigiptablesoffvivi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyis#permissive-SELinuxprintswarningsinsteadof#disabled-NoSELinuxpolicyis#SELINUXTYPE=cantakeoneofthesetwo#ededprocessesare#mls-MultiLevelSecurity上传Cloudstack上传文件CloudStack-oss-3.0.2-1-rhel6.2.tar.gz到选择配置NFSchkconfigchkconfigrpcbindonchkconfignservicerpcbindservicenfs以root修改/etc/hosts文件,添加fqdnvivi1配置安装光盘为YUM修改iptablesiptablesiptables-chkconfigiptablesoffvivi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyis#permissive-SELinuxprintswarningsinsteadof##disabled-NoSELinuxpolicyis#SELINUXTYPE=cantakeoneofthesetwo#ededprocessesare#mls-MultiLevelSecurity上传Cloudstack上传文件CloudStack-oss-3.0.2-1-rhel6.2.tar.gz到选择配置NFSchkconfigchkconfigrpcbindonchkconfignservicerpcbindservicenfs以root修改/etc/hosts文件,添加fqdnvivi配置安装光盘为YUM修改iptablesiptablesiptables-chkconfigiptablesoffvivi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyis#permissive-SELinuxprintswarningsinsteadof#disabled-NoSELinuxpolicyis#SELINUXTYPE=cantakeoneofthesetwo#ededprocessesare#mls-MultiLevelSecurity上传Cloudstack上传文件CloudStack-oss-3.0.2-1-rhel6.2.tar.gz到选择f#Disablingsymbolic-linksmendedtopreventassortedsecuritybinlog-format='ROW'log-设置MySQL的root,删除不必要的登录权限,创建用户。并刷mysqlmysql–umysql>grantallprivilegeson*.*to'root'@'%'identifiedby'eWNPQkJ6'withgrantoption;mysql>deletefrommysql.userwherePASSWORD="";mysql>deletefrommysql.userwhereHOST='localhost';mysql>grantreplicationslaveon*.*to'slaver'@'192.168.97.%'identifiedbymysql>flush重新启动mysql并用新重新登录。如能正常登录mysql,则配置正确mysql–uroot关闭掉mysql以root修改/etc/hosts文件,添加fqdnvivi配置安装光盘为YUM修改iptablesiptablesiptables-chkconfigiptablesoffvivi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyis#permissive-SELinuxprintswarningsinsteadof#disabled-NoSELinuxpolicyis#SELINUXTYPE=cantakeoneofthesetwo#ededprocessesare#mls-MultiLevelSecurity上传Cloudstack上传文件CloudStack-oss-3.0.2-1-rhel6.2.tar.gz到选择f#Disablingsymbolic-linksis mendedtopreventassortedsecurityriskslog-cd确保当 rmrm-fr从mysql1机器拷贝数据文件到mysql2机器,在mysql1scpscp-fr/var/lib/mysql/*启动mysql1与mysql2上的mysql服务查看mysql1机器的binlog位置点,在mysql1mysqlmysql–uroot-mysql>showmasterFile字段和Position******************************************************1.row***************************File:mysql-bin.000005Position:1061rowinset(0.00在mysql2机器上设置同步,并启动同步线程。在mysql2mysqlmysql–uroot-peWNPQkJ6mysql>changemasterto启动slavemysql>showmysql>showslaveSlave_IO_RunningSlave_SQL_Running的值都为yes,说安装管理机器的mysql在manager1和manager2yumyuminstall在manager1 在manager1 在manager2以root修改/etc/hosts文件,添加fqdnvivi配置安装光盘为YUM修改iptablesiptablesiptables-chkconfigiptablesoffvivi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyis#permissive-SELinuxprintswarningsinsteadof#disabled-NoSELinuxpolicyis#SELINUXTYPE=cantakeoneofthesetwo#ededprocessesare#mls-MultiLevelSecurity安装gccyumyuminstall安装yumyuminstall安装上传pcre-8.32.tar.gz到cd/usr/local/src/pcre-8.32make安装haproxy上传文件haproxy-1.5-dev15.tar.gz到makePREFIX=/haproxy配置mkdirmkdir-ptouch编辑ha.cfglogmaxconn4096uid501gid501nbprocpidfileloglocal3modehttpoptionhttplogoptionhttpcloseoptiondontlognulloptionforwardforoptionredispatchretries2maxconnbalancebalancebalancecontimeoutimeoutsrvtimeoutlistenbindmodeloglocal3statsuri/admin-statsauthadmin:haglstatsrefresh60sfrontendcloud10:8080modehttpacldislurl_dir-ioptionforwardforexcept0reqaddX-Forwarded-Proto:\httpsacldislurl_dir-iredirectprefixhttps: .cn/clientcode301if!disluse_backendcloud_bkifdislbackendcloud_bkmodeserverweb1web1checkinter2000risefallserverweb1web1checkinter2000risefall配置haproxy/$ModLoad$ModLoad$UDPServerRun 重启rsyslogstunnel包安装tar-zxvf tar-zxvf cdstunnel-4.44groupadd配置vivifips=nosslVersion=alloptions=NO_SSLv2setuid=rootsetgid=pid=/var/run/stunnel.pidsocket=l:TCP_NODELAY=1socket=output=[]cert=/etc/stunnel/cert/wwwcloud.crtkey=acceptaccept=connect=TIMEOUTclose=0启动启动 .cn/为0:1081/admin-status用户名adminhagl为管理页面,可以看到haproxy的相关信息。/var/log/haproxy.log为haproxyNTPHTTPntp与http服务使用同一台机器,使用centos5.4关闭iptablesiptables-chkconfigiptablesoff关闭vivi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyis#permissive-SELinuxprintswarningsinsteadof##disabled-NoSELinuxpolicyis#SELINUXTYPE=cantakeoneofthesetwo#ededprocessesare#mls-MultiLevelSecurity安装yumyum–yinstall配置httpdmkdir-p/var/www/html/centosmkdir-p/var/www/html/redhatmkdirmkdir-p/var/www/html/centosmkdir-p/var/www/html/redhatmkdir-p/var/www/html/windowsmkdir-p设置httpdchkconfigchkconfighttpd启动httpd确认httpdnetstatnetstat-antup|grep安装yumyum-yinstall修改ntpvivirestrictdefaultkodnomodifynotrapnopeernoqueryrestrictrestrict-6server4server stratum10driftfile/var/lib/ntp/driftkeyskeysrestrictmaskrestrictmask设置ntpchkconfigchkconfigntp启动确认ntpnetstatnetstat-antup|grepntpq-usage修改managementserver的usage需要配置的变量有Enable.usage.server,usage.aggregation.timezone,8.1在两台管理节点上都重启managementserver在两台管理节点上都安装usageserver选择在两台管理节点上都启动usageserver统计配在db1mkdirmkdir-p在db1服务器的相 下放置统计ViVimysql-uroot-p$dbPassworde"usecloud_usage;selectaccount.account_nameas账号名称',usage_event.resource_nameas虚拟机名称',usage_event.typeas'操作类型',usage_event.createdas'操作执行时间'fromwhereusage_event.typeinViVi cloud_usage.user_statisticsgroupbynetwork_id;"`echo账号名称forbinif[$b!="network_id"]#computec=`mysql-uroot-p$dbPassword-e"selectguest_typefromworkswhereid=$b"`d=`echo$c|awk'{print$2}'`if[$d=="Isolated"]#compute cloud_usage.user_statisticswherenetwork_id=$b"`f=`echo$e|awk'{print -uroot cloud.accountwhereid=$f"`account_name=`echo$g|awk'{print#computeh=`mysql-uroot-p$dbPassword-e"selectagg_bytes_receivedfromcloud_usage.user_statisticswherenetwork_id=$b"`traffic_received=`echo$h|awk'{print -uroot-p$dbPassword-e "selectagg_bytes_sentfromcloud_usage.user_statisticswherenetwork_id=$b"`traffic_sent=`echo$i|awk'{print#computej=`mysql-uroot-p$dbPassword-e"selectdistinct(public_ip_address)fromcloud.user_ip_addresswherenetwork_id=$b"`public_ip=`echo$j|awk-F'public_ip_address''{print$2}'`ViVi#a--allvm_instance_id#b--onevm_instance_id#c--start_datetwo#start_date--onestart_dateofavm#d--forisornotnull#end_date--oneend_dateofavm#now_time--now_timeofGMT+0#e--vmdestroyedend_datetwo#use_time--use_time=end_time-#f--tmpvalueofvm_name,hyper_type,account,service#g--tmpvalueofaccount#h--tmpvalueofservice#soi--service_offering_id#i--tmpvalueoft=`mysql-uroot-p$dbPassword-e"settime_zone='+0:00';selectnow()"`now_time=`echo$t|awk'{print$2,$3}'` cloud_usage.usage_vm_instancegroupbyvm_instance_id;"`echo'账号名称,虚拟机名称,虚拟 类型,cpu数量,cpu速度(MHz),内forbin$aif[$b!="vm_instance_id"]#computec=`mysql-uroot-p$dbPassword-e"selectstart_datefromcloud_usage.usage_vm_instancewherevm_instance_id=$bandusage_type=2orderbystart_dateasclimit1"`start_date=`echo$c|awk'{print$2"#computed=`mysql-uroot-p$dbPassword-e"selectend_datefromcloud_usage.usage_vm_instancewherevm_instance_id=$bandusage_type=2orderbyend_dateasclimit1"`tmp_end_date=`echo$d|awk'{print$2}'`if[$tmp_end_date=="NULL"] e=`mysql-uroot-p$dbPassword-e"selectend_datefromcloud_usage.usage_vm_instancewherevm_instance_id=$bandusage_type=2orderbyend_datedesclimit1"`end_date=`echo$e|awk'{print$2" #compute cloud_usage.usage_vm_instancewherevm_instance_id=$blimit1"`vm_name=`echo$f|awk'{print$5}'`hypervisor_type=`echo$f|awk'{print#computeaccount_id=`echo$f|awk'{print cloud.accountwhereid=$account_id"`account_name=`echo$g|awk'{print#computeh=`mysql-uroot-p$dbPassword-e"selectservice_offering_idfromcloud_usage.usage_vm_instancewherevm_instance_id=$blimit1"`soi=`echo$h|awk'{printi=`mysql-uroot-p$dbPassword-e"selectcpu,speed,ram_sizefromcloud.service_offeringwhereid=$soi"`cpu=`echo$i|awk'{print$4}'`speed=`echo$i|awk'{print$5}'`mem=`echo$i|awk'{print$6}'`ViVi/use/usage/_usage_volume.sht=`mysql-uroot-p$dbPassword-e"settime_zone='+0:00';selectnow()"`now_time=`echo$t|awk'{print$2,$3}'`a=`mysql-uroot-p$dbPassword-e"selectidfromcloud_usage.usage_volumegroupbyid;"`echo账号名称,名称,类型,容量(GB),创建时间,删除时间,使用时间(小时)'forbin$aif[$b!="id"]#compute cloud_usage.usage_volumewhereid=$borderbycreatedasclimit1"`created=`echo$c|awk'{print$2"#compute cloud_usage.usage_volumewhereid=$borderbydeletedasclimit1"`tmp_deleted=`echo$d|awk'{print$2}'`if[$tmp_deleted=="NULL"] cloud_usage.usage_volumewhereid=$borderbydeleteddesclimit1"`deleted=`echo$e|awk'{print$2" #compute cloud_usage.usage_volumewhereid=$blimit1"`tmp_size=`echo$f|awk'{print$3}'`#computeaccount_id=`echo$f|awk'{print cloud.accountwhereid=$account_id"`account_name=`echo$g|awk'{print#computeh=`mysqlh=`mysql-uroot-p$dbPassword-e"selectname,volume_typefromcloud.volumeswhereid=$b"`name=`echo$h|awk'{print$3}'`type=`echo$h|awk'{print$4}'`echoa=`mysql-uroot-p$dbPassword-e"selectidfromcloud.vm_templatewhereecho模板名称,账号,开始使用时间,结束使用时间,模板大小(GB)'forbin$aif[$b!="id"]#computec=`mysql-uroot-p$dbPassword-e"selectnamefromcloud.vm_templatewhereid=$b"`template_name=`echo$c|awk'{print#compute cloud.vm_templatewhereid=$b"`e=`echo$d|awk'{print cloud.accountwhereid=$e"`account_name=`echo$f|awk'{print$2}'`#computecreatedg=`mysql-uroot-p$dbPassword-e"selectcreatedfromcloud.vm_templatewhereid=$b"`created=`echo$g|awk'{print$2,$3}'`#computedeleted cloud.vm_templatewhereid=$b"`tmp_deleted=`echo$h|awk'{print$2}'`if[$tmp_deleted=="NULL"]deleted=`echo$h|awk'{print$2"#computesizeif[$tmp_deleted=="NULL"] cloud.template_host_refwheretemplate_id=$b"`tmp_size=`echo$j|awk'{print$2}'`k=`mysql-uroot-p$dbPassword-e"selectsizefromcloud.volumeswheretemplate_id=$blimit1"`tmp_size=`echo$k|awk'{print$2}'`echoa=`mysql-uroot-p$dbPassword-e"selectidfromechosnapshot名称,账号,开始使用时间,结束使用时间,snapshot大小(GB)'forbin$aif[$b!="id"]#computec=`mysql-uroot-p$dbPassword-e"selectvolume_idfromcloud.snapshotswhereid=$b"`d=`echo$c|awk'{printe=`mysql-uroot-p$dbPassword-e"selectnamefromcloud.volumessnapshot_name=`echo$e|awk'{print$2}'`#computeaccount_namef=`mysql-uroot-p$dbPassword-e"selectaccount_idfromcloud.snapshotswhereid=$b"`g=`echo$f|awk'{print cloud.accountwhereid=$g"`account_name=`echo$h|awk'{print$2}'`#computecreatedi=`mysql-uroot-p$dbPassword-e"selectcreatedfromcloud.snapshotswhereid=$b"`created=`echo$i|awk'{print$2,$3}'`#computedeletedj=`mysql-uroot-p$dbPassword-e"selectremovedfromcloud.snapshotswhereid=$b"`tmp_deleted=`echo$j|awk'{print$2}'`if[$tmp_deleted=="NULL"]deleted=`echo$j|awk'{print$2"#computesizek=`mysql-uroot-p$dbPassword-e"selectsizefromcloud.snapshotswheretmp_size=`echo$k|awk'{print$2}'`echo生成csvdate=`date+%F`#dosed-i's/\t/,/g'$srcDir/tocsv/_account_vm_$date.csv#do$srcDir/_network.sh>#do$srcDir/_usage_vm.sh>#do$srcDir/_usage_volume.sh>#do$srcDir/_template.sh>#do$srcDir/_snapshot.sh>生成csv 下生成.csv格式的报表文件,文件名会有当天日期来区分。到本地用excel打开即可查看。Mysql配置mysql备份的工mkdirmkdir-p配置mysql在db1服务器上相 配viviSTIME=`dateDump_US='-uroot-pxxxxxx'fordbnameincloudecho`date+%Y-%m-%d_%k-%M-%S`"startbackupdatabase"$dbname$MYSQL_BIN_PATH'/'mysqldump$Dump_US--press$dbnameif[“$?”==“0”echo`date+%Y-%m-%d_%k-%M-%S`"endbackupdatabase"$dbnameecho`date+%Y-%m-%d_%k-%M-%S`"errorbackupdatabase"$dbname管理员会把mysql备份加入到计划任务中执行。每天会进行cloud库和cloud_usage库的备份。备份文件到/use/mysql/backup_file/ 以每天的日期和库名进行区分。/use/mysql/backup_file/backup.log为备序计划任备1 *23***/usr/sbin/ntpdate–u管理服务器2 *23***/usr/sbin/ntpdate-u管理服务器33023****23***/usr/sbin/ntpdate-u数据库服务器4*23***/usr/sbin/ntpdate-u数据库服务器5*23***/usr/sbin/ntpdate-u安装xentools序备1 管理服务器2 管理服务器3数据库服务器4数据库服务器5在xenserver界面上选中虚拟机,选择安装xentoolsmountmount/dev/cdrom安装xen-toolscdcd安装xen-tools第4章安装虚拟化环并在每台主机开启多路径,提供出sr后,再在cloudstack层作。在网卡绑定,在cloudstack中添加主机时会自动添加。从XenServer6.0.2OK选择AcceptEULAOKNO选择skipverification输入根据不同的主机输入相应的IP输入相应的主机名和DNS选择Asia单击installXenServer手动设置时间,OKXenServerSupportPackageCSP)。 执行安装修改/boot/extlinux.conf文件中labelxe段中dom0_mem记录/etc/xensource-inventory文件中CONTROL__UUID变量的值,作为之后两条命令uuid字段的值。 echovm-license在xenserver界面工具项中选择tools下的licensemanagerassignlicense在licenseedition项中选择CitrixXenServerforxenDesktop。并填入licenseserver的ip地址。在xenserver界面工具项中选择tools下的InstallsoftwareUpdate在selectupdate选中要更新的部分,点击next在selectserver选中要更新的主机,点击next在updatemode选择iprefertocarryoutpost-updatetasksmanually击installupdate。ntp在host/usr/sbin/ntpdate/usr/sbin/ntpdate-u选中主机,右键并选择entermaintenancemode已经进入模式的主机,并选择属性选中Multipathing项并勾选Enablemultipathingonthisserver重启host在xenserver界面的networking选项中点击AddNetwork选择BondedNetwork23Finish在xenserver界面的Networking选项中选中bond2+3Properties。修改Name字段为vSwitch第5章配 lun分配方案类连接方容用备一给value用户的cluster一primium用户的cluster,低速磁一给value用户的cluster一primium用户的cluster,高速磁二作为二级给zone使 分配注意事由于的分配cloudstack有85%的使用限制而使用Thinprovision分15%的空间分配值。主:主通过ISCSI方式连接到Hypervisor主机分配给Value主机Premium用户的主依据客户实际需求分配新建LUN进入EMC管理界面中storage->LUNs选项卡,点击CreateCreaUN界面StoragePoolType:选择RAIDType:选择RAID5:DistributedParity(HighStoragePoolfornewLUN:选择要把LUN加入到的storagepoolUserCapacity:需要划分的容量LUNID:选择可用的LUNIDNumberofLUNstocreate:1LUNname:AutomaticallyassignLUNIDsasLUNNames为storagegroup添加host进入EMC管理界面中storagegroup界面选中要操作的storagegroup。属性。在弹出的Hosts选项卡中为这个storagegroup添加hosts。添加LUN到指定的storagegroup进入EMC管理界面中storagegroup界面选中要操作的storagegroup。属性。在弹出的LUNs选项卡中为这个storagegroup添加建立好的LUNs在xenserver上添加SR在xenserver界面中的主机上操作。右键选择NewSR。Type选择SoftwareISCSI并点击next。Host填写主机地址。点击DiscoverIQNs并选择IQN。之后点击Discover LUNs并选择之前添加的LUN点击Finish。使用vnx5500提供NAS,以在cloudstack中添加secondarystorage。第6章更新程序代sql.shaccounthostcloudstack-dev-install-1.sh拷贝systemvm.iso到/usr/lib64/cloud/agent/vms/将/uiimages文件夹、scripts文件夹、css文件、index.jsp将client\WEB-INF\classes\resources将perties拷贝到/etc/cloud/management上传包将安装包上传到管理服务器/usr/local/src拷贝源代码安装包-deploy1 拷贝源代码安装包-deploy2 从管理服务器ssh到mastersftp将-deploy下的拷贝到master数据库的/usr/local/src/- 下安装包执行sql.sh修改数据库。在management1登录master和slaveaccount表和host表是否修改成功。mysqlmysql-uroot-mysql>useaccountusertypemysql>mysql>desc| |int(1)| ||查看hostaccountidmysql>mysql>desc||bigint(20)unsigned| ||1上执行cloudstack-dev-install-2上执行cloudstack-dev-install-12使用浏览器登录https验证是否正第7配置CloudstackzoneZone二一6台value主从剩余12台主机premium主机Physicalnetwork网络类PhysicalNetwork无ManagementPhysicalNetwork无PublicGuestStorageTraffic与VLANStartEndIP掩使用不连续publicip地用于Internet连接Juniper用于BusinessShared网用于Shared网GuestVLAN用网络名IP掩网类名类路径(SRName-容/////按/按在二级上准备系统虚拟机模将系统虚拟机模板放到apache的页面 下,用scp或winscp等方式把系 在management-server上挂载二级到本mkdirmkdir-p/tempuse/- xenserverxenserver-卸载 umountumount选择zoneaddzone按钮后,选择advanced设置zoneName:zone的名称,这里填写kshzoneDNS1:dns1的IP32DNS2:dns2的IPInternalDNS1:所使用dns服务器1的IP,这里填写3Hypervisor:选择GIDR:填写红色标记:storage蓝色标记:system绿色标记:guest黄色标记:publictrafficelabel。Storageguestpublic2上,标记填写vSwitch1。设置publicendIP:0设置podPodname:zone时,要生成一个pod。这里填写kshpod01StartsystemIP:系统网络的开始IP。这里填写61EndsystemIP:系统网络的结束IP。这里填写90设置guestVLANRange:Guest网络VLAN200-399设置storageVLAN:网络的VLAN号。这里填写97StartIP:网络的起始IP。这里填写01EndIP:网络的结束IP。这里填写30设置clusterHypervisor:自动显示出XenServer设置hostHostName:host主机的ip1Password:填写host主机root的设置一级信息Name:这个主的名称。这里填写value01-primary01Protocol:主使用的协议。这里选择PreSetupSRName-Label:primary01设置二级信息NFSServer:二级提供nfs服务的IP地址。这里填写0点击生成zone进入添加clusterInfrastructure->ClustersAddCluster添加clusterZone:选择kshzoneHypervisor:选择XenServerPod:选择podClusterNameclusternameprimary进入添加primarystorageInfrastructure->Zones->kshzone->PrimaryStorage界面中,点击AddPrimaryStorage。添加primarystor

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论