Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMIG and version 7.16

По умолчанию директории расположены по пути /opt.


Обязательно копируйте

директории

их с сохранением прав и владельцев. Для копирования используйте стандартные средства, например

утилиту 

утилиту rsync.

  • Убедитесь, что в разделе с директорией /var/lib/containerd доступно не менее 30 ГБ дискового пространства. 
    Чтобы проверить доступное дисковое пространство, используйте команду:

  • Sv translation
    languageru
    Предупреждение
    titleВажно!

    При обновлении с помощью сброса установки происходит повторная массовая загрузка данных в OLAP-СУБД Clickhouse, которая является частью Платформы. Этот процесс может занимать длительное время. В Центре расследований могут временно не отображаться события.

    Обновление с помощью сброса установки состоит из следующих шагов:

    1. Сброс установки с помощью нового инсталлятора. При сбросе данные Системы не будут удалены.
    2. Установка новой версии Платформы с указанием уже имеющихся папок с данными.
    Информация
    titleПримечание:

    Если вы используете удаленное подключение по протоколу SSH, чтобы избежать проблем в случае разрыва соединения с сервером, рекомендуем использовать утилиту Screen. При отключении от утилиты запущенные в ней процессы не прервутся, что позволит безопасно продолжить обновление.

    Чтобы обновить Платформу:

    1. Выполните шаги по подготовке сервера к обновлению (см. Подготовка сервера).

    2. Создайте новую директорию на диске (например, platform):

      Блок кода
      mkdir platform
    3. Скопируйте архив iw_platform.tar.xz в созданную директорию.
    4. Перейдите в директорию, в которую был скопирован архив.
    5. Распакуйте архив с дистрибутивом в эту директорию:

      Блок кода
      tar -xvf iw_platform.tar.xz
    6. До сброса установки запомните или сохраните пути к текущим директориям хранения данных. Получить список директорий можно с помощью команды:

      Блок кода
      cat /var/lib/iwplatform/data/volumes.txt
    7. Выполните сброс текущей установки с помощью инсталлятора новой версии:

      Блок кода
      ./setup.py reset
    8. Дождитесь окончания процесса сброса установки Платформы.
    9. Перезагрузите сервер с помощью команды:

      Блок кода
      reboot
    10. В Платформе 2.1 и более ранних директории по умолчанию расположены по пути /mnt.
      В Платформе 2.2 и более новых – по умолчанию

      Если вы обновляетесь с переходом на другой сервер или на новую ОС, скопируйте на другой раздел или на новый сервер директории с данными, которые были указаны при установке.

    Информация
    titleПримечание:
    Блок кода
    df -h /var/lib/containerd
    Информация
    titleПримечание:

    Чтобы освободить дисковое пространство, вы можете удалить директорию с образами контейнеров прошлых версий /var/lib/containerd. Для этого выполните команду:

    Блок кода
    rm -rf /var/lib/containerd

    Данная команда удаляет все образы контейнеров. Не используйте ее, если на сервер уже установлены новые версии Платформы или платформенных продуктов InfoWatch.

  • Установите новую версию Платформы (см. Установка Платформы).

    Предупреждение
    titleВажно!

    Когда инсталлятор потребует указать директории для размещения данных, указывайте директории с данными прошлой версии и выбирайте «n» при ответе на вопрос «Очищать ли папки перед установкой?»

    Если ранее вы использовали пути /mnt, при установке Платформы 2.2 и более новых по умолчанию инсталлятор не обнаружит данные прошлой версии и создаст По умолчанию инсталлятор создает директории по пути /opt. Поэтому переместите данные в /opt, используя стандартные средства, например, утилиту rsync, или укажите старые директории Если до обновления вы использовали другой путь, то при установке новой версии рекомендуется указывать старые директории. О том, как посмотреть их список, см. шаг 6.

  • Если после обновления вам нужно освободить место на диске, вы можете удалить неиспользуемые контейнеры Docker или Containerd. Подробнее см. в статье Как удалить неиспользуемые контейнеры Docker и Containerd?.
  • By default, the directories are located in /opt. Be sure to preserve rights and owners when copying the directories. For copying, use standard tools,

    for example, the rsync utility

    such as the rsync utility.

  • Make sure that the section with the directory /var/lib/containerd has at least 30 GB of free space. 
    To view available space, run the command:

  • Sv translation
    languageen
    Предупреждение
    titleImportant!

    When updating by resetting the installation, large amounts of data are reloaded into the ClickHouse OLAP DBMS, which is part of the Platform. This process may take a long time. In the Investigation Centre, events may temporarily not be displayed.

    Updating using reset consists of the following steps:

    1. Resetting the installation using the new installer. Resetting the installation does not delete the System data.
    2. Installing new version of Platform and specifying already existing folders with data.
    Информация
    titleNote:

    If you connect remotely via SSH, we recommend using the Screen utility to avoid problems in case of a lost connection with the server. When disconnecting from the utility, all the processes started are not to be interrupted and you may safely continue the update.

    To update Platform:

    1. Follow the steps to prepare the server for the update (see Подготовка сервера).

    2. Create a new directory on the disk (e.g. platform):

      Блок кода
      mkdir platform
    3. Copy the iw_platform.tar.xz archive to the created directory.
    4. Open the directory to which you have copied the archive.
    5. Unpack the archive with the distribution kit to this directory:

      Блок кода
      tar -xvf iw_platform.tar.xz
    6. Before reseting the installation, remember the current directories where your data are stored. You can get the list of these directories with the command:

      Блок кода
      cat /var/lib/iwplatform/data/volumes.txt
    7. Reset the current installation using the new installer:

      Блок кода
      ./setup.py reset
    8. Wait until the Platform reset is complete.
    9. Reboot the server using the command: 

      Блок кода
      reboot
    10. In Platform version 2.1 and earlier the directories are placed in the path /mnt by default.
      In Platform version 2.2 and later in the path /opt by default.
      When you copy directories, make sure that rights and owners are preserved

      If you update and switch to a new server or a new OS, copy directories with the data that were specified during installation and paste them to another partition or to a new server.

    Информация
    titleNote:
    Блок кода
    df -h /var/lib/containerd
    Информация
    titleNote:

    To free up some disk space, you can delete the directory with container images of previous versions /var/lib/containerd. For this, run the command:

    Блок кода
    rm -rf /var/lib/containerd

    This command deletes all container images. Do not use it, if you have already installed new versions of Platform or InfoWatch products based on Platform.

  • Install the new version of Platform (see Установка Платформы).

    Предупреждение
    titleImportant!

    During the installation, specify existing directories to place the data. When the System asks you if you want to clear up folders before the installation, select "n".If in the past

    you used the /mnt path, then during the installation of Platform version 2.2 and later the installer will not find the data from the previous version and will create the directories in the /opt path. That is why you need to move your data to /opt or specify your old directories during the installation. For moving, use standard tools, such as the rsync utilityBy default, the installer creates directories in /opt. If, before the update, you used another path, then it is recommended to specify the old directories when installing a new version. On how to view the list of them, see step 6.

  • If after the update you need to free up some space on your disk, then you can delete unused containers, docker or containerd. For details, see the article How to Delete Unused Docker and Containerd containers?.