35
1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Roman Ivanov Principal Software Engineer Инструменты консолидации в Oracle Solaris 11

Solaris 11 Consolidation Tools

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Solaris 11 Consolidation Tools

1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Roman IvanovPrincipal Software Engineer

Инструменты консолидации в Oracle Solaris 11

Page 2: Solaris 11 Consolidation Tools

2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Page 3: Solaris 11 Consolidation Tools

3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Agenda

• P2V (physical to virtual)● Перенос Solaris с устаревшего

оборудования на новое

• BE (boot environments)● Обновление Solaris

• Live Migration● Миграция без остановки

Page 4: Solaris 11 Consolidation Tools

4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Стоит ли держаться за старое?

● Мощность систем возросла в десятки раз

● Ниже производительность на единицу площади (объема)

● Ниже производительность на единицу потребленного электричества, выделенного тепла и прочее......

● Да еще надо платить за поддержку

● Высокие риски!

Page 5: Solaris 11 Consolidation Tools

5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

P2V

Page 6: Solaris 11 Consolidation Tools

6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

● Исходная система: Solaris 8, 9 или 10 на UFS

● Целевая система: Solaris 10 LDom● Операционная система обновляется до Solaris 10

● Возможно сохранить hostid/MAC

Вариант 1: Solaris 8, 9 или 10 на UFS

Page 7: Solaris 11 Consolidation Tools

7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Подготовка и создание образа операционной системы

● Настроить Control Domain (primary)

● Создать NFS директорию, доступную с обоих серверов

● Скопировать и запустить скрипт ldmp2v:● ./ldmp2v collect -d /net/server/p2v

Page 8: Solaris 11 Consolidation Tools

8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Разворачивание образа операционной системы

● На целевом сервере● ldmp2v prepare -d /net/server/p2v ldg1

● Отключить исходный сервер

● На целевом● ldmp2v convert -i solaris10.iso -d /net/server/p2v ldg1

● ldm bind ldg1

● ldm start ldg1

● telnet 0 5000

Page 9: Solaris 11 Consolidation Tools

9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

● Исходная система: Solaris 8 или 9

● Целевая система: Solaris branded Zone в Solaris 10 LDom

● Эмуляция hostid

● Эмуляция sun4u

Вариант 2: Solaris 8 или 9 перенос в зону

Page 10: Solaris 11 Consolidation Tools

10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Перенос системы в зону

● Необходимо скачать с Oracle Software Delivery Cloud и установить пакеты Oracle Solaris Legacy Containers в домен Solaris 10

● Выбрать продукт Oracle Solaris

● Платформа Oracle Solaris on SPARC (64-bit)

● # pkgadd -d ./Product SUNWs8brandk

● На исходном сервере создается образ системы● # flarcreate -S -n s8-system /net/server/s8-system.flar

Page 11: Solaris 11 Consolidation Tools

11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Перенос системы в зону

● Создаем branded зону● global# zonecfg -z s8-zone

● zonecfg:s8-zone> create -t SUNWsolaris8

● Переносим образ системы в зону● global# zoneadm -z s8-zone install -p -a /net/server/s8-system.flar

● Стартуем зону● global# zoneadm -z s8-zone boot

● global# zlogin -C s8-zone

Page 12: Solaris 11 Consolidation Tools

12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Вариант 3: Solaris 10 и/или 11

● Исходная система: Solaris 10 или 11

● Целевая система:

● Solaris 10 GZ → Solaris 10 "native" NGZ

● Solaris 10 GZ → Solaris 11 "solaris10" NGZ

● Solaris 11 GZ → Solaris 11 “solaris” NGZ

● Утилита для проверки возможности миграции: zonep2vchk

Page 13: Solaris 11 Consolidation Tools

13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Solaris 10 GZ → Solaris 11 "solaris10" NGZ

● # pkg install brand-solaris10

● Проверить исходную систему с zonep2vchk

● # flarcreate -n s10-system /net/target/ex/s10-system.flar

● zonecfg create zone

● zoneadm install -a s10-system.flar

Page 14: Solaris 11 Consolidation Tools

