Az előadás letöltése folymat van. Kérjük, várjon

Az előadás letöltése folymat van. Kérjük, várjon

Magas Rendelkezésreállás I.

Hasonló előadás


Az előadások a következő témára: "Magas Rendelkezésreállás I."— Előadás másolata:

1 Magas Rendelkezésreállás I.
4/4/2017 7:09 PM SQL 2012 TKOC Magas Rendelkezésreállás I. Király István Microsoft Certified Trainer Microsoft Certified Systems Engineer © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Bevezetés - Tartalom Miről lesz szó a mai napon?
4/4/2017 7:09 PM Bevezetés - Tartalom Miről lesz szó a mai napon? Log Shipping Mirroring © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 Miért van szükségem magas rendelkezésre állásra?
Az informatikától megkövetelik a minél kevesebb állást, kieső bevételek, elvesztett ügyfelek, presztízs stb. Tervezett leállás: Patch-elés Hardver vagy szoftver frissítés Rendszerkonfiguráció módosítása Adatbázis karbantartás Alkalmazás upgrade Nem tervezett leállás „Human error” Site disasters Hardware hiba Adat sérülés Szoftver hiba

4 Microsoft SQL Server® 2008 R2 High Availability Technologies – Mi hiányzik az ábráról? 
Database mirroring Failover clustering Transactional and peer-to-peer replication Log shipping Backup and restore

5 Log Shipping Tranzakciós naplók replikálása másodlagos szerverekre
Az elsődleges szerveren létrejövő esetleges hibák is replikálódnak

6 Log Shipping Működési elve
Restore transaction log files Back up transaction log files Primary server Secondary server Működési lépések Tranzakciós naplók rendszeres mentése az elsődleges szerveren Az SQL Server Agent átmásolja a tranzakciós log mentéseket a másodlagos szerverekre A tranzakciós log mentések visszaállítása a másodlagos szervereken 1 2 3

7 Log Shipping Server típusok és felépítés
Server and database Description Primary server and database Elsődleges adatbázis helye Secondary server and database Másodlagos adatbázis helye log másolás célja Optional monitor server Opcionális, monitor szerver Monitorserver Secondary server Restore transaction log files Back up transaction log files Primary server

8 Log Shipping kialakításának feltételei I.
Log shipping követelmények Minimum SQL Server 2005 megléte Full vagy bulk-logged recovery model SQL Server Agent beállítása, automatikus indulás Sysadmin jogosultság az összes szerver példányon Collation beállítások ellenőrzése, egyezősége

9 Log Shipping kialakításának feltételei II.
Mentés és helyreállítással kapcsolatos beállítások Az SQL Server service account rendelkezzen írási/olvasási jogosultsággal a backup könyvtáron A COPY JOB proxy accountja rendelkezzen olvasási joggal a backup könyvtáron és írási joggal a copy könyvtárra Az SQL Server Service account és a restore job accountja a másodlagos szerver copy könyvtárán rendelkezzen írási/olvasási joggal.

10 Log Shipping kialakításának feltételei III.
Transaction log backup ajánlások: Megbízható diszk alrendszer Hálózat megbízhatósága, sebessége Másodlagos szerverek alkalmazása riportolásra Megfelelő késleltetés beállítása Tranzakciós log fájlok mérete Visszaállítás idejének kalkulálása a másodlagos szervereken

11 demo Log Shipping 4/4/2017 7:09 PM
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 Database Mirroring - Bevezetés
4/4/2017 7:09 PM Database Mirroring - Bevezetés SQL 2005 SP1-ben debütált, SP2-ben véglegesítették Operációs rendszer független megoldás (a LogShipping is) Nagyban hasonlít a LogShipping-hez Nem megosztott mappák segítségével szinkronizál, hanem endpointokat használ Nem lehet több másodlagos példány, csak ha közösen alkalmazzuk a LogShipping-el Több féle működési mód © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

13 Topológia és Server Típusok
Witness Server (Optional) Client Session Database Mirroring Session Principal Server (Online database) Mirror Server (Standby database)

14 Tervezési megfontolások
Ajánlás Leírás A mirror és a principal szerver hardverfelépítése legyen megközelítőleg azonos Failover esetén nem lesz belassulás Megúszhatjuk a telefoncsörgést  Mirror szerver teljesítménye legyen közel azonos a principal szerverével A rendszer válaszideje nagyban függ, hogy a commit mikor érvényesül a mirror szerveren A mirror megszűnésének állapota legyen minél rövidebb Minél később áll vissza az eredeti állapot annál több adatot kell pótolni a logokból

15 A Mirror működési módjai
Működés módja Magyarázat Automatic failover Teljesen automatizált működési mód Szükséges egy 3. ún witness server Manual failover Kézi failover lehetősége Tranzakciók konzisztenciája biztosított Forced service Aszinkron működési mód Tranzakciók veszhetnek el

16 Működési módok

17 Adatbázis állapotok Database state Description SYNCHRONIZED
A mirror rendben működik SYNCHRONIZING A mirror szerver felzárkózik a principalhoz SUSPENDED Pl: pause mirror PENDING_FAILOVER Csak a principal serveren, failover folyamat közben DISCONNECTED Hálózati problem a partner nem látható illetve a witness nem látható

18 Kapcsolódás mirror-hoz
Connection string használata OLE DB Provider, JDBC, ODBC, Active X használatával SQL Native client, ADO.NET .NET framework stb. Odbc string: "Server=Partner_A; Failover_Partner=Partner_B; Database=AdventureWorks; Network=dbmssocn"

19 Mirror készítése SQL Server Services áttekintése, milyen user nevében fut, jogosultságok tisztázása Adatbázis vizsgálata, recovery model: FULL Principal Serveren DB mentése+LOG mentése Mirror Serveren DB és LOG visszaállítása WITH NORECOVERY módban Endpointok konfigurálása Mirror létrehozása Monitorozás

20 Hibalehetőségek, saját tapasztalatok:
SQL Error: 1418 Jogosultság Hálózati probléma Endpoint Security Tűzfal Kb 5db adatbázisnál többet ne mirrorozzunk Nagyon gyors a failover, nagyon érzékeny az IP kimaradásra

21 4/4/2017 7:09 PM SQL Mirror demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 4/4/2017 7:09 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Letölteni ppt "Magas Rendelkezésreállás I."

Hasonló előadás


Google Hirdetések