| Sv translation | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Во время обновления сервера Traffic Monitor конфигурационные файлы (например, с расширениями .conf, .cfg и .lua), которые были изменены во время использования предыдущей версии, не перезаписываются новыми. В тех же директориях создаются новые файлы с теми же названиями, но с расширением .rpmnew. Это сделано для того, чтобы поддержать возможность изменения структуры файлов новых версий. Для корректной работы Системы потребуется объединить файлы старой и новой версий.
Используйте любой из приведенных ниже способов объединения файлов. Автоматическое объединение (merge) конфигурационных файлов Traffic Monitor
Для запуска процесса понадобится пакет В нашем примере:
Чтобы запустить автоматическое объединение конфигурационных файлов Traffic Monitor:
|
| Информация | ||
|---|---|---|
| ||
Чтобы просмотреть файл, нажмите F3, чтобы отредактировать - F4. |
Файл postgresql.conf имеет вид:
Файл postgresql.conf.rpmnew имеет вид:
Для объединения требуется перенести данные из секций файла postgresql.conf в соответствующие секции файла postgresql.conf.rpmnew. Для этого:
| Multiexcerpt | |||||
|---|---|---|---|---|---|
| |||||
|
Объединение конфигурационных файлов с помощью vimdiff
Для работы с vimdiff на сервере должен установлен текстовый редактор vim.
Рассмотрим объединение на примере файлов user.lua и user.lua.rpmnew. После обновления (при условии, если в штатный файл user.lua вносились изменения) появится файл user.lua.rpmnew. Необходимо корректно перенести все установленные ранее значения параметров и настроек из user.lua в user.lua.rpmnew. Для этого:
- Перейдите в директорию
/opt/iw/tm5/etc/config/lua/scripts/ - Введите в командной строке:
vimdiff user.lua.rpmnew user.lua - Перейдите в режим редактирования (клавиша Insert).
- Вручную перенесите различающиеся значения параметров из user.lua в user.lua.rpmnew.
- Выйдите из режима редактирования (клавиша Esc).
- Сохраните изменения в файле user.lua.rpmnew и выйдите из редактора (введите :wq).
- Закройте уже не актуальный файл user.lua (введите :q).
- Удалите файл user.lua.
- Переименуйте файл user.lua.rpmnew в user.lua.
| Предупреждение | ||
|---|---|---|
| ||
Чтобы избежать потери данных и ошибок в работе Системы (конфигурационные файлы серверной части Traffic Monitor), необходимо внимательно следовать инструкциям. В случае возникновения трудностей при объединении конфигурационных файлов рекомендуется обратиться в службу технической поддержки компании InfoWatch по адресу support@infowatch.com. Службы технической поддержки – с 7:00 до 21:00 по московскому времени с понедельника по |
| Предупреждение | ||
|---|---|---|
| ||
Во избежание некорректной работы Системы не стоит объединять следующие файлы с файлами из старых версий:
|
| Sv translation | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
During the update of Traffic Monitor server configuration files (e.g, with .conf, .cfg, and .lua extensions) that were modified when using the previous version, cannot be overwritten with the new files. The new files are created in the same directories and with the same names, but with .rpmnew extension respectively. This is done to support the ability to change the structure of new file versions. For correct operation of the System it is required merging files of an old and a new version.
You can use any method of file merging type described below. Automatic merge of Traffic Monitor configuration files
To start the process, you will need the In our example: Информация | | ||||||||||
|
| Информация | ||
|---|---|---|
| ||
To find the required package, use the command:
If the For this:
|
To start automatic merging of Traffic Monitor configuration files:
- Find out which version of Traffic Monitor is installed. For this, enter the command:
cat /opt/iw/tm5/version - Go to the directory, to which the
iwtm-config-merge-tools-x.x.x.xxx-release.x86_64.rpmpackage was copied.
In our example, the command is as follows:cd /tmp/rootiw_distr - To install the package, run the command:
rpm -i iwtm-config-merge-tools-x.x.x.xxx-release.x86_64.rpmIn our example, the command is as follows:
rpm -i iwtm-config-merge-tools-7.1.0.250-release.x86_64.rpm To run the script, use the command:
/opt/iw/tm5/bin/config/config_merge/scripts/run_merge.sh -cv <current_version> -nv <new_version> -b <directory_for_backup>In our example, the command is as follows:
/opt/iw/tm5/bin/config/config_merge/scripts/run_merge.sh -cv 6.10.10.123 -nv 7.1.0.250 -bИнформация title Note: If you do not specify a directory for the backup, the
/opt/iw/tm5/directory is used by default.
| Информация | ||
|---|---|---|
| ||
If you receive error messages, fix the errors and the script again or merge configuration files manually. |
Merging configuration files in Midnight Commander
Let's consider an example to merge postgresql.conf and postgresql.conf.rpmnew files.
| Подсказка | ||
|---|---|---|
| ||
To view the file content, press F3. For editing, press F4. |
The postgresql.conf file looks like:
The postgresql.conf.rpmnew file looks like:
To merge these files, you need to copy data from sections of the postgresql.conf file to the corresponding sections of the postgresql.conf.rpmnew file. For this:
| Multiexcerpt | |||||
|---|---|---|---|---|---|
| |||||
|
Merging configuration files by means of vimdiff
To work with vimdiff the editor Vim should be installed on a server.
Let's consider an example of merging user.lua and user.lua.rpmnew files. After the update, the user.lua. rpmnew file appears (if the original user.lua file has been changed). You should copy all earlier specified values of parameters and settings from user.lua to user.lua.rpmnew. To do this:
- Go to
/opt/iw/tm5/etc/scriptsdirectory. - In the command line, enter:
vimdiff user.lua.rpmnew user.lua - Go into edit mode (Insert key).
- If parameter values are different, copy the values from user.lua to user.lua.rpmnew manually.
- Exitthe edit mode (Esc key).
- Save the changes within user.lua.rpmnew and exit the editor (input :wq)
- Close the file user.lua as moot (input :q).
- Rename user.lua.rpmnew to user.lua.
| Предупреждение | ||
|---|---|---|
| ||
To avoid data loss and System errors (Traffic Monitor server part configuration files) it is required to follow the instructions. In case of any trouble while merging the configuration files you are recommended contacting InfoWatch service desk via support@infowatch.com. The service desk is available from 7 AM till 9 PM Moscow time, from Monday to Friday, except weekends and public holidays. You can also find the required info on http://www.infowatch.com/support. |
| Предупреждение | ||
|---|---|---|
| ||
To avoid System's improper operation you should avoid merging the following files with the files from older versions:
|




