virtual infrastructure implementation - vmwaredownload3.vmware.com/vmworld/2006/adc0051.pdf ·...

47
Virtual Infrastructure Implementation Best Practices From A to Z Edward Aractingi

Upload: trinhcong

Post on 30-Mar-2018

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Virtual Infrastructure ImplementationBest Practices From A to Z

Edward Aractingi

Page 2: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

About me

Edward AractingiMarshall University Computing Services Systems Administration MS, MCSE, RHCT, Security+, A+http://edward.aractingi.net

Page 3: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Agenda

Marshall University, Data Center & RTIVirtualization Decision & PlanningPlanning Best Practice

Hardware & Network UpgradeStorage and Network Infrastructure

Implementation Best Practice Deployment and Unattended installationVirtual Server High Availability ArchitectureUpgrade to VI 3

Operation Best PracticeSNMP Management and MonitoringBackup Strategies

Page 4: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

About Marshall University

State Funded University Huntington, WV24 associate programs, 44 baccalaureate46 graduate programsEnrolls 16,000 students including 4,000 graduate and medical students

Page 5: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

MU Data Center

Almost 200 ServerDell PowerEdge ServersEMC CLARiiON SAN arraysMicrosoft Windows Server 2003RedHat Enterprise Linux

Page 6: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Rehall Transportation Institute

Staff over 50 professors, graduate students and full time employeesTransportation and Economic development in the Appalachian regionDatabase, GIS and Web AppsTEDIS Servers environment hosted in MU Data Center

Page 7: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Planning Best Practice for Virtual Infrastructure Implementation

Page 8: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

TEDIS before VMware

8 Dell PowerEdge 2650 with 4G RAM2 Dell PowerEdge 1750 with 4G RAM11 TB of Storage on SAN ArraysWindows™, Oracle©,SQL Server, ESRI© GIS applicationsCentralized Administration

Page 9: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Virtualization Decision

The growing need for more serversEnd-of-life / Warranty physical servers Extremely dynamic OS, DB, Web platforms environmentServer consolidation and resource optimization.Faster server provisioning (3-4 weeks 5-10 mins)Target…….. 100% virtualized environmentEffective implementation now is 92%

Page 10: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

VMware Documentation

Use what VMWare providesDocs /Whitepaper User Forums

Page 11: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Planning / Project Management

Page 12: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Change Management

Staging the upgradeTargeting powerful serversApplication and Web serversUsed TEDISLOGGive users access to VMs

Development Virtual Environment

Virtu

al L

ayer

Phy

sica

l Lay

erRTIDBX01

Physical machines with VMWare ESX Hosts each with 12GB of memory

RTIWEBx01 RTIAPP01

Other managementconsoles

RTIWEB02

Virtual Guests

RTIWEB01Web Servers on

Physical machines(Clustered?)

RTIDB01 RTIDB02

RTIAPP02Backup ServerDHCP Server

RTIDC02 RTIDC01Domain Controllers on Physical servers

Oracle RAC Servers

Virtual CenterManagement Console

Page 1

TEDIS Virtualization Plan – Phase 1Tuesday, October 25, 2005

Page 13: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Hardware Expansion

Part of the plan, we needed more hardwareSpend on maxing existing server resources rather than buying newserversBumped the memory to 12 GB on every serverAdded two-port NIC card to every serverTotal is 64 GB of memory and 12 CPUsResult: Able to go from 8 servers to 36 VMs with minimum cost and maximum flexibility

Page 14: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Prepare Configuration Sheets

Network configurations example

DHCP ScopesSAN Storage Groups

Page 15: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Logical Network Architecture

UCSSystems

INTERNET

RTI

TEDISProduction

VLAN3

TEDISManagement

VLAN 2

MU

TEDISVPN

MUVPN

MU PIX

TEDIS PIXVLAN 1

10.5.2.*/24

10.5.1.*/2410.101.16.*RTI Users

Page 16: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Implementation Best Practice for Virtual Infrastructure Implementation

Page 17: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Physical Network Infrastructure

The best security practice is at the network layerConfigure network equipments to block external access to serviceconsole’s network COMPLETELY

External Network & Internet

2650PowerEdge

RTIESX04

2650PowerEdge

RTIESX02

RTIWEB01RTIWEB02

2650PowerEdge

RTIESX06

2650PowerEdge

RTIESX05

2650PowerEdge

RTIESX03

2650PowerEdge

RTIESX01

350PowerEdge

1 2 21 22 23 24 CONSOLE

