




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
云二期部署方第1 架構(gòu)設(shè) 總體架 服務(wù)器連接方 連接方 JuniperSRX連接方 接入界 第2 設(shè)備信 網(wǎng)絡(luò)設(shè)備信 設(shè)備信 服務(wù)器信 物理環(huán)境VLAN信 虛擬機(jī)信 第3 安裝管理服務(wù) 架構(gòu)說 做數(shù)據(jù)庫.............................................................................................. 配置 配置NTP與HTTP服務(wù) 配置usage Mysql備份............................................................................................配置計(jì)劃任 安裝 第4 安裝虛擬化環(huán) 環(huán)境說 安裝 安裝XenServerSupportPackage 更新參數(shù)配 安裝license 更新 打補(bǔ)丁更 ntp同 開啟多路 網(wǎng)卡綁定與設(shè) 第5 配置......................................................................................................架構(gòu)說 配置一級..............................................................................................配置二級..............................................................................................第6 更新程序代 上傳包與.......................................................................................安裝包與.......................................................................................第7 配置 Cloudstackzone信 Zone結(jié)構(gòu)規(guī) 網(wǎng)絡(luò)規(guī) 規(guī) 創(chuàng)建 添加 添加primary 添加 第8 參數(shù)配 GlobalSettings設(shè) 用戶資源設(shè) 第9 創(chuàng)建服務(wù)方 計(jì)算方 磁盤方 網(wǎng)絡(luò)方 第10 創(chuàng)建用 添加.................................................................................................添加用 第11 創(chuàng)建網(wǎng) Isolated網(wǎng) Shared網(wǎng) 第12 主機(jī)配 Value用戶主機(jī)配 Premium用戶主機(jī)配 第1章架構(gòu)設(shè)云二期的整體架構(gòu)為搭建一套與一期環(huán)境完全獨(dú)立的CloudStackJuniperJuniper堆LenovoCloudStack管圖H3CH3C心跳1GbpsLAN10GpbsFCEMC前端通過兩臺JuniperSRX550進(jìn)行安全防護(hù),對外連接到公網(wǎng)Internet,對內(nèi)連接到兩臺H3CS5500三層交換機(jī),在三層交換機(jī)上配置路由策略,兩臺三層交換機(jī)之間用Trunk方式進(jìn)行連接,通過兩臺H3CLS-S5120二層交換機(jī)下聯(lián)到云平臺服務(wù)器上,二層交換機(jī)只起到接上面部署策略,兩臺二層交換機(jī)通過堆疊接口進(jìn)行連接以實(shí)現(xiàn)管理二期一共部署2018臺服務(wù)器用于CloudStack云平臺的Host節(jié)點(diǎn),兩臺服務(wù)器用作部署CloudStack4210Gbps光口用作iSCSI連接,連接到后端的H3CS5820交換機(jī)上。二期用一臺EMCVNX5500陣列設(shè)備提供Cloudstack云平臺的主存儲與二級,其中主采用iSCSI方式通過交換機(jī)與服務(wù)器向連接,二級采用NAS機(jī)頭方式通過二層接入交換機(jī)的萬兆光纖端口連接至服務(wù)10GpsFberLenovoS5820V2-52QFS5820V2-52QFLS-S5120-52SC-HILS-S5120-52SC-HI86個為千兆電口,2兆光口。64個,eth0和eth1綁定為bond0,通行CloudStack的managementtrafficLS-S5120-52SC-HI機(jī)的端口配置為Access模式;eth2和eth3綁定為bond1,通行CloudStack的storagetraffic、publictraffic、guesttraffic,上聯(lián)到兩臺接入交換機(jī)LS-S5120-52SC-HI上,交換機(jī)的端口配置為TrunkEth6和Eth7綁定為bond2,以光纖的方式連接到交換機(jī)H3CS5820V2-52QF上,通行到后端的EMCVNX5500設(shè)備。EMC光纖線路連接到兩臺H3CS5820V2-52QF交換機(jī)上,兩臺交換機(jī)上啟用Trunk鏈路互聯(lián)。NAS10Gbps光纖線路連接到H3CLS-S5120-52SCJuniperSRX連接方CloudStack內(nèi)置了對JuniperSRX的支持,架構(gòu)圖如下4:JuniperSRX在具體的配置中,需要在JuniperSRX上,配置一個接口連接到Cloudstack的PublicnetworkPublicNetwork即為Internet網(wǎng)絡(luò),配置一個接口連接到Cloudstack的Guestnetwork上,還需要配置一個接口用作對JuniperSRX的管理。需要在Cloudstack上添加SRX的設(shè)備信息。在配置的過程中,必須保證JuniperSRX的Publicnetwork接口所用的VLAN和CloudStack的Publictraffic所用的VLAN信息相同。第2章設(shè)備信序設(shè)備用備1H3CS5500-34C-HI2H3CS5500-34C-HI345H3CS5820V2-52QF6H3CS5820V2-52QF序設(shè)備類管理備1EMC23ForA-4B-5A-6B-7For序管理備123456789VLANVLANIP掩備VLANFor主機(jī)ILO管預(yù)Xenserverconnectionbetweenswitchandconnectionbetweenmainswitchandfirewall預(yù)ZoneforiSCSIZoneforiSCSiVLANForsyslogserver,VLANForCSmgmt,VLANforinternet底層備12數(shù)據(jù)庫數(shù)據(jù)庫前http服系統(tǒng)日DNS服器第3章安裝管理服務(wù)
用戶通過https站點(diǎn),的為haproxy服務(wù)器。Haproxy把https請求通過http方式均衡轉(zhuǎn)發(fā)到后端的兩臺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-設(shè)置MySQL的root,刪除不必要的登錄權(quán)限,創(chuàng)建用戶。并刷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關(guān)閉掉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確保當(dāng) rmrm-fr從mysql1機(jī)器拷貝數(shù)據(jù)文件到mysql2機(jī)器,在mysql1scpscp-fr/var/lib/mysql/*啟動mysql1與mysql2上的mysql服務(wù)查看mysql1機(jī)器的binlog位置點(diǎn),在mysql1mysqlmysql–uroot-mysql>showmasterFile字段和Position******************************************************1.row***************************File:mysql-bin.000005Position:1061rowinset(0.00在mysql2機(jī)器上設(shè)置同步,并啟動同步線程。在mysql2mysqlmysql–uroot-peWNPQkJ6mysql>changemasterto啟動slavemysql>showmysql>showslaveSlave_IO_RunningSlave_SQL_Running的值都為yes,說安裝管理機(jī)器的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的相關(guān)信息。/var/log/haproxy.log為haproxyNTPHTTPntp與http服務(wù)使用同一臺機(jī)器,使用centos5.4關(guān)閉iptablesiptables-chkconfigiptablesoff關(guān)閉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設(shè)置httpdchkconfigchkconfighttpd啟動httpd確認(rèn)httpdnetstatnetstat-antup|grep安裝yumyum-yinstall修改ntpvivirestrictdefaultkodnomodifynotrapnopeernoqueryrestrictrestrict-6server4server stratum10driftfile/var/lib/ntp/driftkeyskeysrestrictmaskrestrictmask設(shè)置ntpchkconfigchkconfigntp啟動確認(rèn)ntpnetstatnetstat-antup|grepntpq-usage修改managementserver的usage需要配置的變量有Enable.usage.server,usage.aggregation.timezone,8.1在兩臺管理節(jié)點(diǎn)上都重啟managementserver在兩臺管理節(jié)點(diǎn)上都安裝usageserver選擇在兩臺管理節(jié)點(diǎn)上都啟動usageserver統(tǒng)計(jì)配在db1mkdirmkdir-p在db1服務(wù)器的相 下放置統(tǒng)計(jì)ViVimysql-uroot-p$dbPassworde"usecloud_usage;selectaccount.account_nameas賬號名稱',usage_event.resource_nameas虛擬機(jī)名稱',usage_event.typeas'操作類型',usage_event.createdas'操作執(zhí)行時間'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'賬號名稱,虛擬機(jī)名稱,虛擬 類型,cpu數(shù)量,cpu速度(MHz),內(nèi)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),創(chuàng)建時間,刪除時間,使用時間(小時)'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模板名稱,賬號,開始使用時間,結(jié)束使用時間,模板大小(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名稱,賬號,開始使用時間,結(jié)束使用時間,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格式的報表文件,文件名會有當(dāng)天日期來區(qū)分。到本地用excel打開即可查看。Mysql配置mysql備份的工mkdirmkdir-p配置mysql在db1服務(wù)器上相 配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備份加入到計(jì)劃任務(wù)中執(zhí)行。每天會進(jìn)行cloud庫和cloud_usage庫的備份。備份文件到/use/mysql/backup_file/ 以每天的日期和庫名進(jìn)行區(qū)分。/use/mysql/backup_file/backup.log為備序計(jì)劃任備1 *23***/usr/sbin/ntpdate–u管理服務(wù)器2 *23***/usr/sbin/ntpdate-u管理服務(wù)器33023****23***/usr/sbin/ntpdate-u數(shù)據(jù)庫服務(wù)器4*23***/usr/sbin/ntpdate-u數(shù)據(jù)庫服務(wù)器5*23***/usr/sbin/ntpdate-u安裝xentools序備1 管理服務(wù)器2 管理服務(wù)器3數(shù)據(jù)庫服務(wù)器4數(shù)據(jù)庫服務(wù)器5在xenserver界面上選中虛擬機(jī),選擇安裝xentoolsmountmount/dev/cdrom安裝xen-toolscdcd安裝xen-tools第4章安裝虛擬化環(huán)并在每臺主機(jī)開啟多路徑,提供出sr后,再在cloudstack層作。在網(wǎng)卡綁定,在cloudstack中添加主機(jī)時會自動添加。從XenServer6.0.2OK選擇AcceptEULAOKNO選擇skipverification輸入根據(jù)不同的主機(jī)輸入相應(yīng)的IP輸入相應(yīng)的主機(jī)名和DNS選擇Asia單擊installXenServer手動設(shè)置時間,OKXenServerSupportPackageCSP)。 執(zhí)行安裝修改/boot/extlinux.conf文件中l(wèi)abelxe段中dom0_mem記錄/etc/xensource-inventory文件中CONTROL__UUID變量的值,作為之后兩條命令uuid字段的值。 echovm-license在xenserver界面工具項(xiàng)中選擇tools下的licensemanagerassignlicense在licenseedition項(xiàng)中選擇CitrixXenServerforxenDesktop。并填入licenseserver的ip地址。在xenserver界面工具項(xiàng)中選擇tools下的InstallsoftwareUpdate在selectupdate選中要更新的部分,點(diǎn)擊next在selectserver選中要更新的主機(jī),點(diǎn)擊next在updatemode選擇iprefertocarryoutpost-updatetasksmanually擊installupdate。ntp在host/usr/sbin/ntpdate/usr/sbin/ntpdate-u選中主機(jī),右鍵并選擇entermaintenancemode已經(jīng)進(jìn)入模式的主機(jī),并選擇屬性選中Multipathing項(xiàng)并勾選Enablemultipathingonthisserver重啟host在xenserver界面的networking選項(xiàng)中點(diǎn)擊AddNetwork選擇BondedNetwork23Finish在xenserver界面的Networking選項(xiàng)中選中bond2+3Properties。修改Name字段為vSwitch第5章配 lun分配方案類連接方容用備一給value用戶的cluster一primium用戶的cluster,低速磁一給value用戶的cluster一primium用戶的cluster,高速磁二作為二級給zone使 分配注意事由于的分配cloudstack有85%的使用限制而使用Thinprovision分15%的空間分配值。主:主通過ISCSI方式連接到Hypervisor主機(jī)分配給Value主機(jī)Premium用戶的主依據(jù)客戶實(shí)際需求分配新建LUN進(jìn)入EMC管理界面中storage->LUNs選項(xiàng)卡,點(diǎn)擊CreateCreaUN界面StoragePoolType:選擇RAIDType:選擇RAID5:DistributedParity(HighStoragePoolfornewLUN:選擇要把LUN加入到的storagepoolUserCapacity:需要劃分的容量LUNID:選擇可用的LUNIDNumberofLUNstocreate:1LUNname:AutomaticallyassignLUNIDsasLUNNames為storagegroup添加host進(jìn)入EMC管理界面中storagegroup界面選中要操作的storagegroup。屬性。在彈出的Hosts選項(xiàng)卡中為這個storagegroup添加hosts。添加LUN到指定的storagegroup進(jìn)入EMC管理界面中storagegroup界面選中要操作的storagegroup。屬性。在彈出的LUNs選項(xiàng)卡中為這個storagegroup添加建立好的LUNs在xenserver上添加SR在xenserver界面中的主機(jī)上操作。右鍵選擇NewSR。Type選擇SoftwareISCSI并點(diǎn)擊next。Host填寫主機(jī)地址。點(diǎn)擊DiscoverIQNs并選擇IQN。之后點(diǎn)擊Discover LUNs并選擇之前添加的LUN點(diǎn)擊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上傳包將安裝包上傳到管理服務(wù)器/usr/local/src拷貝源代碼安裝包-deploy1 拷貝源代碼安裝包-deploy2 從管理服務(wù)器ssh到mastersftp將-deploy下的拷貝到master數(shù)據(jù)庫的/usr/local/src/- 下安裝包執(zhí)行sql.sh修改數(shù)據(jù)庫。在management1登錄master和slaveaccount表和host表是否修改成功。mysqlmysql-uroot-mysql>useaccountusertypemysql>mysql>desc| |int(1)| ||查看hostaccountidmysql>mysql>desc||bigint(20)unsigned| ||1上執(zhí)行cloudstack-dev-install-2上執(zhí)行cloudstack-dev-install-12使用瀏覽器登錄https驗(yàn)證是否正第7配置CloudstackzoneZone二一6臺value主從剩余12臺主機(jī)premium主機(jī)Physicalnetwork網(wǎng)絡(luò)類PhysicalNetwork無ManagementPhysicalNetwork無PublicGuestStorageTraffic與VLANStartEndIP掩使用不連續(xù)publicip地用于Internet連接Juniper用于BusinessShared網(wǎng)用于Shared網(wǎng)GuestVLAN用網(wǎng)絡(luò)名IP掩網(wǎng)類名類路徑(SRName-容/////按/按在二級上準(zhǔn)備系統(tǒng)虛擬機(jī)模將系統(tǒng)虛擬機(jī)模板放到apache的頁面 下,用scp或winscp等方式把系 在management-server上掛載二級到本mkdirmkdir-p/tempuse/- xenserverxenserver-卸載 umountumount選擇zoneaddzone按鈕后,選擇advanced設(shè)置zoneName:zone的名稱,這里填寫kshzoneDNS1:dns1的IP32DNS2:dns2的IPInternalDNS1:所使用dns服務(wù)器1的IP,這里填寫3Hypervisor:選擇GIDR:填寫紅色標(biāo)記:storage藍(lán)色標(biāo)記:system綠色標(biāo)記:guest黃色標(biāo)記:publictrafficelabel。Storageguestpublic2上,標(biāo)記填寫vSwitch1。設(shè)置publicendIP:0設(shè)置podPodname:zone時,要生成一個pod。這里填寫kshpod01StartsystemIP:系統(tǒng)網(wǎng)絡(luò)的開始IP。這里填寫61EndsystemIP:系統(tǒng)網(wǎng)絡(luò)的結(jié)束IP。這里填寫90設(shè)置guestVLANRange:Guest網(wǎng)絡(luò)VLAN200-399設(shè)置storageVLAN:網(wǎng)絡(luò)的VLAN號。這里填寫97StartIP:網(wǎng)絡(luò)的起始IP。這里填寫01EndIP:網(wǎng)絡(luò)的結(jié)束IP。這里填寫30設(shè)置clusterHypervisor:自動顯示出XenServer設(shè)置hostHostName:host主機(jī)的ip1Password:填寫host主機(jī)root的設(shè)置一級信息Name:這個主的名稱。這里填寫value01-primary01Protocol:主使用的協(xié)議。這里選擇PreSetupSRName-Label:primary01設(shè)置二級信息NFSServer:二級提供nfs服務(wù)的IP地址。這里填寫0點(diǎn)擊生成zone進(jìn)入添加clusterInfrastructure->ClustersAddCluster添加clusterZone:選擇kshzoneHypervisor:選擇XenServerPod:選擇podClusterNameclusternameprimary進(jìn)入添加primarystorageInfrastructure->Zones->kshzone->PrimaryStorage界面中,點(diǎn)擊AddPrimaryStorage。添加primarystor
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年航天器熱控系統(tǒng)組件及零部件項(xiàng)目建設(shè)總綱及方案
- 2025年冷藏設(shè)備器具項(xiàng)目構(gòu)思建設(shè)方案
- 青海警官職業(yè)學(xué)院《漢語史》2023-2024學(xué)年第二學(xué)期期末試卷
- 常規(guī)量具使用規(guī)范
- 幼兒園班級生活常規(guī)管理
- 機(jī)器人制造多型號混線編程法
- 快速血糖監(jiān)測操作
- 護(hù)士長年度工作總結(jié)
- 鄉(xiāng)鎮(zhèn)土地流轉(zhuǎn)合同標(biāo)準(zhǔn)文本
- 光伏屋頂合同范例
- 注射相關(guān)感染預(yù)防與控制(全文)
- 院感基礎(chǔ)知識培訓(xùn)最新版本課件
- 船的發(fā)展史知識分享課件
- 智慧景區(qū)智能化系統(tǒng)總體施工組織設(shè)計(jì)方案
- 合并財務(wù)報表培訓(xùn)資料課件
- 2022年新疆師范大學(xué)輔導(dǎo)員招聘考試筆試試題及答案解析
- DB32-T 4357-2022 建筑工程施工機(jī)械安裝質(zhì)量檢驗(yàn)規(guī)程
- 流行性腮腺炎及其護(hù)理
- 廣電運(yùn)通研究報告:數(shù)字人民幣促產(chǎn)業(yè)升級-AI+城市助業(yè)務(wù)轉(zhuǎn)型
- 北師大版生物七年級下冊 第10章 第2節(jié) 《人體細(xì)胞獲得氧氣的過程》學(xué)案 (表格式無答案)
- 港澳臺聯(lián)考考試大綱
評論
0/150
提交評論