| Предупреждение |
|---|
| After updating to version 2.2, only the data from the last completed scans will remain, and the data from previous scans will be deleted. To update a distributed Investigation Centre cluster: - Update the central node of the cluster and all products that are installed on this node.
Update office nodes and all products that are installed on them.
|
If you are using a remote connection via SSH protocol, we recommend using the Screen utility to avoid problems if the connection to the server is lost. If you disconnect from the utility, the processes running in it will not be interrupted, which will allow you to continue the update safely. To update | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| : - Stop all scanning tasks in the
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| web interface. Prepare the server for the update (see Подготовка сервера).
Create a new directory on the disk (for example, distr_discovery):
| Блок кода |
|---|
mkdir distr_discovery |
- Copy the
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_setup package |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
|
_2.2.X.xxx.tar.xz archive to the created directory. Here, we are using version 2.2.0.191, so the archive name is| Multiexcerpt include |
|---|
| MultiExcerptName | DD_setup package |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
|
_2.2.0.191.tar.xz. - Open the directory to which you have copied the archive.
Unpack the archive with the distribution kit to this directory: | Блок кода |
|---|
tar -xvf iw_discovery_setup_2.2.0.191.tar.xz |
Make sure that the section with the /var/lib/containerd directory contains 50 GB or more of disk space. To check the volume of available disk space, use the command:
| Блок кода |
|---|
df -h /var/lib/containerd |
| Информация |
|---|
| | Раскрыть |
|---|
| title | To free up disk space, you can delete unused container images of the previous versions. |
|---|
| Do not remove containers of the currently installed version. Note that the commands below will remove all versions of containers except the one specified. To do this, complete the following steps: Create a file /etc/crictl.yaml or add the following content to it: | Блок кода |
|---|
runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 2
pull-image-on-create: false
disable-pull-on-run: false |
Complete the commands: To delete the Platform containers (where х.х.х.х is a version of a currently installed Platform): | Блок кода |
|---|
crictl rmi $(crictl image | awk '($2 !~ /х.х.х.х|latest/ && $1 ~ /docker.infowatch.ru\/platform-core-release/ && $1 !~ /flannel/) {print $3}') |
To delete | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| containers (where x.x.x.x is a version of a currently installed | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| ):| Блок кода |
|---|
crictl rmi $(crictl image | awk '($2 !~ /x.x.x.x|latest/ && $1 ~ /docker.infowatch.ru\/discovery/) {print $3}') |
To delete Docker containers: | Блок кода |
|---|
rm -rf /var/lib/docker |
|
|
During the update, ClickHouse data migration will require disk space in addition to the space allocated for the installer operation and for the transition to the new version. Once the update is complete, the additional space will be freed. | Раскрыть |
|---|
| title | To determine the amount of additional space: |
|---|
| On the node with | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| in the central mode, run the following command to connect to ClickHouse:
| Блок кода |
|---|
| kubectl exec --stdin --tty -n infowatch deploy/clickhouse-central -- clickhouse-client -d discovery --user discovery --password $(kubectl get secret discoperator-discovery-central-db-secret -n infowatch -o jsonpath='{.data.service_ch_password}' | base64 --decode) |
To get the size of the data tables, run the following request: | Блок кода |
|---|
| SELECT
name,
formatReadableQuantity(total_rows) AS rows,
formatReadableSize(total_bytes) AS size
FROM system.tables
WHERE database = 'discovery' |
The request will display the table names (name) with the number of rows (rows) and the total size (size).
Image Added - To determine the required additional space, select the highest value from the following:
|
| Информация |
|---|
| Note that data migration will require additional time during the update process. The more data in the tables, the longer the migration will take. For example, migrating 100 million records will take approximately 12 minutes of additional time. |
Run the updater: | Блок кода |
|---|
./setup.py update |
| Предупреждение |
|---|
| Files metadata left within the storage after scanning tasks deletion will be also deleted when upgrading to version 2.0. During the update, products that are already installed on the server may be unavailable. |
- Specify the path to temporarily place
| Multiexcerpt include |
|---|
| MultiExcerptName | TM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| events before uploading them to the Platform (by default, /opt/factsldrtmdata) and press Enter. - Wait for the
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| update to complete. After the update, the installer will automatically delete image containers of previous versions. Make sure that all services are running. To do this, run the command:
| Блок кода |
|---|
kubectl get pods -n infowatch |
The command will display the list of services. Each service should have the status Running. For | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| to work, you need to update the settings of the inotify subsystem in the OS. To do this: Check if the /etc/sysctl.d/discovery.conf configuration file with the following content is available: | Блок кода |
|---|
| fs.inotify.max_user_instances = 32768
fs.inotify.max_user_watches = 32768
fs.inotify.max_queued_events = 262144 |
If the configuration file is available, skip the next two steps in the instructions. If the file was not created by the installer scripts earlier, create it and add the content from the previous step. To apply the new subsystem settings, run the following command: | Блок кода |
|---|
sysctl --load=/etc/sysctl.d/discovery.conf |
To display information about the Platform and products in the cluster, run the command:
| Блок кода |
|---|
./setup.py showproducts |
The command will output information about all servers of the cluster. - If there are other products installed on the server, update them to versions that are compatible with
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| 2.2 (see Типы установки и обновления, совместимость с другими продуктами, аппаратные и программные требования). If | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| is installed in a distributed cluster, update the Platform and products on other servers to versions that are compatible with | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| 2.2.
- Clear the cache of the browser you were using before updating the product.
The Investigation Centre web interface is available at the Platform central node address.
| Информация |
|---|
| If in the cluster with | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| 2.2 installed the Platform was updated to version 2.5, then restart the contentbroker service to reconnect it to the database.| Раскрыть |
|---|
| On any | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| node, run the restart command:| Блок кода |
|---|
kubectl -n infowatch rollout restart deployment/contentbroker-central |
Check the service status with the command: | Блок кода |
|---|
kubectl -n infowatch rollout status deployment/contentbroker-central |
|
|
|