2022年虚拟化施工手记 .pdf
虚拟化施工手记1 2013-01-15 by 梁荐 |基础运维工程师2 3 1.vSphere4.1硬件及软件施工前准备4 设备清单:5 Cisco 2960S 24TS-L(STACK) * 2 6 Dell PowerConnect 8132F(QSFP+40 GbE模块,2 个端口 ,热插拔 ,用于 40 GbE 上行链路 ,堆栈,QSFP+ 到 QSFP+ 7 1 米 40GbE TwinAx 线缆) * 28 (此交换机实际为 OEM BROCADE 产品)交换机具体信息可以参考dell 官方资料9 http:/ Dell R620 (2*E5-2650,128GB,2*2GB SD,冗余电源 ,IDRAC7 带 vFlash,Broadcom 5720 QP 1Gb板载 4 口网卡11 +Broadcom 57810 DP 10GB DA/SFP+半高聚合网络适配器 ) * 5 12 Dell EqualLogic PS6110XV 10GbE iSCSI阵列 (24*300GB 15K 2.5寸 SAS) 13 存储具体信息可以参考dell 官方资料 http:/ Dell Twin AX SFP+ 线缆(10Gb 3M) * 12 15 AMP CAT6 2M 成品跳线* 30 16 软件清单:17 DELL 定制版 ESX4I 18 Dell VMware ESXi 4.1 Update 2 Installable Edition 19 Download_url:ftp:/ 767.x86_64-DellCustomized_A02.iso21 EqualLogic firmware: 22 kit_V6.0.2-R287892_4231725116.tgz 23 Download_url(需要注册 ): EqualLogic-ESX-Multipathing-Module:25 dell-eql-mem-esx4-1.1.1.270268.zip 26 Download_url(需要注册 ): 27 Dell EqualLogic SAN Headquarters:28 SANHQSetup32And64.exe (Server/Client Version:2.5.0.6470) 环境需求 Microsoft .NET Framework 429 Download_url(需要注册 ): 30 31 32 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 36 页 - - - - - - - - - 2.施工机架物理图33 34 35 36 37 38 39 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 36 页 - - - - - - - - - 3.生产网交换机配置40 Cisco2960 (channel-group 1:g1/0/21-22,g2/0/21-22; channel-group 2:g1/0/23-24,g2/0/23-24)上联Cisco 41 4506E *2(VRRP) 带宽 4Gbps 42 4506E 上划了 16 个 VLAN 43 172.16.16.0/24(VLAN ID 16) 172.16.32.0/24(VLAN ID 32) 44 如下配置仅供参考45 H11-C2960-STACK#show run 46 47 Building configuration. 48 49 Current configuration : 6079 bytes 50 ! 51 version 12.2 52 no service pad 53 service timestamps debug datetime msec 54 service timestamps log datetime msec 55 no service password-encryption 56 ! 57 hostname H11-C2960-STACK 58 ! 59 boot-start-marker 60 boot-end-marker 61 ! 62 enable password *63 ! 64 ! 65 ! 66 no aaa new-model 67 switch 1 provision ws-c2960s-24ts-l 68 switch 2 provision ws-c2960s-24ts-l 69 ! 70 ! 71 ! 72 ! 73 ! 74 spanning-tree mode pvst 75 spanning-tree extend system-id 76 ! 77 ! 78 ! 79 ! 80 vlan internal allocation policy ascending 81 ! 82 ! 83 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 36 页 - - - - - - - - - ! 84 interface Port-channel1 85 switchport mode trunk 86 ! 87 interface Port-channel2 88 switchport mode trunk 89 ! 90 interface FastEthernet0 91 no ip address 92 shutdown 93 ! 94 interface GigabitEthernet1/0/1 95 switchport access vlan 18 96 switchport mode trunk 97 spanning-tree portfast 98 ! 99 interface GigabitEthernet1/0/2 100 switchport access vlan 18 101 switchport mode trunk 102 spanning-tree portfast 103 ! 104 interface GigabitEthernet1/0/3 105 switchport access vlan 18 106 switchport mode trunk 107 spanning-tree portfast 108 ! 109 interface GigabitEthernet1/0/4 110 switchport access vlan 18 111 switchport mode trunk 112 spanning-tree portfast 113 ! 114 interface GigabitEthernet1/0/5 115 switchport access vlan 18 116 switchport mode trunk 117 spanning-tree portfast 118 ! 119 interface GigabitEthernet1/0/6 120 switchport access vlan 18 121 switchport mode trunk 122 spanning-tree portfast 123 ! 124 interface GigabitEthernet1/0/7 125 switchport access vlan 18 126 switchport mode trunk 127 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 36 页 - - - - - - - - - spanning-tree portfast 128 ! 129 interface GigabitEthernet1/0/8 130 switchport access vlan 18 131 switchport mode trunk 132 spanning-tree portfast 133 ! 134 interface GigabitEthernet1/0/9 135 switchport access vlan 18 136 switchport mode trunk 137 spanning-tree portfast 138 ! 139 interface GigabitEthernet1/0/10 140 switchport access vlan 18 141 switchport mode trunk 142 spanning-tree portfast 143 ! 144 interface GigabitEthernet1/0/11 145 switchport access vlan 18 146 switchport mode trunk 147 spanning-tree portfast 148 ! 149 interface GigabitEthernet1/0/12 150 switchport access vlan 18 151 switchport mode trunk 152 spanning-tree portfast 153 ! 154 interface GigabitEthernet1/0/13 155 switchport access vlan 18 156 switchport mode trunk 157 spanning-tree portfast 158 ! 159 interface GigabitEthernet1/0/14 160 switchport access vlan 18 161 switchport mode trunk 162 spanning-tree portfast 163 ! 164 interface GigabitEthernet1/0/15 165 switchport access vlan 18 166 switchport mode trunk 167 spanning-tree portfast 168 ! 169 interface GigabitEthernet1/0/16 170 switchport access vlan 18 171 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 36 页 - - - - - - - - - switchport mode trunk 172 spanning-tree portfast 173 ! 174 interface GigabitEthernet1/0/17 175 switchport access vlan 18 176 switchport mode trunk 177 spanning-tree portfast 178 ! 179 interface GigabitEthernet1/0/18 180 switchport access vlan 18 181 switchport mode trunk 182 spanning-tree portfast 183 ! 184 interface GigabitEthernet1/0/19 185 switchport access vlan 18 186 switchport mode trunk 187 spanning-tree portfast 188 ! 189 interface GigabitEthernet1/0/20 190 switchport access vlan 18 191 switchport mode trunk 192 spanning-tree portfast 193 ! 194 interface GigabitEthernet1/0/21 195 switchport mode trunk 196 channel-group 1 mode on 197 ! 198 interface GigabitEthernet1/0/22 199 switchport mode trunk 200 channel-group 1 mode on 201 ! 202 interface GigabitEthernet1/0/23 203 switchport mode trunk 204 channel-group 2 mode on 205 ! 206 interface GigabitEthernet1/0/24 207 switchport mode trunk 208 channel-group 2 mode on 209 ! 210 interface GigabitEthernet1/0/25 211 ! 212 interface GigabitEthernet1/0/26 213 ! 214 interface GigabitEthernet1/0/27 215 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 36 页 - - - - - - - - - ! 216 interface GigabitEthernet1/0/28 217 ! 218 interface GigabitEthernet2/0/1 219 switchport access vlan 18 220 switchport mode trunk 221 spanning-tree portfast 222 ! 223 interface GigabitEthernet2/0/2 224 switchport access vlan 18 225 switchport mode trunk 226 spanning-tree portfast 227 ! 228 interface GigabitEthernet2/0/3 229 switchport access vlan 18 230 switchport mode trunk 231 spanning-tree portfast 232 ! 233 interface GigabitEthernet2/0/4 234 switchport access vlan 18 235 switchport mode trunk 236 spanning-tree portfast 237 ! 238 interface GigabitEthernet2/0/5 239 switchport access vlan 18 240 switchport mode trunk 241 spanning-tree portfast 242 ! 243 interface GigabitEthernet2/0/6 244 switchport access vlan 18 245 switchport mode trunk 246 spanning-tree portfast 247 ! 248 interface GigabitEthernet2/0/7 249 switchport access vlan 18 250 switchport mode trunk 251 spanning-tree portfast 252 ! 253 interface GigabitEthernet2/0/8 254 switchport access vlan 18 255 switchport mode trunk 256 spanning-tree portfast 257 ! 258 interface GigabitEthernet2/0/9 259 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 7 页,共 36 页 - - - - - - - - - switchport access vlan 18 260 switchport mode trunk 261 spanning-tree portfast 262 ! 263 interface GigabitEthernet2/0/10 264 switchport access vlan 18 265 switchport mode trunk 266 spanning-tree portfast 267 ! 268 interface GigabitEthernet2/0/11 269 switchport access vlan 18 270 switchport mode trunk 271 spanning-tree portfast 272 ! 273 interface GigabitEthernet2/0/12 274 switchport access vlan 18 275 switchport mode trunk 276 spanning-tree portfast 277 ! 278 interface GigabitEthernet2/0/13 279 switchport access vlan 18 280 switchport mode trunk 281 spanning-tree portfast 282 ! 283 interface GigabitEthernet2/0/14 284 switchport access vlan 18 285 switchport mode trunk 286 spanning-tree portfast 287 ! 288 interface GigabitEthernet2/0/15 289 switchport access vlan 18 290 switchport mode trunk 291 spanning-tree portfast 292 ! 293 interface GigabitEthernet2/0/16 294 switchport access vlan 18 295 switchport mode trunk 296 spanning-tree portfast 297 ! 298 interface GigabitEthernet2/0/17 299 switchport access vlan 18 300 switchport mode trunk 301 spanning-tree portfast 302 ! 303 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 8 页,共 36 页 - - - - - - - - - interface GigabitEthernet2/0/18 304 switchport access vlan 18 305 switchport mode trunk 306 spanning-tree portfast 307 ! 308 interface GigabitEthernet2/0/19 309 switchport access vlan 18 310 switchport mode trunk 311 spanning-tree portfast 312 ! 313 interface GigabitEthernet2/0/20 314 switchport access vlan 18 315 switchport mode trunk 316 spanning-tree portfast 317 ! 318 interface GigabitEthernet2/0/21 319 switchport mode trunk 320 channel-group 1 mode on 321 ! 322 interface GigabitEthernet2/0/22 323 switchport mode trunk 324 channel-group 1 mode on 325 ! 326 interface GigabitEthernet2/0/23 327 switchport mode trunk 328 channel-group 2 mode on 329 ! 330 interface GigabitEthernet2/0/24 331 switchport mode trunk 332 channel-group 2 mode on 333 ! 334 interface GigabitEthernet2/0/25 335 ! 336 interface GigabitEthernet2/0/26 337 ! 338 interface GigabitEthernet2/0/27 339 ! 340 interface GigabitEthernet2/0/28 341 ! 342 interface Vlan1 343 ip address 172.16.15.235 255.255.255.0 344 ! 345 ip default-gateway 172.16.15.1 346 ip http server 347 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 9 页,共 36 页 - - - - - - - - - ip http secure-server 348 snmp-server community public RO 349 ! 350 line con 0 351 line vty 0 4 352 exec-timeout 0 0 353 password *354 login 355 line vty 5 15 356 login 357 ! 358 end 359 360 361 362 363 4.存储网络设备配置364 Dell PowerConnect 8132F (STACK) * 2 (OEM BROCADE) 365 设备照片 : 366 367 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 10 页,共 36 页 - - - - - - - - - 368 369 注:正面右侧安装了STACKING-MODULE(40Gb*2) 370 371 372 consoleenable373 374 console# configure 375 STACK 配置,配置完后 reload重启,2 台设备都需要执行,重启后就进入STACK 状态,后 stack 指示灯蓝色为主设376 备 377 console (config)#stack378 console (config-stack)#stack-port fortygigabitethernet 1/1/1 stack 379 console (config-stack)#stack-port fortygigabitethernet 1/1/2 stack380 console (config-stack)#exit 381 console (config)#exit 382 console # write383 This operation may take a few minutes. 384 Management interfaces will not be available during this time. 385 Are you sure you want to save? (y/n) y386 Configuration Saved! 387 console # reload 388 设置主机名称 389 console (config)#hostname H11-PC8132F-STACK390 设置 enable密码 391 H11-PC8132F-STACK (config)#enable password 12345678 392 配置生成树协议 393 H11-PC8132F-STACK (config)#spanning-tree mode rstp394 启用流控 395 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 11 页,共 36 页 - - - - - - - - - H11-PC8132F-STACK (config)#flowcontrol396 This operation may take a few minutes. 397 Management interfaces will not be available during this time. 398 Are you sure you want to continue? (y/n) y 399 H11-PC8132F-STACK(config)#interface range tengigabitethernet all 400 H11-PC8132F-STACK(config-if)#spanning-tree portfast 401 H11-PC8132F-STACK(config-if)#mtu 9216 402 H11-PC8132F-STACK (config-if)#exit 403 创建 http管理账号及密码 404 H11-PC8132F-STACK (config)#username admin password 12345678 level 15405 H11-PC8132F-STACK (config)#exit 406 配置 OOB 带外管理 407 H11-PC8132F-STACK(config)#interface out-of-band 408 H11-PC8132F-STACK(config-if)#ip address 172.17.15.220 255.255.254.0 172.17.15.1 409 H11-PC8132F-STACK(config-if)#exit 410 保存配置 411 PC6224-STACK# copy running-config startup-config 412 This operation may take a few minutes. 413 Management interfaces will not be available during this time. 414 Are you sure you want to save? (y/n) y415 Configuration Saved! 416 重新载入配置 / 重启 417 PC6224-STACK# reload 418 Are you sure you want to reload the stack? (y/n) y419 Reloading all switches. 420 421 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 12 页,共 36 页 - - - - - - - - - 5.IP-SAN 存储配置422 设备型号Dell Equallogic PS6110XV(2U 24xSAS300GB)423 424 425 426 IP 地址规划427 PS6110 有 1 个 10GbE iSCSI接口;1 个带外管理 mgmt,mgmt 管理 ip 可以是其它网段 ip,公司实践中存储网和管理网428 是隔离的429 GIP:172.17.8.102/24 430 Eth0(10GbE):172.17.8.103/24 431 Eth1(mgmt 1GbE):172.16.15.102/24 432 Group-mgmt: 172.16.15.103/24 433 434 进入 console模式435 以下配置为新设备首次通电后的初始化过程,如在老设备上使用可以执行reset( 清空设备 ) 后使用 setup 436 437 PS Series Storage Arrays 438 Unauthorized Access Prohibited 439 440 login: grpadmin 441 密码输入 grpadmin 442 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 13 页,共 36 页 - - - - - - - - - Password: 443 444 445 Welcome to Group Manager 446 447 Copyright 2001-2012 Dell Inc. 448 449 450 451 372:5:netmgtd:14-Jan-2013 05:19:55.440006:rcc_util.c:1029:INFO:25.2.9:CLI: Login to account grpadmin 452 succeeded, using local authentication. User privilege is group-admin. 453 It appears that the storage array has not been configured. 454 Would you like to configure the array now ? (y/n) ny455 456 457 Group Manager Setup Utility 458 459 460 The setup utility establishes the initial network and storage configuration for a storage array and then 461 configures the array as a member of a new or existing group of arrays. 462 463 For help, enter a question mark (?) at a prompt. 464 465 466 Do you want to proceed (yes | no ) no: yes467 Enter the network configuration for the array. 468 469 Member name : H11-PS6110XV-WH-5470 Network interface eth0: 471 IP address for network interface : 172.16.8.103472 Netmask 255.255.255.0: 473 Default gateway 172.16.8.1: 474 475 Initializing interface eth0. This may take a minute. 476 477 Enter the IP address and name of the group that the array will join. 478 Group name : GRP-5479 Group IP address : 172.16.8.102480 481 Searching to see if the group exists. This may take a few minutes. 482 483 484 485 The group does not exist or currently cannot be reached. Make sure 486 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 14 页,共 36 页 - - - - - - - - - you have entered the correct group IP address and group name. 487 488 Do you want to create a new group (yes | no) yes: yes489 Group Configuration 490 491 Group Name: GRP-5 492 Group IP address: 172.16.8.102 493 494 Do you want to use the group settings shown above (yes | no) yes: 495 设置管理组成员密码 496 Password for managing group membership: 497 * Do not enter a password that uses only lower-case characters. Please try again 498 Password for managing group membership: 499 Retype password for verification: 500 设置默认组管理账户grpadmin密码501 Password for the default group administration(grpadmin) account: 502 * Please dont use an all-lower case passwords. Please try again. 503 Password for the default group administration(grpadmin) account: 504 Retype password for verification: 505 506 Saving the configuration. 507 508 Waiting for configuration to become active.Done 509 791:17:psgd:14-Jan-2013 05:28:20.390018:psgd_group.cc:17372:INFO:18.2.0:Group member 510 H11-PS6110XV-WH-5 now active in the group. 511 512 Group GRP-5 has been created with one member. 513 Use the Group Manager GUI or CLI to set the RAID policy for the member. You can then create a volume