最近公司升级ESXI到5.5 版本,这个过程大家遇见了各种问题,最后同事写了个在DELL服务器上的升级(重装)流程,豆子觉得很不错,拿出来分享一下。
基本流程:
重新调整网卡顺序,因为网卡的位置顺序在旧版的R710,R720和新版的R720s服务器上是不同的。如果直接升级5.1到5.5,还是使用旧的排序方式,如果重新安装ESXI 5.5,则会使用新的编排顺序。
安装服务器,连接网线
配置iDRAC
配置IDRAC的DNS和主机的DNS
初始化IDRAC,设置时间,域名,DNS等等
升级固件,根据DELL的建议是,重启服务器,从life controller启动之后,使用SUU光盘升级除了网卡之外的所有固件,然后从Dell的CentOS 光盘启动,手动安装网卡的驱动程序(BIN格式),这样可以最大的避免各种意外
安装或者升级 ESXI5.5,最好先去掉FC的连线,避免误安装到SAN上。从ISO启动之后,指定安装路径(本地磁盘或者SD卡上),一路安装下去即可。
初始配置。安装完毕之后,按F2登录,配置Managment 网络的网卡,VLAN,IP地址,网关, 打 ESXI Shell和SSH
ALT-F1切换到Shell, 配置
esxcli network vswitch standard policy failover set -a vmnic0,vmnic1,vmnic4,vmnic5 -l iphash -v vSwitch0
esxcli network vswitch standard portgroup policy failover set -p
"Management Network"
-u
然后测试 vmkping 10.0.0.1 (网关地址)
10. 接下来,进行防火墙,PortGroup相关配置
# Configure ESX Management Network # Assing PortGroup to VLAN esxcli network vswitch standard portgroup set -p="Management Network" -v=3064 esxcli network vswitch standard uplink remove -u=vmnic5 -v=vSwitch0 esxcli network vswitch standard uplink add -u=vmnic5 -v=vSwitch0 esxcli network vswitch standard uplink remove -u=vmnic4 -v=vSwitch0 esxcli network vswitch standard uplink add -u=vmnic4 -v=vSwitch0 esxcli network vswitch standard uplink remove -u=vmnic1 -v=vSwitch0 esxcli network vswitch standard uplink add -u=vmnic1 -v=vSwitch0 esxcli network ip interface ipv4 set -i=vmk0 -I=10.71.64.107 -N=255.255.255.0 -t=static esxcli network vswitch standard policy failover set -a=vmnic0,vmnic1,vmnic4,vmnic5 -l=iphash -v=vSwitch0 # If needed inherit policy from vSwitch to Portgroup esxcli network vswitch standard portgroup policy failover set -p="Management Network" -u # Change Default gateway esxcfg-route 10.71.64.1 # Remove Portgroup on Management switch esxcli network vswitch standard portgroup remove -p="VM Network" -v=vSwitch0 esxcli network vswitch standard uplink remove -u=vmnic0 -v=vSwitch0 esxcli network vswitch standard uplink add -u=vmnic0 -v=vSwitch0 =========================================================================================== # Configure ESX Data Network esxcli network vswitch standard add -v=vSwitch1 esxcli network vswitch standard uplink add -u=vmnic7 -v=vSwitch1 esxcli network vswitch standard uplink add -u=vmnic6 -v=vSwitch1 esxcli network vswitch standard uplink add -u=vmnic3 -v=vSwitch1 esxcli network vswitch standard uplink add -u=vmnic2 -v=vSwitch1 esxcli network vswitch standard portgroup add -p="C1_VLAN10" -v=vSwitch1 esxcli network vswitch standard portgroup set -p="C1_VLAN10" -v=10 esxcli network vswitch standard portgroup add -p="DMZ" -v=vSwitch1 esxcli network vswitch standard portgroup set -p="DMZ" -v=3127 esxcli network vswitch standard policy failover set -a=vmnic2,vmnic3,vmnic6,vmnic7 -l=iphash -v=vSwitch1 ============================================================================================= # Set DNS and hostname esxcli system hostname set --host aunswesx07 esxcli network ip dns search add --domain=test.com.au esxcli network ip dns server add --server=10.70.0.19 esxcli network ip dns server add --server=10.70.0.12 # Suppress warnings about SSH and SSL esxcli system settings advanced set -o="/UserVars/SuppressShellWarning" -i=1 ================================================================================================ # Syslogs ================================================================================================ esxcli system syslog config set --loghost 'udp://auttnm01.test.com.au:514' esxcli network firewall ruleset set --ruleset-id syslog --enabled true esxcli network firewall refresh ================================================================================================ # SNMP to OME Server ================================================================================================ esxcli system snmp set --communities=EsxSNMP --enable=yes --targets=10.71.32.203/EsxSNMP ================================================================================================ # NTP ================================================================================================ esxcli network firewall ruleset set --ruleset-id ntpClient --enabled true echo restrict 127.0.0.1 > /etc/ntp.conf echo restrict default kod nomodify notrap noquerynopeer >> /etc/ntp.conf echo server 10.71.64.125 >> /etc/ntp.conf echo server 10.71.3.125 >> /etc/ntp.conf echo driftfile /etc/ntp.drift >> /etc/ntp.conf /sbin/chkconfig ntpd on ================================================================================================= esxcli network vswitch standard add -v vSwitchISCSI esxcli network vswitch standard set -m 9000 -v vSwitchISCSI esxcli network vswitch standard uplink add -u vmnic11 -v vSwitchISCSI esxcli network vswitch standard uplink add -u vmnic9 -v vSwitchISCSI # Adding iSCSI interface esxcli network vswitch standard portgroup add -p iSCSI0 -v vSwitchISCSI esxcli network vswitch standard portgroup set -p iSCSI0 -v 10 esxcli network ip interface add -p iSCSI0 -i vmk1 esxcli network ip interface set -m 9000 -i vmk1 esxcli network ip interface ipv4 set -i=vmk1 -I=192.168.0.22 -N=255.255.255.0 -t=static esxcli network vswitch standard portgroup add -p iSCSI1 -v vSwitchISCSI esxcli network vswitch standard portgroup set -p iSCSI1 -v 10 esxcli network ip interface add -p iSCSI1 -i vmk2 esxcli network ip interface set -m 9000 -i vmk2 esxcli network ip interface ipv4 set -i=vmk2 -I=192.168.0.23 -N=255.255.255.0 -t=static # Adding iSCSI VM Port Group esxcli network vswitch standard portgroup add -p="iSCSI_Passthrough" -v=vSwitchISCSI esxcli network vswitch standard portgroup set -p="iSCSI_Passthrough" -v=4095 # Adding vMotion interface esxcli network vswitch standard portgroup add -p vMotion -v vSwitchISCSI esxcli network vswitch standard portgroup set -p vMotion -v 4050 esxcli network ip interface add -p vMotion -i vmk3 esxcli network ip interface set -m 9000 -i vmk3 esxcli network ip interface ipv4 set -i=vmk3 -I=172.0.0.105 -N=255.255.255.0 -t=static esxcli network vswitch standard policy failover set -a=vmnic9,vmnic11 -v=vSwitchISCSI # enable vMotion on an interface vim-cmd hostsvc/vmotion/vnic_set vmk3
11. 配置SAN
配置Brocades
配置Compellent
重启或者rescan ESXI
12.通过vCenter连入ESXI,通过update Manager PlugIn 连接Baselines,然后升级
13. 重复以上操作,对所有的主机完成安装升级之后,打开HA和DRS等功能