14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Перенос зон между физическими серверами

● host1# zoneadm -z zonename detach

● host1# zonecfg -z zonename export > zone.cfg

● Перенести zonepath на новый хост

● host2# zonecfg -z zonename -f zone.cfg

● host2# zoneadm -z zonename attach -F● -F необходимо использовать для branded зон, чтобы избежать

проверки пакетов, установленных в зоне

● host2# /usr/lib/brand/solaris8/s8_p2v zonename● Необходимо дополнительно выпонить команду для branded зоны

перед еë запуском

Page 15: Solaris 11 Consolidation Tools

15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Полезные ссылки

●How to Migrate Oracle Database from Oracle Solaris 8 to Oracle Solaris 11http://www.oracle.com/technetwork/articles/servers-storage-admin/migrate-s8db-to-s11-1867397.html

●Oracle Solaris Containerswww.oracle.com/technetwork/server-storage/solaris/containers-169727.html

●Oracle Software Delivery Cloudhttps://edelivery.oracle.com/

●System Administration Guide: Oracle Solaris 8 Containershttp://docs.oracle.com/cd/E22645_01/html/820-2914/toc.html

Page 16: Solaris 11 Consolidation Tools

16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

BE

Page 17: Solaris 11 Consolidation Tools

17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

ZFS Boot Environments

§ Является частью ОС§ Надежны и легки в использовании§ Быстрая перезагрузка –

уменьшение времени простоя§ Поддерживаются зоны

§ Safety Net For Your Data Center Operations

Active BE

Active BENew BE

Active BEUpdated BE

Page 18: Solaris 11 Consolidation Tools

18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Проверка наличия обновлений

Обновление информации о пакетах в репозитории# pkg refresh

Список обновленных пакетов# pkg list -u

Получение информации о конкретном пакете в репозитории# pkg info -r entire

Page 19: Solaris 11 Consolidation Tools

19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Обновление системы

Информация об имеющихся BE# beadm listBE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- solaris-11.1.10.5.0 - - 75.84M static 2013-08-20 11:35 solaris-11.1.12.5.0 NR / 33.23G static 2013-10-18 09:18

Обновление системы# pkg update –be-name=solaris-11.1.13.6.0….# init 6# beadm listBE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- solaris-11.1.10.5.0 - - 75.84M static 2013-08-20 11:35 solaris-11.1.12.5.0 - - 21.23M static 2013-10-18 09:18 Solaris-11.1.13.6.0 NR / 34.35G static 2013-11-19 15:20

Page 20: Solaris 11 Consolidation Tools

20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

# beadm activate solaris-11.1.12.5.0# beadm listBE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- solaris-11.1.10.5.0 - - 75.84M static 2013-08-20 11:35 solaris-11.1.12.5.0 R - 21.23M static 2013-10-18 09:18 Solaris-11.1.13.6.0 N / 34.35G static 2013-11-19 15:20

# init 6# beadm listBE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- solaris-11.1.10.5.0 - - 75.84M static 2013-08-20 11:35 solaris-11.1.12.5.0 NR / 31.23G static 2013-10-18 09:18 Solaris-11.1.13.6.0 - - 34.35M static 2013-11-19 15:20

Если что-то пошло не так

Page 21: Solaris 11 Consolidation Tools

21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Полезные ссылки

●How to Update Oracle Solaris 11 Systems From Oracle Support Repositorieshttp://www.oracle.com/technetwork/articles/servers-storage-admin/o11-018-howto-update-s11-1572261.html

Page 22: Solaris 11 Consolidation Tools

22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Live Migration

Page 23: Solaris 11 Consolidation Tools

23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Secure Live Migration

• Live Migration между серверами SPARC T-Series и SPARC M-Series одного или даже разных поколений

• Все передаваемые данные зашифрованы

● Дополнительное оборудование не требуется

● Выделенная сеть так же не требуется

• Безопасно и удобно

Позволяет избежать существенного простоя

Shared Storage

Page 24: Solaris 11 Consolidation Tools

24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Live Migration Best Practices• No specific requirements on number of CPUs in Control Domains.

