Upload
roman-ivanov
View
2.596
Download
3
Embed Size (px)
DESCRIPTION
Citation preview
1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Roman IvanovPrincipal Software Engineer
Инструменты консолидации в Oracle Solaris 11
2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Agenda
• P2V (physical to virtual)● Перенос Solaris с устаревшего
оборудования на новое
• BE (boot environments)● Обновление Solaris
• Live Migration● Миграция без остановки
4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Стоит ли держаться за старое?
● Мощность систем возросла в десятки раз
● Ниже производительность на единицу площади (объема)
● Ниже производительность на единицу потребленного электричества, выделенного тепла и прочее......
● Да еще надо платить за поддержку
● Высокие риски!
5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
P2V
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
7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Подготовка и создание образа операционной системы
● Настроить Control Domain (primary)
● Создать NFS директорию, доступную с обоих серверов
● Скопировать и запустить скрипт ldmp2v:● ./ldmp2v collect -d /net/server/p2v
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
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 перенос в зону
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
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
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
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
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 зоны
перед еë запуском
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
16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
BE
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
18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Проверка наличия обновлений
Обновление информации о пакетах в репозитории# pkg refresh
Список обновленных пакетов# pkg list -u
Получение информации о конкретном пакете в репозитории# pkg info -r entire
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
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
Если что-то пошло не так
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
22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Live Migration
23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Secure Live Migration
• Live Migration между серверами SPARC T-Series и SPARC M-Series одного или даже разных поколений
• Все передаваемые данные зашифрованы
● Дополнительное оборудование не требуется
● Выделенная сеть так же не требуется
• Безопасно и удобно
Позволяет избежать существенного простоя
Shared Storage
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
25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Solaris 11 zones
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
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
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
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
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
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
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
33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
-IB стэк
- Net installation
- описание VM2
- организация виртуальных сетей
- виртуализация и управление виртуальными машинами