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

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

Ключ

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

Чтобы освободить пространство на жестком диске, вы можете архивировать устаревшие ежедневные табличные пространства (ЕТП). Процесс архивирования состоит из отключения ЕТП от базы данных и их переноса в заданный каталог (по умолчанию /u02/arch). При необходимости они могут быть восстановлены.

Архивирование может выполняться:

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

Если в качестве интервала времени используются месяцы или годы, то рекомендуется в расчете использовать максимальное значение интервала. Для месяца – 31 день. Для года – 366 дней. Например, чтобы архивировать ежедневные табличные пространства старше 4 лет, указывайте интервал 366*4=1464 дня.

Если вы используете Data Storage, то вы можете хранить архивированные ЕТП на медленном диске. Путь к этому диску указывается при установке Data Storage. Подробнее см. InfoWatch Traffic Monitor. Руководство по установке. Установка Платформы.
После установки вы можете добавить путь к медленному диску Data Storage следующим образом:

  1. Создайте директорию и смонтируйте в нее медленный диск:

    Блок кода
    mkdir -p /mnt/slowdisk
    mount /dev/<your_slowdisk> /mnt/slowdisk
  2. Назначьте пользователя и права доступа для директории, в которую смонтировали медленный диск:

    Блок кода
    chown 1000 /mnt/slowdisk
    chmod 700 /mnt/slowdisk
  3. Откройте деплоймент Data Storage для редактирования с помощью команды:

    Блок кода
    kubectl -n infowatch edit deployment datastorage-<node_label>

    где <node_label> – здесь и далее это лейбл ноды, на которой установлено хранилище. Для центральной ноды кластера или, если хранилище установлено не в кластере платформенных продуктов, используйте лейбл central. Для офисной ноды лейбл задается при установке, по умолчанию: office.

  4. В секцию containers -> volumeMounts добавьте следующие строки:

    Блок кода
          - mountPath: /var/lib/dataslow           
            name: datastorage-dataslow-host-volume-<node_label>
  5. В секцию volumes добавьте следующие строки:

    Блок кода
          - hostPath:
              path: /mnt/slowdisk
              type: ""
            name: datastorage-dataslow-host-volume-<node_label> 
  6. Сохраните изменения и выйдите из редактора.

Если медленный диск не подключен, то в Консоли Управления Traffic Monitor при архивации ЕТП будет указан статус "Архивировано". При этом в Data Storage ЕТП будет хранится на быстром диске в директории /mnt/dsdata/_seaweedfs.

Sv translation
languageen

To free up disk space on your hard drive, you can archive outdated daily tablespaces (DTS). Archiving process consists of disconnecting DTS from the database and moving them to the specified catalogue (be default:/u02/arch). You can recover this data if necessary.

The archiving can be performed:

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

If months or years are used as the time interval, we recommend using the maximum value of the interval in calculations. For a month – 31 days. For a year – 366 days. For example, to archive daily tablespaces older than 4 years, specify the interval 366 * 4 = 1464 days.

If you use Data Storage, then you can store archived DTS on a slow disk. You can specify the path to this disk when installing Data Storage. For details, see InfoWatch Traffic Monitor. Installation Guide. Installing Platform.
After installation, you can add the path to the Data Storage slow disk in the following way:

  1. Create a directory and mount the slow disk to it:

    Блок кода
    mkdir -p /mnt/slowdisk
    mount /dev/<your_slowdisk> /mnt/slowdisk
  2. Set a user and access permissions for the directory, where you have mounted the slow disk:

    Блок кода
    chown 1000 /mnt/slowdisk
    chmod 700 /mnt/slowdisk
  3. Open the Data Storage deployment for editing. For this use the command:

    Блок кода
    kubectl -n infowatch edit deployment datastorage-<node_label>

    where <node_label> (hereafter) is the label of the node where the storage is installed. For the central node or, if the storage is installed not in the cluster of Platform products, use the label central. For the office node, the label is specified during installation (office by default).

  4. Add the following lines to the containers -> volumeMounts section:

    Блок кода
          - mountPath: /var/lib/dataslow           
            name: datastorage-dataslow-host-volume-<node_label>
  5. Add the following lines to the volumes section:

    Блок кода
          - hostPath:
              path: /mnt/slowdisk
              type: ""
            name: datastorage-dataslow-host-volume-<node_label>  
  6. Save the changes and exit the editor.

If the slow disk is not connected, then, in Traffic Monitor Management Console, archived daily tablespace will have the "Archived" status. In this case, on the Data Storage server, daily tablespace will be stored on the fast disk, in the /mnt/dsdata/_seaweedfs directory.