/var/log klasörünün şişmesi

Başlatan mustafa7, 18 Mayıs 2020 - 14:22:11

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

mustafa7

Selamlar,

Özellikle son linux sürümlerinde yaşıyorum bu problemi. Örneğin hem xubuntu 20.04 hem de ubuntu mate 20.04 te aynı şey oldu. Sistemi kuruyorum bir kaç gün geçmeden /var/log klasörü şişiyor. Baktığımda hem syslog hem de kern.log dosyalarının çok büyük boyutlara çıktığını görüyorum. Örneğin daha dün kurdum ubuntu mate 20.04 şuan 1.2 gb her iki dosya yani 2.4 gb alan kaplıyor yaklaşık olarak /var/log klasörü şuan.

/var/log/syslog ve /var/log/kern.log dosyalarına tail --lines=1000 komutuyla baktığımda ise aşağıdaki tekrar eden satırları görüyorum sürekli aynı şeyler tekrar ediyor:

May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] Hardware name: FUJITSU SIEMENS AMILO Pi 2550/F45                             , BIOS 1.11C 03/05/2008
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] Workqueue: events_freezable ieee80211_restart_work [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] RIP: 0010:drv_sta_state+0x254/0x3f0 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] Code: 90 45 31 ed e9 66 fe ff ff 48 8b 83 78 04 00 00 48 8d b3 98 04 00 00 48 c7 c7 c8 78 62 c0 48 85 c0 48 0f 45 f0 e8 27 b1 ef f3 <0f> 0b 41 bd fb ff ff ff e9 3d fe ff ff 65 8b 05 58 9d a6 3f 89 c0
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] RSP: 0018:ffffb28881a37840 EFLAGS: 00010286
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] RAX: 0000000000000000 RBX: ffff8ded708248c0 RCX: 0000000000000006
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff8ded7cb178c0
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] RBP: ffffb28881a37878 R08: 0000000000b31e26 R09: 0000000000000004
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8ded70aa07a0
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] R13: ffff8ded70aa07a0 R14: 0000000000000004 R15: ffff8ded70aa0d68
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] FS:  0000000000000000(0000) GS:ffff8ded7cb00000(0000) knlGS:0000000000000000
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] CR2: 0000556ca12d3298 CR3: 00000000b00ac000 CR4: 00000000000006e0
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204] Call Trace:
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204]  sta_info_move_state+0x276/0x370 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204]  __sta_info_destroy_part2+0x2f/0x180 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760204]  __sta_info_flush+0x128/0x180 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ieee80211_set_disassoc+0xc0/0x5f0 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ieee80211_mgd_deauth+0x104/0x490 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ieee80211_deauth+0x18/0x20 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  cfg80211_mlme_deauth+0xb6/0x1e0 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  cfg80211_mlme_down+0x66/0x80 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  cfg80211_disconnect+0x127/0x1e0 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? _raw_spin_unlock_bh+0x1e/0x20
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  __cfg80211_leave+0x133/0x1b0 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  cfg80211_leave+0x2c/0x40 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  cfg80211_netdev_notifier_call+0x1b2/0x590 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? wake_up_klogd+0x34/0x40
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? vprintk_emit+0x183/0x280
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? vprintk_default+0x29/0x50
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? vprintk_func+0x4c/0xbc
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? __switch_to_asm+0x40/0x70
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? rtnl_is_locked+0x15/0x20
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? inetdev_event+0x47/0x560
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? __switch_to_asm+0x34/0x70
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? skb_dequeue+0x5a/0x70
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  notifier_call_chain+0x55/0x80
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  raw_notifier_call_chain+0x16/0x20
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  call_netdevice_notifiers_info+0x2e/0x60
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  __dev_close_many+0x63/0x120
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  dev_close_many+0x91/0x150
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  dev_close.part.0+0x4a/0x70
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  dev_close+0x18/0x20
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  cfg80211_shutdown_all_interfaces+0x77/0xd0 [cfg80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ieee80211_handle_reconfig_failure+0x9d/0xb0 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ieee80211_reconfig+0xa0/0x1170 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ieee80211_restart_work+0xc3/0xf0 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  process_one_work+0x1eb/0x3b0
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  worker_thread+0x4d/0x400
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  kthread+0x104/0x140
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? process_one_work+0x3b0/0x3b0
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ? kthread_park+0x90/0x90
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423]  ret_from_fork+0x35/0x40
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.760423] ---[ end trace b35109e2a1d7dfc9 ]---
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.764586] ------------[ cut here ]------------
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.764589] wlp4s0:  Failed check-sdata-in-driver check, flags: 0x4
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.764670] WARNING: CPU: 1 PID: 14906 at net/mac80211/driver-ops.h:17 drv_sta_state+0x254/0x3f0 [mac80211]
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.764671] Modules linked in: ccm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_si3054 snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event coretemp snd_rawmidi iwl3945 iwlegacy kvm_intel mac80211 ir_rc6_decoder kvm snd_seq cfg80211 libarc4 snd_seq_device snd_timer snd joydev input_leds serio_raw soundcore rc_rc6_mce wmi_bmof ite_cir rc_core mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid radeon ahci i2c_algo_bit libahci ttm psmouse i2c_i801 drm_kms_helper pata_acpi lpc_ich syscopyarea sysfillrect sysimgblt r8169 fb_sys_fops realtek drm wmi video
May 18 13:41:19 mustafa-AMILO-Pi-2550 kernel: [ 6067.764710] CPU: 1 PID: 14906 Comm: kworker/1:2 Tainted: G        W         5.4.0-29-generic #33-Ubuntu


Özellikle şu satır ne demek istiyor anlamadım sorunun kaynağı sanırım burda yatıyor fakat çözümü nedir bilen varsa yardımcı olursa çok iyi olur:

WARNING: CPU: 1 PID: 14906 at net/mac80211/driver-ops.h:17 drv_sta_state+0x254/0x3f0 [mac80211]

sinan54

Log dosyalarının kaydını sınırlayabilirsin
journalctl --vacuum-size=100M
ayrıca
/etc/systemd/journald.conf
dizinindeki journald.conf dosyasında
SystemMaxUse=
satırını
SystemMaxUse=100M
olarak ayarlayın

mustafa7

Linux kerneli 5.4.29 dan 5.6.13 e yükselttim, şimdilik bir sorun yok gibi olursa dediklerini yapacağım.