| Sv translation | ||
|---|---|---|
| ||
Чтобы освободить пространство на жестком диске, вы можете архивировать устаревшие ежедневные табличные пространства Процесс архивирования состоит из отключения ежедневных табличных пространств (ЕТП) . Для этого необходимо отключить ЕТП от базы данных (БД) и перенести их на другой носитель информации. При необходимости они их перемещения в заданный каталог (по умолчанию Архивирование может выполнятьсяВ Системе есть следующие способы архивирования ЕТП:
Предупреждение | | |
|
| Блок кода |
|---|
mkdir -p /mnt/slowdisk mount /dev/<your_slowdisk> /mnt/slowdisk |
Назначьте пользователя и права доступа для директории, в которую смонтировали медленный диск:
| Блок кода |
|---|
chown 1000 /mnt/slowdisk chmod 700 /mnt/slowdisk |
Откройте деплоймент Data Storage для редактирования с помощью команды:
| Блок кода |
|---|
kubectl -n infowatch edit deployment datastorage-<node_label> |
где <node_label> – здесь и далее это лейбл ноды, на которой установлено хранилище. Для центральной ноды кластера или, если хранилище установлено не в кластере платформенных продуктов, используйте лейбл central. Для офисной ноды лейбл задается при установке, по умолчанию: office.
В секцию containers -> volumeMounts добавьте следующие строки:
| Блок кода |
|---|
- mountPath: /var/lib/dataslow
name: datastorage-dataslow-host-volume-<node_label> |
В секцию volumes добавьте следующие строки:
| Блок кода |
|---|
- hostPath:
path: /mnt/slowdisk
type: ""
name: datastorage-dataslow-host-volume-<node_label> |
/mnt/dsdata/_seaweedfs- .
| Sv translation | ||
|---|---|---|
| ||
To free up disk space on your hard drive, you can archive outdated daily tablespaces (DTS). For this, you need to disconnect DTS from the database and move them to another external storage device. You can recover Archiving process consists of disconnecting DTS from the database and moving them to the specified catalogue (by default: The archiving can be performedIn the System, there are following ways of archiving DTS: title
Предупреждение | | Warning! |
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. |
| Блок кода |
|---|
mkdir -p /mnt/slowdisk mount /dev/<your_slowdisk> /mnt/slowdisk |
Set a user and access permissions for the directory, where you have mounted the slow disk:
| Блок кода |
|---|
chown 1000 /mnt/slowdisk chmod 700 /mnt/slowdisk |
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).
Add the following lines to the containers -> volumeMounts section:
| Блок кода |
|---|
- mountPath: /var/lib/dataslow
name: datastorage-dataslow-host-volume-<node_label> |
Add the following lines to the volumes section:
| Блок кода |
|---|
- hostPath:
path: /mnt/slowdisk
type: ""
name: datastorage-dataslow-host-volume-<node_label> |
/mnt/dsdata/_seaweedfs directory- .