Архив записей, раздела 'Linux'

microk8s disk consumption

написано 12 февраля, 2025 - запись из раздела k8s, Linux | Комментировать

24G /var/snap/microk8s/common/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots add this strings to /var/snap/microk8s/current/args/kubelet —image-gc-high-threshold=50 —image-gc-low-threshold=40 —maximum-dead-containers=0 and restart snap restart microk8s and you will see 9.1G /var/snap/microk8s/common/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots

Читать дальше..>>

OpenVPN: Real Speedup [DCO]

написано 30 января, 2025 - запись из раздела Linux, vpn | Комментировать

We have a test bench of two servers, connected with physical 10G ports Let’s see what iperf3 will show [ 5] 0.00-1.00 sec 1.08 GBytes 9.29 Gbits/sec [ 5] 1.00-2.00 sec 1.08 GBytes 9.30 Gbits/sec [ 5] 2.00-3.00 sec 1.08 GBytes 9.29 Gbits/sec Now let’s put OpenVPN between those two and repeat iperf3 [ 5] […]

Читать дальше..>>

HPE Smart Array E208i-a SR Gen10 firmware update

написано 24 октября, 2024 - запись из раздела Linux | Комментировать

No drives were found in this system.You may need to reboot You can obtain an rpm package here: https://downloads.linux.hpe.com/SDR/repo/spp-gen10/redhat/8/x86_64/current/ If you use RedHat based distro just install the rpm, otherwise extract it: rpm2cpio firmware-smartarray-f7c07bdbbd-4.11-1.1.x86_64.rpm | cpio -idmv and run an update process: ./usr/lib/x86_64-linux-gnu/firmware-smartarray-f7c07bdbbd-4.11-1.1/setup Supplemental Update / Online ROM Flash Component for Linux (x64) — HPE […]

Читать дальше..>>

Sentry: All events is empty

написано 25 марта, 2024 - запись из раздела Linux, Nginx | Комментировать

If you have a nginx revers proxy on your self-hosted Sentry you can get an issue with empty «All events» this can be fixed by adding to nginx config proxy_buffer_size 128k; proxy_buffers 16 256k; if you need a complete config, here it is:

Читать дальше..>>

ProxMox migration fails: Host key verification failed.

написано 22 марта, 2024 - запись из раздела Linux, Proxmox VE | Комментировать

If you get an error, on migrating VM from one ProxMox to another, like this: # /usr/bin/ssh -e none -o ‘BatchMode=yes’ -o ‘HostKeyAlias=pve-n23’ root@10.10.10.10 /bin/true Host key verification failed. ERROR: migration aborted (duration 00:00:01): Can’t connect to destination address using public key TASK ERROR: migration aborted And you have FreeIPA installed on proxmoxes, you can […]

Читать дальше..>>

LVM resize HOWTO

написано 15 марта, 2024 - запись из раздела Linux | Комментировать

We have an virtual machine with 165Gb disk, and added extra 10Gb. Now we need to extend filesystem inside a VM lets check trat extra 10Gb is available in VM # fdisk -l /dev/sdb Disk /dev/sdb: 175.2 GiB, 187924742144 bytes, 367040512 sectors Checkout the physical volume size, it’s 165Gbyte # pvdisplay — Physical volume — […]

Читать дальше..>>

FreeIPA WebUI login fails

написано 18 января, 2024 - запись из раздела Linux | Комментировать

runing ‘kinit’ in console gives an error like: Received error from KDC: -1765328382/Server’s entry in database has expired kinit: Server’s entry in database has expired while getting initial credentials enter to console admin kadmin.local kadmin.local: getprinc krbtgt/DOMAIN.COM You may see that expiration date passed Expiration date: Tue Dec 31 23:59:59 MSK 2023 Set a new […]

Читать дальше..>>

HP Proliant Gen9 G9 DMAR error

написано 23 ноября, 2023 - запись из раздела Hardware, Linux | Комментировать

If you getting an error like this in dmesg on your linux and the physical server is a kind of HP Proliant G9 (Gen9) DMAR: [DMA Write NO_PASID] Request device [04:00.0] fault addr 0x791f4000 [fault reason 0x05] PTE Write access is not set DMAR: DRHD: handling fault status reg 402 You can just ignore it […]

Читать дальше..>>

FreeIPA allow queries from other networks

написано 11 сентября, 2023 - запись из раздела Linux | Комментировать

Add to /etc/named/ipa-ext.conf acl "trusted_network" { localnets; localhost; 10.222.0.0/23; 195.222.111.0/24; }; Where 10.222.0.0/23 and 195.222.111.0/24 not direct attached networks Add to /etc/named/ipa-options-ext.conf allow-recursion { trusted_network; }; and restart freeipa ipactl restart

Читать дальше..>>

zfs arc size

написано 18 апреля, 2023 - запись из раздела Linux | Комментировать

To set zfs_arc_max as 1/4 of RAM (by default it’s 1/2) you can use that script #!/bin/bash   arc_size=`free | awk ‘NR ==2 { OFMT="%.0f"; print $2/4*1024}’`   echo "$arc_size" > /sys/module/zfs/parameters/zfs_arc_max   echo 3 > /proc/sys/vm/drop_caches   echo "options zfs zfs_arc_min=0" > /etc/modprobe.d/zfs.conf echo "options zfs zfs_arc_max=$arc_size" >> /etc/modprobe.d/zfs.conf update-initramfs -u -k all To […]

Читать дальше..>>

следующая страница »