• Experience shows that > 8 vCPUs is best. • Recommend 16 or more vCPUs to minimize suspend time and overall

migration time.• Workloads that heavily modify memory pages will have longer

migration times• Review the documentation, especially the Admin Guide for planning

Live Migration• Visit OTN page for best practices white paper

http://www.oracle.com/technetwork/server-storage/vm/overview/index.html

Page 25: Solaris 11 Consolidation Tools

25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Solaris 11 zones

Page 26: Solaris 11 Consolidation Tools

26

Zones for Solaris 11: Big Ideas

● Rationalized installation, system configuration, and update● Greatly improved p2v● Greater runtime “completeness”: NFS server, lofi, and more● Networking

● Shared Stack → Exclusive Stack● Automatic networking● Network Resource Management

● Immutable Zones● Storage enhancements● Accurate Utilization Monitoring● Solaris 10 Zones

Page 27: Solaris 11 Consolidation Tools

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.27

§ Zone updates now executein parallel

§ Time savings exponential across datacenter

Fast Zone Updates

New with Solaris 11.14x less downtimeduring maintenance windows

Minutes

Updating a T4 System with 20 Zones

Increase consolidation ratios without increasing maintenance windows

Page 28: Solaris 11 Consolidation Tools

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.28

§ Zones on shared storage§ Zones framework automatically

manages• Configuration/un-configuration of

storage services• Attach/detach of storage devices• zpool creation, import, export• For SAN and iSCSI

Easy Mobility for Zones

New with Solaris 11.1Move zones around between systems quickly and easily

Zone B

Zone B

Zone A

Zone A

Zone C

Zone C

Page 29: Solaris 11 Consolidation Tools

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.29

§ Safe deployment of mission critical Solaris 10 applications in Solaris 10 Zone Clusters

§ More control and flexibility with support of exclusive IP

§ Improved resource and priority management for zone clusters

§ Simplified Zone cluster set-up through configuration wizard

Zone Clusters for Solaris 10 Applications

New with Solaris Cluster 4.1

Solaris 11 Zone

Solaris 11 Zone

Solaris 11 Zone

Solaris 11 Zone

Solaris 10 Zone

Solaris 10 Zone

Solaris 10 Zone

Solaris 10 Zone

Solaris 11 Zone

Solaris 11 Zone

Solaris 11 Zone

Solaris 11 Zone

Web Tier

Application Tier

Database Tier

Protect application investment

Take advantage of thelatest server platforms

Page 30: Solaris 11 Consolidation Tools

30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle SuperCluster§ Oracle’s Fastest and Most Scalable Engineered Systems

CO

MP

LE

TE

Compute

Storage

Software

Networking

+

+

• The best system for running databases and applications in memory

• Ideal for consolidation and cloud

• Best for IBM/HP and SPARC refreshes and new deployments

Page 31: Solaris 11 Consolidation Tools

31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle SuperCluster§ Extending the Product Family

§ Best Price / performance§ High consolidation ratios§ Run database and

applications on a single rack§ Scalable configurations§ Exadata database

optimizations§ Exalogic software and other

application optimizations§ Layered Optimized

Virtualization§ Virtual Tuning Assistant

SuperCluster M6-32SuperCluster T5-8

All SuperCluster T5-8 benefits, PLUS…

§ Vertical scaling§ In-memory applications

using big memory capacity

§ Oracle Database12c and applications optimized

§ Mainframe-class RAS

Page 32: Solaris 11 Consolidation Tools

32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

SuperCluster SuperCluster T5-8 SuperCluster M6-32

Half Rack Full Rack Minimum Maximum

Processors 8 16 16 32

Memory 2TB 4TB 8 TB 32 TB

Exadata Storage Servers 4 8 9

Oracle SuperCluster§ At A Glance

Page 33: Solaris 11 Consolidation Tools

33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Page 34: Solaris 11 Consolidation Tools

34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Page 35: Solaris 11 Consolidation Tools

35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

-IB стэк

- Net installation

- описание VM2

- организация виртуальных сетей

- виртуализация и управление виртуальными машинами