Lordbye Posted May 12, 2023 Share Posted May 12, 2023 hi, i have a problem with these commands..and /var/log folder if i use DF -h i receive this output root@LordbyeNas:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 16G 2.4G 14G 15% / tmpfs 32M 1.1M 31M 4% /run /dev/sda1 15G 990M 14G 7% /boot overlay 16G 2.4G 14G 15% /lib/firmware overlay 16G 2.4G 14G 15% /lib/modules devtmpfs 8.0M 0 8.0M 0% /dev tmpfs 16G 0 16G 0% /dev/shm cgroup_root 8.0M 0 8.0M 0% /sys/fs/cgroup tmpfs 384M 71M 314M 19% /var/log tmpfs 1.0M 0 1.0M 0% /mnt/disks tmpfs 1.0M 0 1.0M 0% /mnt/remotes tmpfs 1.0M 0 1.0M 0% /mnt/addons tmpfs 1.0M 0 1.0M 0% /mnt/rootshare ----- Instead with Du root@LordbyeNas:~# du -h -c /var/log/ 0 /var/log/pwfail 128K /var/log/unraid-api 0 /var/log/swtpm/libvirt/qemu 0 /var/log/swtpm/libvirt 0 /var/log/swtpm 0 /var/log/samba/cores/rpcd_winreg 0 /var/log/samba/cores/rpcd_classic 0 /var/log/samba/cores/rpcd_lsad 0 /var/log/samba/cores/samba-dcerpcd 0 /var/log/samba/cores/winbindd 0 /var/log/samba/cores/nmbd 0 /var/log/samba/cores/smbd 0 /var/log/samba/cores 236K /var/log/samba 0 /var/log/plugins 0 /var/log/pkgtools/removed_uninstall_scripts 4.0K /var/log/pkgtools/removed_scripts 12K /var/log/pkgtools/removed_packages 16K /var/log/pkgtools 4.0K /var/log/nginx 0 /var/log/nfsd 28K /var/log/libvirt/qemu 0 /var/log/libvirt/ch 128K /var/log/libvirt 752K /var/log/ 752K total Where can i find the difference? thanks Quote Link to comment
ich777 Posted May 12, 2023 Share Posted May 12, 2023 47 minutes ago, Lordbye said: Where can i find the difference? You should use du -sh /var/log: root@Tower:~# du -sh /var/log 9.4M /var/log root@Tower:~# df -h /var/log Filesystem Size Used Avail Use% Mounted on tmpfs 128M 9.4M 119M 8% /var/log As you can see both values are the same on my server. Do you maybe have any symlinks manually made which are pointing to /var/log? Please also include your Diagnostics for further help. Quote Link to comment
itimpi Posted May 12, 2023 Share Posted May 12, 2023 You could also try: ls -l /var/log so you see files directly stored under /var/log rather than in folders Quote Link to comment
Lordbye Posted May 12, 2023 Author Share Posted May 12, 2023 (edited) i'll try to trim these files tnx root@LordbyeNas:/var/log# ls -lh total 244K -rw------- 1 root root 768 May 8 09:34 btmp -rw-r--r-- 1 root root 0 Apr 28 2021 cron -rw-r--r-- 1 root root 0 Apr 28 2021 debug -rw-r--r-- 1 root root 71K May 6 00:14 dmesg -rw-r--r-- 1 root root 17K May 12 07:01 docker.log -rw-r--r-- 1 root root 6.9K May 6 00:14 faillog -rw-r--r-- 1 root root 56 May 12 15:20 gitcount -rw-r--r-- 1 root root 14K May 12 15:20 gitflash -rw-r--r-- 1 root root 63K May 6 00:14 lastlog drwxr-xr-x 4 root root 140 May 11 03:00 libvirt/ -rw-r--r-- 1 root root 784 May 6 16:32 maillog -rw-r--r-- 1 root root 0 May 6 00:14 mcelog -rw-r--r-- 1 root root 0 Apr 28 2021 messages drwxr-xr-x 2 root root 40 Aug 10 2022 nfsd/ drwxr-x--- 2 nobody root 60 May 6 00:15 nginx/ lrwxrwxrwx 1 root root 24 Nov 20 22:24 packages -> ../lib/pkgtools/packages/ drwxr-xr-x 5 root root 100 May 6 00:14 pkgtools/ drwxr-xr-x 2 root root 980 May 11 16:45 plugins/ drwxr-xr-x 2 root root 40 May 12 11:03 pwfail/ lrwxrwxrwx 1 root root 25 Nov 20 22:26 removed_packages -> pkgtools/removed_packages/ lrwxrwxrwx 1 root root 24 Nov 20 22:26 removed_scripts -> pkgtools/removed_scripts/ lrwxrwxrwx 1 root root 34 May 6 00:14 removed_uninstall_scripts -> pkgtools/removed_uninstall_scripts/ drwxr-xr-x 3 root root 340 May 12 15:17 samba/ -rw-r--r-- 1 root root 33 Dec 31 2019 scan lrwxrwxrwx 1 root root 23 Nov 20 22:24 scripts -> ../lib/pkgtools/scripts/ -rw-r--r-- 1 root root 0 Apr 28 2021 secure lrwxrwxrwx 1 root root 21 Nov 20 22:24 setup -> ../lib/pkgtools/setup/ -rw-r--r-- 1 root root 0 Apr 28 2021 spooler drwxr-xr-x 3 root root 60 Sep 27 2022 swtpm/ -rw-r--r-- 1 root root 100K May 6 01:00 syslog drwxr-xr-x 2 root root 80 May 10 21:00 unraid-api/ -rw-r--r-- 1 root root 0 May 6 00:14 vfio-pci -rw-r--r-- 1 root root 587 May 6 00:14 wg-quick.log -rw-rw-r-- 1 root utmp 6.8K May 6 00:15 wtmp Edited May 12, 2023 by Lordbye Quote Link to comment
Lordbye Posted May 12, 2023 Author Share Posted May 12, 2023 here diagnotic lordbyenas-diagnostics-20230512-1523.zip Quote Link to comment
Lordbye Posted May 12, 2023 Author Share Posted May 12, 2023 (edited) 3 hours ago, ich777 said: You should use du -sh /var/log: root@Tower:~# du -sh /var/log 9.4M /var/log root@Tower:~# df -h /var/log Filesystem Size Used Avail Use% Mounted on tmpfs 128M 9.4M 119M 8% /var/log As you can see both values are the same on my server. Do you maybe have any symlinks manually made which are pointing to /var/log? Please also include your Diagnostics for further help. i try root@LordbyeNas:~# du -sh /var/log 772K /var/log root@LordbyeNas:~# df -h /var/log Filesystem Size Used Avail Use% Mounted on tmpfs 384M 73M 312M 19% /var/log i have not any symlinks (or better, not manually made by me....) Edited May 12, 2023 by Lordbye Quote Link to comment
Solution Lordbye Posted May 26, 2023 Author Solution Share Posted May 26, 2023 i rebooted and now du and df has same total...i'll wait Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.