Wiki source code of hdd

Version 1.1 by strixadmin on 2025/07/07 14:35

Hide last authors
strixadmin 1.1 1
2
3 (% style="line-height:1.2; margin-top:19px; margin-bottom:5px" %)
4 (% style="font-size: 28pt; font-variant: normal; white-space: pre-wrap; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Общая схема работы архива
5
6 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
7 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)После установки СтриксВид начинает записывать архив в папку по умолчанию — это директория (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Roboto, sans-serif; color: rgb(68, 71, 70); background-color: rgb(255, 255, 255); font-weight: 400; font-style: normal; text-decoration: none" %)/ms-storage(% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %), которая расположена на системном диске сервера.
8
9 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
10 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Если вы ничего не меняете, то видеоархив будет записываться прямо в системный раздел. Это не рекомендуется, так как при длительной работе архив может заполнить диск и повредить работу всей системы.
11
12 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
13 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)СтриксВид по умолчанию ограничивает использование архивных дисков до 95%.  Если один из дисков превышает этот предел, запись на него приостанавливается. При переполнении всех архивных дисков стример каждый час автоматически удаляет один час самого старого архива, чтобы освободить место и продолжает запись новых фрагментов.
14
15 (% style="line-height:1.295; margin-top:19px; margin-bottom:5px" %)
16 = (% style="font-size: 20pt; font-variant: normal; white-space: pre-wrap; font-family: Calibri, sans-serif; color: rgb(47, 84, 150); font-weight: 400; font-style: normal; text-decoration: none" %)Как правильно настроить хранение архива на отдельном диске?(%%) =
17
18 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
19 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Чтобы СтриксВид не записывал архив на системный раздел сервера, а использовал отдельный диск, необходимо сделать несколько подготовительных шагов, которые выполняются средствами Linux:
20
21 1. (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Подключите дополнительный диск к серверу.(%%)
22 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Убедитесь, что система его распознает как новое устройство хранения (используется команда lsblk).
23
24 (% style="line-height:1.295; margin-left:48px; margin-top:16px; margin-bottom:16px" %)
25 (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Roboto, sans-serif; color: rgb(68, 71, 70); font-weight: 400; font-style: normal; text-decoration: none" %)lsblk
26
27 (% start="2" %)
28 1. (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Подготовьте диск для использования.(%%)
29 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Если диск новый, его нужно отформатировать (обычно файловая система ext4, используется команда mkfs).
30
31 (% style="line-height:1.295; margin-left:48px; margin-top:16px; margin-bottom:16px" %)
32 (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Roboto, sans-serif; color: rgb(68, 71, 70); font-weight: 400; font-style: normal; text-decoration: none" %)sudo mkfs.ext4 /dev/sdX
33
34 (% start="3" %)
35 1. (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Создайте отдельную папку внутри каталога (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Roboto, sans-serif; color: rgb(68, 71, 70); background-color: rgb(255, 255, 255); font-weight: 400; font-style: normal; text-decoration: none" %)/ms-storage(% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %).(%%)
36 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Это будет точка, куда вы подключите диск (используется команда mkdir). Название папки может быть любым, но важно, чтобы она располагалась внутри каталога (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Roboto, sans-serif; color: rgb(68, 71, 70); background-color: rgb(255, 255, 255); font-weight: 400; font-style: normal; text-decoration: none" %)/ms-storage(% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %).
37
38 (% style="line-height:1.295; margin-left:48px; margin-top:16px; margin-bottom:16px" %)
39 (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Roboto, sans-serif; color: rgb(68, 71, 70); font-weight: 400; font-style: normal; text-decoration: none" %)sudo mkdir -p /ms-storage/sdX
40
41 (% style="line-height:1.295; margin-left:48px; margin-top:16px; margin-bottom:16px" %)
42 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Проверить созданные директории можно командой(%%)
43 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)ls -lh /ms-storage/(%%)
44 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)ответ команды будет примерно таким(%%)
45 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(152, 0, 0); font-weight: 400; font-style: normal; text-decoration: none; border: none; display: inline-block; overflow: hidden; width: 567px; height: 167px" %)[[image:https://lh7-rt.googleusercontent.com/docsz/AD_4nXczAbdN_lVw_EfYyIftEwRi2i0IwPAlheNKVrmCnmSYcwXSgcCL-pcYdgJwYo90zQ50Wz4RnlG9QrUcrPyRK8rzG8EfUPrzG3x1xtJUqQn4znlxtOjNM9gPzSHHFwn9Mxg2BYvqx_leMaRsLrcGlg?key=lmBLbzQtLVx5XLLfcUWK-g||height="167" width="567"]]
46
47
48 (% start="4" %)
49 1. (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Настройте автоматическое подключение диска при перезагрузке.(%%)
50 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Это позволяет диску автоматически монтироваться в нужную папку при каждом запуске системы. Для этого нужно определить уникальный идентификатор диска (blkid) и зарегистрировать его в системной конфигурации автоподключения (fstab).
51
52
53 (% start="5" %)
54 1. (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Проверьте, что диск подключён и готов к записи.(%%)
55 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Убедитесь, что система видит диск (df) и что в нужной папке есть права на запись для службы СтриксВид (chown).
56 1. (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Укажите стримеру, где теперь хранить архив.(%%)
57 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Откройте боковое меню в веб-интерфейсе, нажмите на  «Сервер» → вкладка «Настройки сервера». В блоке «Жёсткие диски» укажите путь к новой папке. Каждый путь отделяется запятой.
58
59 (% style="line-height:1.295; margin-left:48px; margin-top:16px; margin-bottom:16px" %)
60 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none; border: none; display: inline-block; overflow: hidden; width: 567px; height: 113px" %)[[image:https://lh7-rt.googleusercontent.com/docsz/AD_4nXegKX-mp890flfbZbCrfMkRMo_DVXBe5JcO-6m9G7C5E7M0CwiNrFp18B21XfeodscPtfwkPGaKxPKd9dZAyhBL3VWdLuh-J-rkuY1K_rMRrdTOzrPHXPgZTOS-SolhmCvuF21386Ne3x3JYTFGcQ?key=lmBLbzQtLVx5XLLfcUWK-g||height="113" width="567"]](%%)
61 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Если вы не хотите использовать системный раздел для хранения архива, удалите папку system из списка путей хранения. После сохранения настроек архив начнёт записываться на указанные диски.(%%)
62
63
64
65 \\\\
66
67 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
68 = (% style="font-size: 20pt; font-variant: normal; white-space: pre-wrap; font-family: Calibri, sans-serif; color: rgb(47, 84, 150); font-weight: 400; font-style: normal; text-decoration: none" %)Как работает СтриксВид при заполнении хранилища?(%%)
69 =
70
71 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
72 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Чтобы изменить лимит заполнения архивных дисков, откройте веб-интерфейс СтриксВид, перейдите в боковое меню → раздел «Сервер» → вкладка «Настройки сервера». В блоке «Жёсткие диски» найдите поле «Максимальная загрузка архивных дисков (в процентах)» и укажите нужное значение.
73
74 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
75 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)По умолчанию установлено 95%, и мы рекомендуем не увеличивать этот показатель, чтобы избежать риска переполнения.
76
77 (% style="line-height:1.295; margin-top:16px; margin-bottom:16px" %)
78 (% style="font-size: 12pt; font-variant: normal; white-space: pre-wrap; font-family: ~"Times New Roman~", serif; color: rgb(0, 0, 0); font-weight: 700; font-style: italic; text-decoration: none" %)**//Если в список архивных путей включен системный раздел, категорически не рекомендуется устанавливать значение 100% — это может привести к полному заполнению корневого диска и нарушению работы всей системы.//**
79
80