48
Stormagic SVSAN Amit

Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Stormagic SVSAN

Amit

Page 2: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Agenda Day1● Virtualization

● Storage Overview

● Classic Storage System

● Raids

● Software Defined

● Software Defined Storage

● Virtual Storage Appliance

● Challenges with Classic Storage

● Stormagic

● Stormagic SVSan

● SVSan Architechture

● SVSan fetures

Page 3: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Agenda Day2● Stormagic SVSan Deployment

● Vmware vSphere

● SVSan integration with vSphere

● Web client and VIC explanation

● Data store creation

● How to use

● Logging

● Esxtop read

● Monitoring and Upgarde

● Failover and Replication

● Restore

● Mirroring

Page 4: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Agenda Day3

● Practical lab for all stuff

● SVSan deployment

● Cluster failover

● Cluster restore

● Log analysis

● Troubleshooting

● Use Cases

● Issue management

● Failvoer and restore

● Esxtop analysis

Page 5: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Virtualization

Page 6: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Agenda

• OS basics• Virtualization• Server Virtualization• ESX (i)• Storage and Networking basics• File system (vmfs) and core features of vSphere• Some use cases

Page 7: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

OS Basic:

Page 8: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Virtualization

• Virtualization, in computing, refers the act of creating a virtual (rather than actual) version of something.

• Hardware Virtualization • (Vmware ESX,Citrix Xen,Microsoft Hyper -V)

• Desktop Virtualization• (VDI Solution)

• Application Virtualization • (Thinapp)

Page 9: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Hardware Virtualization

• Server• Install on Bare-Metal• Kernel: Which can manage hardware• Vmware ESX

• Hosted • Need a host operating system• Dependent on Host operating system• Vmware Workstation

Page 10: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Vmware.. (history)

• Started in 1998 (standford)• Founder: Mendel Rosenblum• Started from hosted product• Acquired by EMC (2005)• Vmware has acquired lot of companies.

• Zimra• Virsto• Nicira• gemstone

Page 11: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Vmware Product line

• Server virtualization: Vmware ESX• vSphere Center

• Hosted product: Vmware Workstation• DR solution :SRM• Cloud solution:VCD• Backup solution: VCB,VDDK• VDI Solution : Vmware view• Storage Solution: VSA

Page 12: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

ESX

• Bare-Metal hypervisor• It has its own kernel: Vmkernel

• Comes in two flavor: ESX • Service Console• Comes in iso format• Can be installed on local and remote datastore• ESX 4.1

• ESX(i) : Embedded OS• Comes in iso and dd format• Can be installed on USB,local harddisk or remote datastore• Can be booted from PXE• ESX5.0 onwards only this flavor

Page 13: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Page 14: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Virtual Machines

• A virtual machine is a tightly isolated software container that can run its own operating systems and applications as if it were a physical computer. A virtual machine behaves exactly like a physical computer and contains it own virtual (that is, software-based) CPU, RAM hard disk and network interface card (NIC).

Creating of VM: Its creates a set of files• Harddisk (vmdk and flat-vmdk)• Configuration (vmx)• Memory (Swap)• BIOS (nvram)

• Power on the vm creates these process:• Vmx ,vmm and mks process

Page 15: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 16: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Guest Operating System

• Inside the VM, we need to install the GOS• GOS type is decided during creation of VM• Vmware tools

• Specific to GOS type• Provide drivers such as vmnet3,svga,balloon driver.

Page 17: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

VMFS file system

• Cluster file system• Created on the block devices• Vmfs 3 and vmfs 5 version• File system can be created on

:SAS,SATA,DAS,SAN(FC,iSCSI,FCOE…)• vmfs5

• Support 1Mb block size• File system can go beyond 2 TB

Page 18: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Storage Architecture

Page 19: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

vSphere Center Server

• VMware® vCenter Server™ provides a centralized platform for managing your VMware vSphere® environments. Automate and deliver a virtual infrastructure with confidence

• Its provide the core features of Vmware:• Vmotion• Svmotion• DRS and HA• DVS ,SDRS,FT….

Page 20: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Outline

• Shared Storage Architecture• Direct Access Storage (DAS)

– SCSI– RAID

• Network Attached Storage (NAS)• Storage Area Network (SAN)

– Fiber Channel and – Fiber Channel Switch

20

Page 21: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Three Basic Forms of Network Storage

• Direct access storage (DAS)• Network attached storage (NAS)• Storage area network (SAN)

• And a number of variations on each (especially the last two)

21

Page 22: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

22

DAS NAS FC-SAN

FCSwitch

servers

storage

clients

Page 23: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Redundant Array of Independent Disks (RAID)

• A group of hard disks is called a disk array• RAID combines a disk array into a single virtual device

– called RAID drive• Provide fault tolerance for shared data and applications• Different implementations: Level 0-5• Characteristics:

– Storage Capacity– Speed: Fast Read and/or Fast Write– Resilience in the face of device failure

23

Page 24: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

RAID Functions

• Striping– Write consecutive logical byte/blocks on consecutive physical disks

• Mirroring– Write the same block on two or more physical disks

