Множественное связывание устройств Сравнение версий

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
Последняя версия Следующая версия справа и слева
wiki:руководство_по_ubuntu_server:множественное_связывание_устройств:dm_multipath [2012/05/20 13:05]
создано
wiki:руководство_по_ubuntu_server:множественное_связывание_устройств:dm_multipath [2012/05/21 15:09]
Строка 6: Строка 6:
 [[wiki:​руководство_по_ubuntu_server:​множественное_связывание_устройств:​multipath_devices|далее->​]]</​style>​ [[wiki:​руководство_по_ubuntu_server:​множественное_связывание_устройств:​multipath_devices|далее->​]]</​style>​
  
-=====Device Mapper Multipathing=====+=====Множественное связывание устройств=====
  
-Device mapper multipathing ​(DM-Multipath) ​allows you to configure multiple I/O paths between server nodes and storage arrays into a single deviceThese I/O paths are physical ​SAN connections that can include separate cablesswitchesand controllersMultipathing aggregates the I/O pathscreating a new device that consists of the aggregated pathsThis chapter provides a summary of the features of DM-Multipath ​that are new for the initial release of Ubuntu Server 12.04. ​Following that, this chapter provides a high-level overview of DM Multipath ​and its componentsas well as an overview of DM-Multipath ​setup.+Множественное связывание устройств ​(DM-Multipath) ​позволяет вам настроить несколько путей ввода/вывода между серверным узлом и массивом накопителей как одно устройствоЭти пути ввода/вывода являются физическими соединениями сети хранения данных (SAN)которые могут включать различные кабелипереключатели и контроллерыМножественное связывание объединяет пути ввода/выводасоздавая новое устройство,​ которое состоит из этих объединяемых путейЭта глава представляет краткое изложение возможностей ​DM-Multipath, которые впервые появились в редакции ​Ubuntu Server 12.04. ​Затем в этой главе приведен обзор верхнего уровня ​DM-Multipath ​и его компонентовтакже как и описание установки ​DM-Multipath.
  
-    New and Changed Features for Ubuntu Server 12.04 +====Новые и измененные возможности в Ubuntu Server 12.04====
-    Overview +
-    Storage Array Overview +
-    DM-Multipath components +
-    DM-Multipath Setup Overview+
  
-New and Changed Features for Ubuntu Server 12.04+Произведен переход с multipath-0.4.8 к multipath-0.4.9.
  
-Migrated from multipath-0.4.8 to multipath-0.4.9 +===Переход с 0.4.8===
-Migration from 0.4.8+
  
