天天看点

在DELL服务器上升级ESXI 5.5

最近公司升级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, 配置

<code>esxcli network vswitch standard policy failover set -a vmnic0,vmnic1,vmnic4,vmnic5 -l iphash -v vSwitch0</code>

<code>esxcli network vswitch standard portgroup policy failover set -p </code><code>"Management Network"</code> <code>-u</code>

然后测试 vmkping 10.0.0.1  (网关地址)

 10. 接下来,进行防火墙,PortGroup相关配置 

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

<code># Configure ESX Management Network</code>

<code># Assing PortGroup to VLAN</code>

<code>esxcli network vswitch standard portgroup set -p=</code><code>"Management Network"</code> <code>-v=3064</code>

<code>esxcli network vswitch standard uplink remove -u=vmnic5 -v=vSwitch0</code>

<code>esxcli network vswitch standard uplink add -u=vmnic5 -v=vSwitch0</code>

<code>esxcli network vswitch standard uplink remove -u=vmnic4 -v=vSwitch0</code>

<code>esxcli network vswitch standard uplink add -u=vmnic4 -v=vSwitch0</code>

<code>esxcli network vswitch standard uplink remove -u=vmnic1 -v=vSwitch0</code>

<code>esxcli network vswitch standard uplink add -u=vmnic1 -v=vSwitch0</code>

<code>esxcli network ip interface ipv4 set -i=vmk0 -I=10.71.64.107 -N=255.255.255.0 -t=static</code>

<code>esxcli network vswitch standard policy failover set -a=vmnic0,vmnic1,vmnic4,vmnic5 -l=iphash -v=vSwitch0</code>

<code># If needed inherit policy from vSwitch to Portgroup</code>

<code>esxcli network vswitch standard portgroup policy failover set -p=</code><code>"Management Network"</code> <code>-u </code>

<code># Change Default gateway</code>

<code>esxcfg-route 10.71.64.1</code>

<code># Remove Portgroup on Management switch</code>

<code>esxcli network vswitch standard portgroup remove -p=</code><code>"VM Network"</code> <code>-v=vSwitch0</code>

<code>esxcli network vswitch standard uplink remove -u=vmnic0 -v=vSwitch0</code>

<code>esxcli network vswitch standard uplink add -u=vmnic0 -v=vSwitch0</code>

<code>===========================================================================================</code>

<code># Configure ESX Data Network</code>

<code>esxcli network vswitch standard add -v=vSwitch1</code>

<code>esxcli network vswitch standard uplink add -u=vmnic7 -v=vSwitch1</code>

<code>esxcli network vswitch standard uplink add -u=vmnic6 -v=vSwitch1</code>

<code>esxcli network vswitch standard uplink add -u=vmnic3 -v=vSwitch1</code>

<code>esxcli network vswitch standard uplink add -u=vmnic2 -v=vSwitch1</code>

<code>esxcli network vswitch standard portgroup add -p=</code><code>"C1_VLAN10"</code> <code>-v=vSwitch1</code>

<code>esxcli network vswitch standard portgroup set -p=</code><code>"C1_VLAN10"</code> <code>-v=10</code>

<code>esxcli network vswitch standard portgroup add -p=</code><code>"DMZ"</code> <code>-v=vSwitch1</code>

<code>esxcli network vswitch standard portgroup set -p=</code><code>"DMZ"</code> <code>-v=3127</code>

<code>esxcli network vswitch standard policy failover set -a=vmnic2,vmnic3,vmnic6,vmnic7 -l=iphash -v=vSwitch1</code>

<code>=============================================================================================</code>

<code># Set DNS and hostname</code>

<code>esxcli system hostname set --host aunswesx07</code>

<code>esxcli network ip dns search add --domain=test.com.au</code>

<code>esxcli network ip dns server add --server=10.70.0.19</code>

<code>esxcli network ip dns server add --server=10.70.0.12</code>

<code># Suppress warnings about SSH and SSL</code>

<code>esxcli system settings advanced set -o=</code><code>"/UserVars/SuppressShellWarning"</code> <code>-i=1</code>

<code>================================================================================================</code>

