Step 2. Create Custom Veeam Recovery Media
At the Recovery ISO step of the initial setup wizard, specify settings for the custom Veeam Recovery Media.
In addition to the generic Veeam Recovery Media that is available for download at the Veeam website, you can create a custom Veeam Recovery Media. This option may be helpful if your computer uses hardware that requires drivers not included in the generic Veeam Recovery Media. When you create the custom Veeam Recovery Media, Veeam Agent for Linux copies the Linux kernel running on your computer with its currently loaded modules and includes them into the custom recovery media.
Before you create a custom Veeam Recovery Media, check the following prerequisites:
- The Linux system must have the genisoimage package installed. For openSUSE and SLES 15 SP0 – SP1 distributions, t he Linux system must have the mkisofs package installed instead.
- The Linux system must have the mksquashfs and unsquashfs utilities installed.
- For custom Veeam Recovery Media with EFI support, the Linux system must have the following packages installed:
- xorriso
- isolinux (or syslinux , if the software package repository of your Linux distribution lacks the isolinux package)
- For the scenario where you create a custom Veeam Recovery Media using the Download and patch ISO option, the Linux system must have the wget utilitiy installed.
TIP
If you do not want to create a custom Veeam Recovery Media at the process of initial product setup, switch to the Next button with the Tab key and press Enter . You will proceed immediately to the License step of the initial setup wizard.
You can create the custom Veeam Recovery Media later, at any time you need, using the Veeam Agent for Linux command line interface. To learn more, see Creating Custom Veeam Recovery Media .
To specify settings for the custom Veeam Recovery Media:
- Make sure that the Patch Veeam Recovery Media ISO option is selected and press Space .
- If you want the Veeam Recovery Media to be able to boot on EFI-based systems, select the EFI system option with the Tab key and press Space .
If you do not enable this option, the custom Veeam Recovery Media will be able to boot on BIOS-based systems only.
- Press Tab and select how you want to create a custom Veeam Recovery Media depending on the location of the generic recovery media ISO file:
- If you did not download the generic Veeam Recovery Media from the Veeam website, make sure that the Download and patch ISO option is selected and press Tab . When you start the custom recovery media creation process, Veeam Agent for Linux will download the ISO file of the generic Veeam Recovery Media from the Veeam software repository to the /tmp/veeam directory on the Veeam Agent computer and use this image to create the custom Veeam Recovery Media.
Veeam Agent for Linux automatically downloads one of the following Veeam Recovery Media ISO files depending on the Veeam Agent computer architecture:
- veeam-recovery-i386-5.0.0.iso — for x86 computers that run Linux kernel version 3.16 and later. The size of the downloaded ISO file is 460 MB.
- veeam-recovery-amd64-5.0.0.iso — for x64 computers that run Linux kernel version 3.16 and later. The size of the downloaded ISO file is 490 MB.
- veeam-recovery-media-5.0.0.iso — for x86 and x64 computers that run Linux kernel version earlier than 3.16. The size of the ISO image file depends on the Veeam Agent computer architecture: 136 MB for x86 computers and 139 MB for x64 computers.
- If you have already downloaded a recovery media ISO file to a local directory on the Veeam Agent computer or to a network shared folder, select the Patch local ISO option with the Down key and press Tab . If you select this option, you will be able to specify a path to the ISO file of the generic Veeam Recovery Media.
The name of the generic Veeam Recovery Media ISO file depends on the recovery image version, Veeam Agent computer architecture and the source from which you downloaded the ISO file: from the product download page or Veeam software repository. To learn more, see Veeam Recovery Media Versions .
- If you have selected the Patch local ISO option, in the Path to ISO field, specify a path to the ISO file of the generic Veeam Recovery Media:
- Select the Browse option with the Tab key and press Enter .
- In the Path to ISO window, select the necessary directory and press Enter .
- Repeat the step ‘b’ until a path to the directory in which the recovery media ISO file resides appears in the Current directory field.
- In the directory where the recovery media ISO file resides, select the ISO file and press Enter .
- In the Save patched ISO to field, specify a path to the resulting ISO file of the custom Veeam Recovery Media:
- Select the Browse option with the Tab key and press Enter .
- In the Save patched ISO to window, select the necessary directory and press Enter .
- Repeat the step ‘b’ until a path to the directory where you want to save the resulting custom recovery media ISO file appears in the Current directory field.
- Select the OK button with the Tab key and press Enter .
- To start the custom recovery media creation process, select the Next button with the Tab key and press Enter .
Источник
Восстановление из резервной копии с помощью Veeam Agent for Linux
Конечная цель создания резервной копии – обеспечить возможность восстановления данных в случае сбоя, и сегодня я вкратце расскажу, как с этим способен справиться новый Veeam Agent for Linux. Возьмем в качестве «подопытного кролика» тот же бэкап, создание которого было описано в предыдущем посте, и посмотрим, как из него можно восстановиться. За сим добро пожаловать под кат.
Восстановление на уровне файлов
Как вы помните, Veeam Agent for Linux успешно сохранил бэкап на сервер NFS. Запустим уже знакомый нам UI, введя команду
veeam
Сверим часы, то есть данные о последней сессии задания резервного копирования:
Внизу, в списке команд теперь появилась команда R (Recover Files) – восстановить файлы. По ней будет выведена информация о имеющихся в наличии резервных копиях: какой хост был в работе, какое задание создало бэкап, сколько получилось точек восстановления (в нашем случае – одна) и в какое время.
Дважды нажимаем Enter, и выбранный бэкап монтируется на файловую систему нашего хоста в папку /mnt/backup:
Почему мы решили ограничиться этой операцией? Просто подумали, что у пользователей обычно есть свои предпочтения в работе с файлами, и ни к чему изобретать велосипед. Так что после того, как прошло монтирование, вы можете задействовать привычный для вас способ – например, командную строку или популярный Midnight Commander (mc):
Восстановление тома
Теперь рассмотрим, как выполняется восстановление тома целиком. Для начала выполняем загрузку машины с использованием Veeam Recovery Media (скачивается вместе с установочным пакетом решения Veeam Agent for Linux). Он запускается, используя файл ISO.
Veeam Recovery Media открывает нам графический интерфейс с вот таким набором команд:
Здесь есть возможность восстановления томов (Restore volumes), восстановления файлов (Restore files), настроек сети (Configure network), перехода к командной строке (Switch to command line), а также перезагрузки (Reboot) и выключения (Shutdown).
Если, как в нашем примере (и как рекомендовано!), бэкап хранится вовсе не на локальной машине, а на сетевой СХД, то нужно до начала процедуры восстановления убедиться в наличии доступа к месту хранения бэкапа, а в ходе самой процедуры — выполнить настройку параметров сети. Можно задать настройки вручную. Для этого:
- В данном меню выбираем пункт Configure network, затем выбираем в списке нужный сетевой адаптер, который будет использоваться для соединения с СХД, и жмем Enter.
В диалоге Configure adapter (настроить адаптер) выбираем Manual (ручная настройка) и жмем Enter.
В диалоге Adapter settings (параметры адаптера) указываем требуемое: IP-адрес, маску подсети, шлюз по умолчанию, сервер DNS
Кликаем Apply (применить) и жмём Enter.
Если вы работаете с сервером DHCP, то нужные настройки Veeam Agent for Linux сделает автоматически – если в диалоге Configure adapter выбрать Auto.
Продолжаем восстанавливать том: выбираем соответствующую операцию из списка команд — это Restore volumes.
Далее на шаге Select Backup Location нужно указать местонахождение нашего бэкапа. Для нашего примера нужно выбрать опцию добавления шары Add shared folder…
Затем на шаге Mount Shared Folder указываем, что у нас это NFS:
В поле Server/Directory вводим имя сетевой шары, в которой лежат файлы бэкапа. Veeam Agent for Linux смонтирует ее в папку /media на файловой системе нашего recovery image и отобразит содержимое смонтированного тома. На шаге Browse for Backup Files вы сможете выбрать нужную точку восстановления, чтобы импортировать ее:
Полезно: Если ваши бэкапы хранятся на одном из локальных устройств, то на шаге Select Backup Location вы, естественно, выберете опцию Mount local disk. При этом можно будет выполнять монтирование многократно — для нескольких устройств, на которых живут файлы резервных копий. Для этого нужно вернуться на шаг выбора местонахождения бэкапа Select Backup Location и опять выбрать опцию Mount local disk.
На шаге Backup выбираем нужный бэкап и в нём — точку восстановления.
Затем на шаге Disk Mapping можно просмотреть, какие тома имеются у машины в продакшене (то есть у локального хоста – Current System) и в бэкапе. Veeam Agent for Linux отобразит для выбранного тома подробную информацию, включая тип раздела, файловую систему, местоположение точки монтирования, размер тома, а также выведет список доступных команд:
- Restore volume from (восстановить том) – восстановить данный том из бэкапа.
Delete partition (удалить раздел) — позволяет переразметить диск перед восстановлением тома. После удаления раздела можно будет создать новый и замапить на него том из бэкапа.
[для восстановления томов LVM] Create LVM physical volume (создать физический том LVM)— создать физический том LVM на выбранном разделе и добавить его в уже существующую группу томов (volume group, VG), либо создать новую группу. Это позволит восстановить логические тома LVM или группы томов в выбранную VG.
Здесь мы выбираем Restore volume from и жмем Enter.
В панели Current system в поле Restore напротив выбранного тома появится имя того, с которого будем восстанавливаться:
Подтверждаем выбор (будьте внимательны, оплошность может дорого обойтись, поскольку данные будут перезаписаны теми, что в бэкапе!), нажимаем (Start restore).
Cмотрим краткую сводку, подтверждаем выбор ещё раз и наблюдаем за прогрессом:
После завершения процесса мы заканчиваем работу с Veeam Recovery Media:
- Нажимаем Esc для возврата в главное меню.
- Отключаем носитель с recovery image.
- В главном меню выбираем Reboot и жмем Enter.
- Ждем старта ОС.
Вот, в общем-то, и весь рассказ о том, как происходит восстановление с помощью Veeam Agent for Linux.
Источник
Veeam Recovery Media
Veeam Agent for Linux lets you use the Veeam Recovery Media — a recovery image of the Linux OS that provides an alternative way to boot your computer.
The recovery image includes a custom Linux OS with the limited functionality. It comprises Linux kernel and a set of GNU/Linux utilities necessary to boot the computer and perform basic administration tasks. If the OS installed on the computer fails to start for some reason, you can boot the recovery image OS. After booting, you can do the following:
- You can restore data from a backup to your computer. For this scenario, you must have a backup created with Veeam Agent for Linux .
- You can use Linux OS tools to diagnose problems and fix errors on your computer.
The recovery image can be helpful if one of the following errors occur:
- The OS on the computer fails to start.
- You want to perform bare metal restore from the backup on the computer without the OS and other software installed.
- You want to restore the system volume of the computer and so on.
Veeam Recovery Media is distributed as an ISO image. The ISO image file can be downloaded from this Veeam webpage . You can burn the ISO image file to different kinds of media:
- Removable storage devices such as USB drives or SD cards
- CD/DVD/BD
NOTE
Consider the following:
- You can also download the Veeam Recovery Media ISO image from the Veeam software repository . In addition to the regular recovery image, the repository offers a legacy recovery image intended for Veeam Agent computers that run an earlier version of Linux kernel with custom drivers. To learn more, see Veeam Recovery Media Versions .
- For information about how to burn the ISO image to a removable storage device, as well as workaround for accessing the Veeam recovery UI, see this Veeam KB article .
When you boot from the Veeam Recovery Media, you can use the recovery environment to fix the OS system errors on your computer or restore data from the backup. Veeam Agent for Linux offers a set of tools for the computer system image and data recovery:
- Restore volumes — the Veeam Recovery wizard to recover data on the original computer or perform bare metal recovery.
- Restore files — the File Level Restore wizard to restore files and folders to the original location or to a new location.
- Exit to shell — Linux shell prompt with standard utilities to diagnose problems and fix errors.
Источник