-The priority checkers are no longer run as standalone binariesbut as shared librariesThe key value name for this feature has also slightly changedCopy the attribute named prio_callout ​to prio, also modify the argument the name of the priority checkera system path is no longer necessaryExample conversion+Модули проверки приоритета теперь запускаются не как отдельные программыа как разделяемые библиотекиКлючевая часть имен для функций также несколько измененаСкопируйте атрибут с именем ​prio_callout ​как ​prio, также измените аргумент имени модуля проверки приоритетасистемный путь теперь необязателенПример изменений
- +<​code>​device {
-device { +
-        vendor "​NEC"​ +
-        product "DISK ARRAY"​ +
-        prio_callout mpath_prio_alua /dev/%n +
-        prio    alua +
-+
- +
-See Table Priority Checker Conversion for a complete listing +
-Priority Checker Conversion +
-v0.4.8 v0.4.9 +
-prio_callout mpath_prio_emc /dev/%n prio emc +
-prio_callout mpath_prio_alua /dev/%n prio alua +
-prio_callout mpath_prio_netapp /dev/%n prio netapp +
-prio_callout mpath_prio_rdac /dev/%n prio rdac +
-prio_callout mpath_prio_hp_sw /dev/%n prio hp_sw +
-prio_callout mpath_prio_hds_modular %b prio hds +
- +
-Since the multipath config file parser essentially parses all key/value pairs it finds and then makes use of them, it is safe for both prio_callout and prio to coexist and is recommended that the prio attribute be inserted before beginning migration. After which you can safely delete the legacy prio_calliout attribute without interrupting service. +
-Overview +
- +
-DM-Multipath can be used to provide: +
- +
-    Redundancy DM-Multipath can provide failover in an active/​passive configuration. In an active/​passive configuration,​ only half the paths are used at any time for I/O. If any element of an I/O path (the cable, switch, or controller) fails, DM-Multipath switches to an alternate path. +
- +
-    Improved Performance Performance DM-Multipath can be configured in active/​active mode, where I/O is spread over the paths in a round-robin fashion. In some configurations,​ DM-Multipath can detect loading on the I/O paths and dynamically re-balance the load. +
- +
-Storage Array Overview +
- +
-By default, DM-Multipath includes support for the most common storage arrays that support DM-Multipath. The supported devices can be found in the multipath.conf.defaults file. If your storage array supports DM-Multipath and is not configured by default in this file, you may need to add them to the DM-Multipath configuration file, multipath.conf. For information on the DM-Multipath configuration file, see Section, The DM-Multipath Configuration File. Some storage arrays require special handling of I/O errors and path switching. These require separate hardware handler kernel modules. +
-DM-Multipath components +
- +
-Table “DM-Multipath Components” describes the components of the DM-Multipath package. +
-DM-Multipath Components +
-Component Description +
-dm_multipath kernel module Reroutes I/O and supports failover for paths and path groups. +
-multipath command Lists and configures multipath devices. Normally started up with /​etc/​rc.sysinit,​ it can also be started up by a udev program whenever a block device is added or it can be run by the initramfs file system. +
-multipathd daemon Monitors paths; as paths fail and come back, it may initiate path group switches. Provides for interactive changes to multipath devices. This daemon must be restarted for any changes to the /​etc/​multipath.conf file to take effect. +
-kpartx command Creates device mapper devices for the partitions on a device It is necessary to use this command for DOS-based partitions with DM-Multipath. The kpartx is provided in its own package, but the multipath-tools package depends on it. +
- +
-DM-Multipath Setup Overview +
- +
-DM-Multipath includes compiled-in default settings that are suitable for common multipath configurations. Setting up DM-multipath is often a simple procedure. The basic procedure for configuring your system with DM-Multipath is as follows: +
- +
-    Install the multipath-tools and multipath-tools-boot packages +
- +
-    Create an empty config file, /​etc/​multipath.conf,​ that re-defines the following +
- +
-    If necessary, edit the multipath.conf configuration file to modify default values and save the updated file. +
- +
-    Start the multipath daemon +
- +
-    Update initial ramdisk +
- +
-For detailed setup instructions for multipath configuration see Section, Setting Up DM-Multipath.Device Mapper Multipathing +
- +
-Device mapper multipathing (DM-Multipath) allows you to configure multiple I/O paths between server nodes and storage arrays into a single device. These I/O paths are physical SAN connections that can include separate cables, switches, and controllers. Multipathing aggregates the I/O paths, creating a new device that consists of the aggregated paths. This chapter provides a summary of the features of DM-Multipath that are new for the initial release of Ubuntu Server 12.04. Following that, this chapter provides a high-level overview of DM Multipath and its components, as well as an overview of DM-Multipath setup. +
- +
-    New and Changed Features for Ubuntu Server 12.04 +
-    Overview +
-    Storage Array Overview +
-    DM-Multipath components +
-    DM-Multipath Setup Overview +
- +
-New and Changed Features for Ubuntu Server 12.04 +
- +
-Migrated from multipath-0.4.8 to multipath-0.4.9 +
-Migration from 0.4.8 +
- +
-The priority checkers are no longer run as standalone binaries, but as shared libraries. The key value name for this feature has also slightly changed. Copy the attribute named prio_callout to prio, also modify the argument the name of the priority checker, a system path is no longer necessary. Example conversion:​ +
- +
-device {+
         vendor "​NEC"​         vendor "​NEC"​
         product "DISK ARRAY"         product "DISK ARRAY"
         prio_callout mpath_prio_alua /dev/%n         prio_callout mpath_prio_alua /dev/%n
         prio    alua         prio    alua
-}+}</​code>​
  
-See Table Priority Checker Conversion for a complete listing +Смотрите таблицу преобразований модулей проверки приоритета для получения полного списка:​
-Priority Checker Conversion +
-v0.4.8 v0.4.9 +
-prio_callout mpath_prio_emc /dev/%n prio emc +
-prio_callout mpath_prio_alua /dev/%n prio alua +
-prio_callout mpath_prio_netapp /dev/%n prio netapp +
-prio_callout mpath_prio_rdac /dev/%n prio rdac +
-prio_callout mpath_prio_hp_sw /dev/%n prio hp_sw +
-prio_callout mpath_prio_hds_modular %b prio hds+
  
-Since the multipath config file parser essentially parses all key/value pairs it finds and then makes use of them, it is safe for both prio_callout and prio to coexist and is recommended that the prio attribute be inserted before beginning migration. After which you can safely delete the legacy prio_calliout attribute without interrupting service. +  ? Преобразование модулей проверки приоритета
-Overview+
  
-DM-Multipath can be used to provide:+^  v0.4.8 ​ ^  v0.4.9 ​ ^ 
 +| prio_callout mpath_prio_emc /dev/%n | prio emc | 
 +| prio_callout mpath_prio_alua /dev/%n | prio alua | 
 +| prio_callout mpath_prio_netapp /dev/%n | prio netapp | 
 +| prio_callout mpath_prio_rdac /dev/%n | prio rdac | 
 +| prio_callout mpath_prio_hp_sw /dev/%n | prio hp_sw | 
 +| prio_callout mpath_prio_hds_modular %b | prio hds |
  
-    Redundancy DM-Multipath can provide failover in an active/passive configuration. In an active/​passive configurationonly half the paths are used at any time for I/O. If any element of an I/O path (the cableswitchor controller) fails, DM-Multipath switches to an alternate path.+Поскольку разборщик файла настройки множественного связывания разбирает все пары ключ/значениекоторые находит и затем используетбезопасно совместное использование prio_callout с prioи рекомендуется вставлять атрибуты prio до начала миграции. После этого вы можете безопасно удалить унаследованные атрибуты prio_calliout без прерывания работы сервиса.
  
-    Improved Performance Performance DM-Multipath can be configured in active/​active mode, where I/O is spread over the paths in a round-robin fashion. In some configurations,​ DM-Multipath can detect loading on the I/O paths and dynamically re-balance the load.+====Обзор====
  
-Storage Array Overview+DM-Multipath может быть использован для обеспечения:​ 
 +  -- **Избыточности**:​ DM-Multipath может предоставлять обход отказа в активной/​пассивной настройке. В активной/​пассивной настройке только половина путей используется в определенные моменты времени для ввода/​вывода. Если какой-то элемент пути ввода/​вывода (кабель,​ переключатель или контроллер) поврежден,​ DM-Multipath переключается на альтернативный маршрут. 
 +  -- **Улучшенной производительности**:​ Работа DM-Multipath может быть настроена в активно/​активном режиме,​ где ввод/​вывод распределяется между путями в циклическом режиме. При некоторых конфигурациях DM-Multipath может определять загрузку путей ввода/​вывода и динамически ее балансировать.
  
-By default, DM-Multipath includes support for the most common storage arrays that support DM-Multipath. The supported devices can be found in the multipath.conf.defaults file. If your storage array supports DM-Multipath and is not configured by default in this file, you may need to add them to the DM-Multipath configuration file, multipath.conf. For information on the DM-Multipath configuration file, see Section, The DM-Multipath Configuration File. Some storage arrays require special handling of I/O errors and path switching. These require separate hardware handler kernel modules. +====Обзор массивов носителей====
-DM-Multipath components+
  
-Table “DM-Multipath ​Components” describes the components of the DM-Multipath ​package. +По умолчанию ​DM-Multipath ​содержит поддержку большинства массивов носителей,​ которые поддерживают ​DM-Multipath. ​Поддерживаемые устройства могут быть найдены в файле ​multipath.conf.defaultsЕсли ваш массив носителей поддерживает DM-Multipath и не настроен по умолчанию в этом файлевам может понадобиться добавить его в файл настройки DM-Multipath ​multipath.conf. ​Для информации по конфигурационном файлу DM-Multipath смотрите раздел [[wiki:​руководство_по_ubuntu_server:​множественное_связывание_устройств:​configuration|Конфигурационный файл ​DM-Multipath]]Некоторые массивы носителей требуют специального управления ошибками ввода/​вывода и переключением маршрутов. Они требуют отдельных обработчиков оборудования модулей ядра.
-DM-Multipath Components +
-Component Description +
-dm_multipath kernel module Reroutes I/O and supports failover for paths and path groups. +
-multipath ​command Lists and configures multipath devicesNormally started up with /etc/rc.sysinit, it can also be started up by a udev program whenever a block device is added or it can be run by the initramfs file system. +
-multipathd daemon Monitors paths; as paths fail and come backit may initiate path group switches. Provides for interactive changes to multipath devices. This daemon must be restarted for any changes to the /etc/multipath.conf ​file to take effect. +
-kpartx command Creates device mapper devices for the partitions on a device It is necessary to use this command for DOS-based partitions with DM-Multipath. ​The kpartx is provided in its own package, but the multipath-tools package depends on it.+
  
-DM-Multipath ​Setup Overview+====Компоненты ​DM-Multipath====
  
-DM-Multipath ​includes compiled-in default settings that are suitable for common multipath configurations. Setting up DM-multipath is often a simple procedureThe basic procedure for configuring your system with DM-Multipath is as follows:+Таблица компонентов ​DM-Multipath ​описывает компоненты пакета ​DM-Multipath.
  
-    Install the multipath-tools and multipath-tools-boot packages+  ? DM-Multipath Components
  
-    Create an empty config file, /​etc/​multipath.conf, ​that re-defines the following+^  Component ​ ^  Description ​ ^ 
 +| **модуль ядра dm_multipath** ​ | Перенаправляет ввод/​вывод и поддерживает обход отказа для маршрута и группы маршрутов. | 
 +| **команда multipath** ​ | Перечисляет и настраивает устройства множественного связывания. Обычно стартует с /​etc/​rc.sysinitно может также подниматься программой udev всякий раз когда добавляется блоковое устройство или она может быть запущена файловой системой initramfs. | 
 +| **сервис multipathd** ​ | Отслеживает маршруты;​ когда маршрут повреждается и восстанавливается он может инициировать переключатели групповых путей. Обеспечивает интерактивные изменения устройств множественного связывания. Этот сервис должен быть перезапущен после любых изменений файла ​/​etc/​multipath.conf ​для применения. | 
 +| ** команда kpartx** ​ | Создает устройство переопределения устройств для разделов на устройстве. Необходимо использовать эту команду для DOS совместимых разделов с DM-Multipath. Команда kpartx поставляется в своем собственном пакетено пакет multipath-tools имеет на него зависимость. |
  
-    If necessary, edit the multipath.conf configuration file to modify default values and save the updated file.+====DM-Multipath Setup Overview====
  
-    Start the multipath daemon+DM-Multipath содержит встроенные настройки по умолчанию,​ которые подходят для общих конфигураций множественного связывания. Установка DM-Multipath обычно достаточно простая процедура. Основная процедура по настройке вашей системы с использованием DM-Multipath следующая:​
  
-    Update initial ​ramdisk+  -- Установить пакеты **multipath-tools** и **multipath-tools-boot**. 
 +  -- Создать пустой настроечный файл /​etc/​multipath.conf,​ который переопределит [[|следующее]]. 
 +  -- Если необходимо,​ отредактируйте конфигурационный файл multipath.conf для изменения значений по умолчанию и сохраните его. 
 +  -- Запустите multipath сервис 
 +  -- Обновите изначальный ​ramdisk
  
-For detailed setup instructions for multipath ​configuration see Section, Setting Up DM-Multipath.+Для детальных инструкций настройки ​multipath ​конфигурации смотрите секцию [[wiki:​руководство_по_ubuntu_server:​множественное_связывание_устройств:​overview|Обзор установки ​DM-Multipath]]
  
 ---- ----