• Parity Calculation– Given N disks, N-1 consecutive blocks are data blocks, Nth block is for parity– When any of the N-1 data blocks is altered, N-2 XOR calculations are performed

on these N-1 blocks– The Data Block(s) and Parity Block are written– Destroy one of these N blocks, and that block can be reconstructed using N-2

XOR calculations on the remaining N-1 blocks– Destroy two or more blocks – reconstruction is not possible

24

Page 25: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Disk Striping (example)

25

Example 1: 1 0 1 0 1 1

1 1 1 0 0 1 1 1 0

disk 1: odd bits disk 2: even bits parity bits (even parity)

Example 2: 1 0 1 0 1 1

1 0 0 1 1 1

3k+1 bits 3k+2 bitsparity bits (odd parity)

1 1

3k bits

Page 26: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

RAID Types• RAID 0

– Stripe with no parity (see next slide for figure)• RAID 1

– Mirror two or more disks• RAID 0+1 (or 1+0)

– Stripe and Mirrors• RAID 3

– Synchronous, Subdivided Block Access; Dedicated Parity Drive

• RAID 5– Like RAID 4, but parity striped across multiple drives

26

Page 27: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

RAID 0 RAID 1

27

Disk MirrorDisk Striping (no redundancy)

Page 28: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

RAID 0+1 (or 1+0)

28

Page 29: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

RAID 3 RAID 5

29

Disk striping with Dedicated Parity DriveDisk striping with Distributed Parity Data

Page 30: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

30

Striping (parity) data is duplicate.

Page 31: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Network Attached Storage (NAS)

• NAS is adedicated storage device, and it operates in a client/server mode.

• NAS is connected to the file server via LAN.• Protocol: NFS (or CIFS) over an IP Network

– Network File System (NFS) – UNIX/Linux– Common Internet File System (CIFS) – Windows Remote file system

(drives) mounted on the local system (drives)• evolved from Microsoft NetBIOS, NetBIOS over TCP/IP (NBT), and Server Message

Block (SMB)

– SAMBA: SMB on Linux (Making Linux a Windows File Server)

• Advantage: no distance limitation• Disadvantage: Speed and Latency• Weakness: Security

31

Page 32: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Network Attached Storage (NAS)

• Specialized storage device or group of storage devices providing centralized fault-tolerant data storage for a network

32

Clients

Servers Storage Devices

Page 33: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Storage Area Network (SAN)• A Storage Area Network (SAN) is a specialized, dedicated

high speed network joining servers and storage, including disks, disk arrays, tapes, etc.

• Storage (data store) is separated from the processors (and separated processing).

• High capacity, high availability, high scalability, ease of configuration, ease of reconfiguration.

• Fiber Channel is the de facto SAN networking architecture, although other network standards could be used.

33

Page 34: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

SAN Benefits• Storage consolidation• Data sharing• Non-disruptive scalability for growth• Improved backup and recovery• Tape pooling• LAN-free and server-free data movement• High performance• High availability server clustering• Data integrity• Disaster tolerance• Ease of data migration• Cost-effectives (total cost of ownership)

34

Page 35: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

NAS vs. SAN ?• Traditionally:

– NAS is used for low-volume access to a large amount of storage by many users

– SAN is the solution for terabytes (1012) of storage and multiple, simultaneous access to files, such as streaming audio/video.

• The lines are becoming blurred between the two technologies now, and while the SAN-versus-NAS debate continues, the fact is that both technologies complement each another.

35

Page 36: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Internet SCSI (iSCSI)

• iSCSI is a proposed industry standard that allows SCSI block I/O protocols (commands, sequences, and attributes) to be sent over a network using the popular TCP/IP protocol.

• A way to access storage across an IP network as though it was locally attached.

• Transports SCSI protocol commands and data across an IP network• Cisco and IBM co-authored original iSCSI protocol draft• iSCSI Protocol is a standard maintained by the IETF

– IP Storage (IPS) Working Group– RFC 3720

36

Page 37: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

iSCSI Benefit

37

Page 38: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

FC-SAN vs. iSCSI

• Since the iSCSI appliance attaches to the existing Ethernet network, NAS and iSCSI are very similar in network architecture– However, the performance would be significantly different.

• Both iSCSI and SAN use Block I/O to transport data, whereas NAS uses File I/O.

• SAN offers better performance (c.f. NAS), but is more expensive and requires a higher skill set to implement. iSCSI and NAS offer better pricing and skills may already be in place to implement them.

• Both SAN and iSCSI offer the performance benefit of Block I/O.

38

Page 39: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Challenges With Classic Storage

- Classic Storage Configuration- Administration Cost- Operation Cost- Expensive- Space Requirement- Automation challenges- Business need- Troubleshooting- Upgrade Challenges

Page 40: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the

Stormagic

Page 41: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 42: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 43: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 44: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 45: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 46: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 47: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the
Page 48: Stormagic SVSAN - openwriteup.com · 2016-11-25 · RAID Functions • Striping – Write consecutive logical byte/blocks on consecutive physical disks • Mirroring – Write the