<code># Syslogs</code>

<code>esxcli system syslog config set --loghost </code><code>'udp://auttnm01.test.com.au:514'</code>

<code>esxcli network firewall ruleset set --ruleset-id syslog --enabled true</code>

<code>esxcli network firewall refresh </code>

<code># SNMP to OME Server</code>

<code>esxcli system snmp set --communities=EsxSNMP --enable=yes --targets=10.71.32.203/EsxSNMP</code>

<code># NTP</code>

<code>esxcli network firewall ruleset set --ruleset-id ntpClient --enabled true</code>

<code>echo restrict 127.0.0.1 &gt; /etc/ntp.conf</code>

<code>echo restrict </code><code>default</code> <code>kod nomodify notrap noquerynopeer &gt;&gt; /etc/ntp.conf</code>

<code>echo server 10.71.64.125 &gt;&gt; /etc/ntp.conf</code>

<code>echo server 10.71.3.125 &gt;&gt; /etc/ntp.conf</code>

<code>echo driftfile /etc/ntp.drift &gt;&gt; /etc/ntp.conf</code>

<code>/sbin/chkconfig ntpd on</code>

<code>=================================================================================================</code>

<code>esxcli network vswitch standard add -v vSwitchISCSI</code>

<code>esxcli network vswitch standard set -m 9000 -v vSwitchISCSI</code>

<code>esxcli network vswitch standard uplink add -u vmnic11 -v vSwitchISCSI</code>

<code>esxcli network vswitch standard uplink add -u vmnic9 -v vSwitchISCSI</code>

<code># Adding iSCSI interface</code>

<code>esxcli network vswitch standard portgroup add -p iSCSI0 -v vSwitchISCSI</code>

<code>esxcli network vswitch standard portgroup set -p iSCSI0 -v 10</code>

<code>esxcli network ip interface add -p iSCSI0 -i vmk1</code>

<code>esxcli network ip interface set -m 9000 -i vmk1</code>

<code>esxcli network ip interface ipv4 set -i=vmk1 -I=192.168.0.22 -N=255.255.255.0 -t=static</code>

<code>esxcli network vswitch standard portgroup add -p iSCSI1 -v vSwitchISCSI</code>

<code>esxcli network vswitch standard portgroup set -p iSCSI1 -v 10</code>

<code>esxcli network ip interface add -p iSCSI1 -i vmk2</code>

<code>esxcli network ip interface set -m 9000 -i vmk2</code>

<code>esxcli network ip interface ipv4 set -i=vmk2 -I=192.168.0.23 -N=255.255.255.0 -t=static</code>

<code># Adding iSCSI VM Port Group</code>

<code>esxcli network vswitch standard portgroup add -p=</code><code>"iSCSI_Passthrough"</code> <code>-v=vSwitchISCSI</code>

<code>esxcli network vswitch standard portgroup set -p=</code><code>"iSCSI_Passthrough"</code> <code>-v=4095</code>

<code># Adding vMotion interface</code>

<code>esxcli network vswitch standard portgroup add -p vMotion -v vSwitchISCSI</code>

<code>esxcli network vswitch standard portgroup set -p vMotion -v 4050</code>

<code>esxcli network ip interface add -p vMotion -i vmk3</code>

<code>esxcli network ip interface set -m 9000 -i vmk3</code>

<code>esxcli network ip interface ipv4 set -i=vmk3 -I=172.0.0.105 -N=255.255.255.0 -t=static</code>

<code>esxcli network vswitch standard policy failover set -a=vmnic9,vmnic11 -v=vSwitchISCSI</code>

<code># enable vMotion on an interface</code>

<code>vim-cmd hostsvc/vmotion/vnic_set vmk3</code>

11. 配置SAN

配置Brocades

配置Compellent 

重启或者rescan ESXI

12.通过vCenter连入ESXI,通过update Manager PlugIn 连接Baselines,然后升级

13. 重复以上操作,对所有的主机完成安装升级之后,打开HA和DRS等功能

本文转自 beanxyz 51CTO博客,原文链接:http://blog.51cto.com/beanxyz/1571512,如需转载请自行联系原作者

继续阅读