9600, N, 8, 1

PowerConnect52243

4

5

6

1

2

7

8

11

12

13

14

9

10

15

16

19

20

21

22

17

18

23

24

2

1

4

3

6

5

8

7

10

9

12

11

14

13

16

15

18

17

20

19

22

21

24

23 PWRDIAG

RPSFDX

LNK/ACT

FDXLNK/ACT

1000=GREEN 10/100=ORANGE

1000=GREEN 10/100=ORANGEMODE

STACKSPEEDDUPLXSTATMASTRRPSSYST

Catalyst 3750 SERIES

1 2 3 4 5 6 7 8 9 10 11 12

1X

2X

11X

12X

13 14 15 16 17 18 19 20 21 22 23 24

13X

14X

23X

24X

1 2 3 4

RTICS02

21 22 23 24 CONSOLE

9600, N, 8, 1

PowerConnect52243

4

5

6

1

2

7

8

11

12

13

14

9

10

15

16

19

20

21

22

17

18

23

24

2

1

4

3

6

5

8

7

10

9

12

11

14

13

16

15

18

17

20

19

22

21

24

23 PWRDIAG

RPSFDX

LNK/ACT

FDXLNK/ACT

1000=GREEN 10/100=ORANGE

1000=GREEN 10/100=ORANGEMODE

STACKSPEEDDUPLXSTATMASTRRPSSYST

Catalyst 3750 SERIES

1 2 3 4 5 6 7 8 9 10 11 12

1X

2X

11X

12X

13 14 15 16 17 18 19 20 21 22 23 24

13X

14X

23X

24X

1 2 3 4

RTICS01

Pix Firewall

VM Network Nics

VM Kernel & Console

Nics

Page 18: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Virtual Network Infrastructure

Page 19: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Storage Area Network

EMC CLARiiON CX700 (10 Terabytes)EMC CLARiiON CX200 (1 Terabyte)SAN Management with EMC Navisphere8 servers connected to CX700 with production dataA specific storage group for all ESX Servers LUNsEMC documentation includes extensive support for ESX

Page 20: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Unattended Installation

Scripted InstallationUsing one ESX to host the installation filesNFS ShareDHCP reservationRecommended for:

5 or more serversPlanning to replace hardwareStaff got hit by a bus

Page 21: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Dell OpenManage

Dell Remote Access Card (DRAC)TFTP ServerRemote floppy disk imageNo server room access

Page 22: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

KickStart CD

Looking for faster methods of ESX DeploymentFacilitate replacement of failed or retired hardwareOnce CD to recover and install ESX unattendedIntegrated with PXE *

Page 23: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Kickstart file example

Page 24: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

P2V Utilization

Physical Machine connected directly to LUNs with over a terabyte of data.Use Raw Device Mapping (RDM)Deployed in few hoursSaved many days

SAN

SAN LUN / VMFSVMFS Volume

Physical Machine

Mapping file Address resolution

FC

P2V

ESX Host

Virtual Machine

FC

Page 25: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Upgrade to VI3

Created a new LUN for VMFS v3Migrated all VMs from ESX01 before upgradeUsed two environments for a whileVMotion for minimum VM downtime Migrating other ESX servers Destroy old VMFS 2

SANVMFS 2 VolumeOn SAN LUN

Upgrade to VI3

ESX Host ESX Host ESX Host ESX Host VI3 ESX Host

VMFS 3 Volume

Managed byManaged byManaged byManaged by

Virtual Center 1.5 Virtual Center 2.0Managed by

Page 26: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

VirtualCenter Servers

Distributed, clustered redundant serversTwo Cross-host clustered SQL DB serversTwo Cross-host clustered VC service servers2 SQL Servers2 VCenter servers

OD

BC

OD

BC

Page 27: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Virtual Center Security

Role-basedActive DirectoryAcross domain Extremely flexible

No host SSH accessNo remote rootSubnet restrictionsSSL for http accessC:\Documents and Settings\All Users\Application Data\VMware\VMwareVirtualCenter\SSL\/etc/vmware/ssl

Page 28: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Operation Best Practice for Virtual Infrastructure

Page 29: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Third Party Tools

Dell OpenManage Server AdministratorEMC Navisphere Agent for LinuxCommvault iDataAgent for LinuxChanged fstab, sshd and other linux servicesIPSwitch’s Whatsup Pro for monitoring SNMPCentralized log management: Splunk, Syslog-ng *

Page 30: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Install Dell OpenManage

