早上 ntopng 又起不來了
果然又是更新出包 三不五時就來一下
https://packages.ntop.org/centos-stable/9/x86_64/Packages/
先倒回去等個几天吧
暫停更新
在 /etc/dnf/dnf.conf 加上
exclude=cento,n2disk,nprobe,ntap,ntop-license,ntopng,ntopng-data
早上 ntopng 又起不來了
果然又是更新出包 三不五時就來一下
https://packages.ntop.org/centos-stable/9/x86_64/Packages/
先倒回去等個几天吧
暫停更新
在 /etc/dnf/dnf.conf 加上
exclude=cento,n2disk,nprobe,ntap,ntop-license,ntopng,ntopng-data
今天早上打開看ntopng時發現完全沒有資料
本來以為是mirror有問題
測試了一下
其他的几器使用tcpdump 去看都正常
唯獨這台完全捉不到封包
dmesg發現以下訊息
[ 4.618648] ------------[ cut here ]------------
[ 4.618940] WARNING: CPU: 3 PID: 671 at net/core/dev.c:603 dev_add_pack+0xaa/0xd0
[ 4.618954] Modules linked in: pf_ring(OE+) rfkill bochs drm_vram_helper drm_ttm_helper ttm drm_kms_helper pcspkr virtio_balloon i2c_piix4 joydev drm fuse xfs libcrc32c sr_mod cdrom sg ata_generic ata_piix libata crc32c_intel virtio_net net_failover virtio_blk failover serio_raw
[ 4.618969] CPU: 3 PID: 671 Comm: modprobe Tainted: G OE ------- --- 5.14.0-570.44.1.el9_6.x86_64 #1
[ 4.618971] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 4.618973] RIP: 0010:dev_add_pack+0xaa/0xd0
[ 4.618975] Code: c5 28 11 00 00 eb a0 48 8b 6f 28 48 85 ed 74 15 48 81 c5 18 11 00 00 48 85 d2 74 8b 48 8d aa a8 01 00 00 eb 82 48 85 d2 75 f2 <0f> 0b 5b 5d 41 5c 41 5d e9 99 b7 2b 00 66 c1 c0 08 83 e0 0f 48 c1
[ 4.618977] RSP: 0018:ffff983bc076fb58 EFLAGS: 00010246
[ 4.618979] RAX: 0000000000000300 RBX: ffffffffc0814da0 RCX: 0000000000000201
[ 4.618981] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffffc0814da0
[ 4.618981] RBP: 0000000000000000 R08: ffff983bc076fb00 R09: ffff8ae7c72b7860
[ 4.618982] R10: ffff8ae7c3c78540 R11: 000000000003a680 R12: 0000000000000000
[ 4.618983] R13: 00007f5329cd55ad R14: 000055d97d7be962 R15: ffff983bc076fc20
[ 4.618985] FS: 00007f532a75d740(0000) GS:ffff8ae8f7d80000(0000) knlGS:0000000000000000
[ 4.618986] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 4.618987] CR2: 00007f5329cd4ff0 CR3: 0000000108956000 CR4: 00000000000006f0
[ 4.618992] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 4.618993] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 4.618994] Call Trace:
[ 4.618996] <TASK>
[ 4.618998] ? show_trace_log_lvl+0x1c4/0x2df
[ 4.619003] ? show_trace_log_lvl+0x1c4/0x2df
[ 4.619006] ? __pfx_init_module+0x10/0x10 [pf_ring]
[ 4.619020] ? ring_init+0x29a/0xff0 [pf_ring]
[ 4.619030] ? dev_add_pack+0xaa/0xd0
[ 4.619031] ? __warn+0x7e/0xd0
[ 4.619035] ? dev_add_pack+0xaa/0xd0
[ 4.619037] ? report_bug+0x100/0x140
[ 4.619040] ? handle_bug+0x3c/0x70
[ 4.619043] ? exc_invalid_op+0x14/0x70
[ 4.619045] ? asm_exc_invalid_op+0x16/0x20
[ 4.619050] ? dev_add_pack+0xaa/0xd0
[ 4.619052] ? __pfx_init_module+0x10/0x10 [pf_ring]
[ 4.619062] ring_init+0x29a/0xff0 [pf_ring]
[ 4.619072] do_one_initcall+0x44/0x210
[ 4.619077] do_init_module+0x64/0x230
[ 4.619080] __do_sys_init_module+0x12e/0x1b0
[ 4.619084] do_syscall_64+0x5f/0xe0
[ 4.619086] ? syscall_exit_to_user_mode+0x19/0x40
[ 4.619088] ? do_syscall_64+0x6b/0xe0
[ 4.619090] ? netif_receive_skb_list_internal+0x1e4/0x300
[ 4.619094] ? napi_complete_done+0x6e/0x220
[ 4.619096] ? virtnet_poll+0x1fb/0x2d4 [virtio_net]
[ 4.619104] ? __napi_poll+0x2c/0x170
[ 4.619106] ? net_rx_action+0x29c/0x370
[ 4.619109] ? kvm_sched_clock_read+0xd/0x20
[ 4.619111] ? sched_clock+0xc/0x30
[ 4.619114] ? sched_clock_cpu+0xb/0x190
[ 4.619119] ? irqtime_account_irq+0x3c/0xb0
[ 4.619121] ? handle_softirqs+0x16b/0x270
[ 4.619125] ? __irq_exit_rcu+0x46/0xc0
[ 4.619127] ? common_interrupt+0x43/0xa0
[ 4.619129] entry_SYSCALL_64_after_hwframe+0x78/0x80
[ 4.619133] RIP: 0033:0x7f5329f0f51e
[ 4.619135] Code: 48 8b 0d fd 98 0e 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ca 98 0e 00 f7 d8 64 89 01 48
[ 4.619137] RSP: 002b:00007ffe93d34038 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 4.619138] RAX: ffffffffffffffda RBX: 000055d97db21bb0 RCX: 00007f5329f0f51e
[ 4.619139] RDX: 000055d97d7be962 RSI: 000000000005e59d RDI: 00007f5329c77010
[ 4.619140] RBP: 00007f5329c77010 R08: 000055d97db21e40 R09: 0000000000000000
[ 4.619141] R10: 0000000000000005 R11: 0000000000000246 R12: 000055d97d7be962
[ 4.619142] R13: 000055d97db21d20 R14: 000055d97db21bb0 R15: 000055d97db21df0
[ 4.619144] </TASK>
[ 4.619144] ---[ end trace 0000000000000000 ]---
[ 4.619146] [PF_RING] pf_ring initialized correctly
[ 4.676410] dca service started, version 1.12.1
[ 4.683689] gnss: GNSS driver registered with major 240
knerlel 更新後 pf_ring 不能用了
只好先倒回去更新前的備分
倒回去後開几就正常了
再來就是先暫停kernel的更新
vi /etc/dnf/dnf.conf
在 [main] 加上 exclude=kernel*
[main]
...exclude=kernel*
之後再看看如果kernel沒問題再拿掉吧
今天在 almalinux 9 dnf update出現以下錯誤
Error:
Problem: package iptables-legacy-1.8.10-4.1.el9.x86_64 from @System requires (iptables-libs(x86-64) = 1.8.10-4.el9 or iptables-libs(x86-64) = 1.8.10-4.el9_4), but none of the providers can be installed
- cannot install both iptables-libs-1.8.10-11.el9_5.x86_64 from baseos and iptables-libs-1.8.10-4.el9_4.x86_64 from @System
- cannot install both iptables-libs-1.8.10-4.el9_4.x86_64 from baseos and iptables-libs-1.8.10-11.el9_5.x86_64 from baseos
- cannot install the best update candidate for package iptables-libs-1.8.10-4.el9_4.x86_64
- cannot install the best update candidate for package iptables-legacy-1.8.10-4.1.el9.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
本來想把iptables-legacy iptables-libs 都移除 但因為這台跑docker 如果移除會連docker一起移掉
查到官方 forum有人提供解法
dnf --assumeyes swap iptables-legacy iptables-nft
之前從centos 8 升到 centos 8 stream 的几器最近無法更新
出現以下訊息
[root@localhost ~]# dnf -y update
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream 51 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
在proxmox上的LXC一直有個問題 今天終於解決了
記錄一下
當部屬完LXC要更新時出現以下的情況
#dnf -y update
Extra Packages for Enterprise Linux 8 - Next - x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'epel-next':
- Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-next-8&arch=x86_64&infra=stock&content=centos [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo 'epel-next': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-next-8&arch=x86_64&infra=stock&content=centos [Could not resolve host: mirrors.fedoraproject.org]
檢查一下 /etc/resolv.conf
cat /etc/resolv.conf
# Generated by NetworkManager
search abc.com
發現沒有設定nameserver
可是這個值在佈署LXC時確實有輸入
後來發現可能是 NetworkManager 的問題
導致proxmox 要修改 /etc/resolv.conf 的時候出問題
本來是想直接用 NetworkManager 來處理
直接 nmtui
結果預設沒有安裝
只好再自己裝
# dnf install -y NetworkManager-tui
在 nmtui 裡設定好 nameserver 後重開
在 /etc/resolv.conf 裡還是沒看到 nameserver
手動把nameserver 加入/etc/resolv.conf 也沒用
重開後就會消失了
於是決定把 NetworkManager 停掉
# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service
再安裝使用 network-scripts
# dnf install -y network-scripts
# systemctl enable network
改完後重開
再看一下 /etc/resolv.conf
# cat /etc/resolv.conf
# --- BEGIN PVE ---
search abc.com
nameserver 8.8.8.8
# --- END PVE ---
醬就正常了
https://forum.proxmox.com/threads/proxmox-6-0-9-dns-host-settings-reset-every-time.59434/
https://www.thegeekdiary.com/how-to-disable-networkmanager-in-centos-rhel-8/