Sentry: All events is empty

Запись создана 25 марта, 2024

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:
Читать дальше

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

ProxMox migration fails: Host key verification failed.

Запись создана 22 марта, 2024

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 fix it (temporary) by

 ssh -o 'HostKeyAlias=pve-n23' root@10.10.10.10 /bin/true

or permanently, by commenting string

 #GlobalKnownHostsFile /var/lib/sss/pubconf/known_hosts

in /etc/ssh/ssh_config.d/04-ipa.conf

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

LVM resize HOWTO

Запись создана 15 марта, 2024

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 ---
  PV Name               /dev/sdb
  VG Name               data
  PV Size               <165.02 GiB / not usable 2.00 MiB

let’s resize it

# pvresize /dev/sdb
  Physical volume "/dev/sdb" changed
  1 physical volume(s) resized or updated / 0 physical volume(s) not resized

and check again. ok we see that it extended

# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               data
  PV Size               <175.02 GiB / not usable 2.00 MiB

logical volume is extended to, and have Free Size 10GiB

# vgdisplay
  --- Volume group ---
  VG Name               data
  VG Size               <175.02 GiB
  Alloc PE / Size       42244 / <165.02 GiB
  Free  PE / Size       2560 / 10.00 GiB

now we need to extend logical volume

# lvextend -l +100%FREE /dev/mapper/data-storage
  Size of logical volume data/storage changed from <165.02 GiB (42244 extents) to <175.02 GiB (44804 extents).
  Logical volume data/storage successfully resized.

and resize a file system (in my case it’s xfs)

# xfs_growfs /dev/mapper/data-storage

And now we see that filesystem is growed

# df -h /opt/docker/
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/data-storage  175G  147G   29G  84% /opt/docker

» Запись из раздела Linux | Комментировать

Sangoma Linux after migration from VMWare ESXi to ProxmoxVE fails to boot

Запись создана 13 марта, 2024

After migration Sangoma Linux (FreePBX on CentOS7) from vmware to proxmox

qm importovf 7804 PBX002.ovf local-zfs

OS fails to boot with error:

Could not boot
/dev/SangomaVG/root does not exist
/dev/SangomaVG/swaplv1 does not exist
/dev/mapper/SangomaVG-root does not exist

What do we need?
1. add network adapter, chose model «VMware vmxnet3» and set previously used MAC-address
2. detach hard disk and attach it as sata
3. boot the VM from CentOS-7-minimal.iso and

mount --bind /run /mnt/sysimage/run
 
systemctl start multipathd.service
 
chroot /mnt/sysimage
 
dracut --regenerate-all --force

» Запись из раздела CentOS Linux, KVM, Proxmox VE, virtualization, VoIP | Комментировать

FreeIPA WebUI login fails

Запись создана 18 января, 2024

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 one

kadmin.local: modprinc -expire "2024-12-31 23:59:59" krbtgt/DOMAIN.COM

» Запись из раздела Linux | Комментировать

HP Proliant Gen9 G9 DMAR error

Запись создана 23 ноября, 2023

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 :)

OR if can reboot yourt server, there are several ways to «fix» it

pass a «intel_iommu=on» option to kernel or enter RBSU (BIOS) pressing F9 on startup screen
System configuration >> chose embeded LOM >> Device configuration menu >> SRV-IOV >> set Disabled

Same thing on HPE Proliant Gen10 is called «HP Shared Memory Features»
 

» Запись из раздела Hardware, Linux | Комментировать

Mikrotik FAN speed on CCR2004-1G-12S+2XS

Запись создана 13 ноября, 2023

By default settings system health on mikrotik CCR2004 shows 0 RPM fan speed.

In my case the temperature of CPU was about to 60C but there is no direct settings to set FAN speed, so i set the temp to run fullspeed this way

/system health settings set fan-full-speed-temp=45C fan-target-temp=45C

» Запись из раздела Mikrotik | Комментировать

Dell iDrac FAN speed adjustment

Запись создана 23 октября, 2023

You can do it by setting fan speed offset in BIOS, but if you don’t want to reboot your system you can do it using ipmitool

enable manual Fan speed setting

ipmitool raw 0x30 0x30 0x01 0x00

Then set fan speed to 100%

ipmitool raw 0x30 0x30 0x02 0xff 0x64


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

» Запись из раздела Несортированное | Комментировать

FreeIPA allow queries from other networks

Запись создана 11 сентября, 2023

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

» Запись из раздела Linux | Комментировать

zfs arc size

Запись создана 18 апреля, 2023

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 { print $2/4}'`
 
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 get an actual information about zfs_arc

arc_summary -s arc
arc_summary -s archits

This is a good article about ZFS ARC https://linuxhint.com/configure-zfs-cache-high-speed-io/

» Запись из раздела Linux | Комментировать

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