http://www.dell.com/downloads/global/solutions/Installing_Dell_OpenManage_50_on_ESX_3.pdf ./srvadmin-openipmi.sh install-force dkms install --force -m openipmi -v 35.13.RHEL3

./srvadmin-install.sh

esxcfg-firewall -o 1311,tcp,in,OpenManageRequest

srvadmin-services.sh start

Centralized management with ITA

Page 31: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Dell OM Server Administrator

Installed on the clientProvide Hardware infoUpdate firmware driversSend alerts

Page 32: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Use SNMP for Remote Management

Edit snmpd.conf# vi /etc/snmp/snmpd.conf

Configure it to point to the management server IP address use a community name (here it's public) trapsink *.*.*.* trapcommunity public

Then start snmpd service # service snmpd start

Configure it to autostart# chkconfig snmpd on

Test it on local machine #snmpwalk -v 1 -c public localhost system

Test it on another system (x.x.x.x is the esx server's IP) #snmpwalk -v 1 -c public x.x.x.x system Compile ESX MIBs from ESX CD mediaConfigure your management server to receive SNMP and act upon.

Page 33: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Register MIBs

/usr/lib/vmware/snmp/mibs/ on ESXVMWARE-ESX-MIB.mibVMWARE-RESOURCES-MIB.mibVMWARE-ROOT-MIB.mibVMWARE-SYSTEM-MIB.mibVMWARE-TRAPS-MIB.mibVMWARE-VMINFO-MIB.mib

Page 34: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

IPSwitch Whatsup Pro

Monitoring

Send alerts

Forward SNMP

Log history

Reporting

Shortcuts

Monitors:

Ping

Http

902

VC service

Page 35: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

EMC Navisphere Agent

# esxcfg-firewall -o 6389,tcp,in,EMCNaviAgent# esxcfg-firewall -o 6389,tcp,out,EMCNaviAgent

Page 36: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Patch Management

Hardware Drivers and FirmwareDell OpenManage IT Assistant

ESX Servers updatesesxupdate (Setup local depot) *

VMs OS updatesWSUS server and RedhatUp2date

Page 37: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Operation Best Practice Backup Strategies

Page 38: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Backup Strategies

Commvault host agent to backup the entire VMFS volumeSnapView clones for off-network backupIndividual backup agents on VMsConsolidated backup on a physical machine

Page 39: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Install Commvault Agent on VI 3

Install Commvault Agent for linuxOpen Commvault Static and dynamic portsConfigure subclient for pre/post-backup scripts

Page 40: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

SAN Clone

Commvault iDataAgent with Pre-backup and Post-backup scriptsUse SnapView to clone the entire VMFS volumeMinimize recovery time and scheduled downtime Reduce network traffic for backup Creating frequent point-in-time images Use clone on a different machine to backup the LUN

Page 41: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Consolidated Backup with VI3

Used our Commvault Media Agent Has HBA and connected to the SANHosts the magnetic store for our D2D2TMinimize network trafficOptimize storage utilization

SAN LUN / VMFS

VMware Host

VMware Host

VMware Host

Backup Media AgentWindows

Page 42: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

VCB SAN and Backup Configuration

Backup VMs at file level.Save Backup AgentsUsed Commvault Media Agent as VCB Proxy Subclient for every VM

Page 43: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

HA / DRS

Page 44: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Challenges Summary

User involvement at early stages might be a barrierIn some cases, there is a need to rearchitect the data centerNetwork performance is as important as other resourcesSecuring the hosts is very criticalThe risk for proliferating number of VMsMisuse features (clone VM as backup instead of Snapshot)Licensing issues (OS, Backup Agent, Apps)SAN Disk usage (vmdk files are partially used)

Page 45: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Conclusion Continued

80% Planning /Project Management with 20% implementationLeverage existing management toolsAutomate any possible activitySpare resources are VERY useful Remember ESX implements Linux commands and conceptsVMware VI provides many features, use them when possibleVirtualization is an exciting technology, enjoy it!

Page 46: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI

Presentation Download

Please remember to complete yoursession evaluation form

and return it to the room monitorsas you exit the session

The presentation for this session can be downloaded at http://www.vmware.com/vmtn/vmworld/sessions/

Enter the following to download (case-sensitive):

Username: cbv_repPassword: cbvfor9v9r

Page 47: Virtual Infrastructure Implementation - VMwaredownload3.vmware.com/vmworld/2006/adc0051.pdf · Virtual Infrastructure Implementation ... Marshall University, Data Center & RTI