tgriep wrote: ↑Tue Jan 30, 2024 4:38 pm
The problem is that the command needs to create temporary files on the filesystem to create the list of inode usage but since there are not any free inodes, it cannot so that is why you see the error.
Login as root to the server and stop as many processes as you can.
Remove any log files or other files from the following folders
Code: Select all
/var/log
/var/log/httpd
/tmp
/var/tmp
Run the df -i command and if there is some free inodes, run the command and post the output.
Thank You.
I cleaned up all the files in the directories that ou mentioned and afterwards I was able to run the command with the below result:
414 /var/spool/postfix/etc/ssl/certs
448 /usr/share/mime/application
453 /usr/lib/firmware
459 /usr/share/consolefonts
491 /usr/share/man/man2
503 /usr/sbin
534 /usr/share/go-1.13/src/runtime
536 /usr/src/linux-raspi-headers-5.4.0-1068/include/uapi/linux
536 /usr/src/linux-raspi-headers-5.4.0-1070/include/uapi/linux
539 /usr/lib/firmware/amdgpu
563 /usr/include/linux
564 /usr/src/linux-raspi-headers-5.15.0-1042/include/uapi/linux
566 /usr/src/linux-raspi-headers-5.15.0-1037/include/uapi/linux
622 /usr/share/go-1.18/src/runtime
646 /usr/share/vim/vim82/syntax
681 /usr/share/go-1.18/src/cmd/go/testdata/script
744 /usr/local/nagios/nagios-4.4.9/html/angularjs/angular-1.3.9/i18n
759 /usr/share/python-babel-localedata/locale-data
903 /usr/share/bash-completion/completions
922 /usr/share/doc
981 /usr/share/man/man8
1045 /usr/lib/aarch64-linux-gnu
1235 /usr/bin
1294 /usr/src/linux-raspi-headers-5.4.0-1070/include/linux
1295 /usr/src/linux-raspi-headers-5.4.0-1068/include/linux
1309 /usr/share/man/man1
1393 /usr/src/linux-raspi-headers-5.15.0-1037/include/linux
1393 /usr/src/linux-raspi-headers-5.15.0-1042/include/linux
1443 /usr/src/linux-headers-5.4.0-1068-raspi/include/config
1443 /usr/src/linux-headers-5.4.0-1070-raspi/include/config
1453 /usr/share/go-1.13/test/fixedbugs
1760 /usr/share/go-1.18/test/fixedbugs
2545 /usr/share/man/man3
4031 /var/lib/dpkg/info
7750 /usr/src/linux-headers-5.15.0-1042-raspi/include/config
7750 /usr/src/linux-headers-5.15.0-1044-raspi/include/config
7752 /usr/src/linux-headers-5.15.0-1037-raspi/include/config
3512413 /usr/local/nagios/var/spool/nagfluxperfdata
So it is this directory "/usr/local/nagios/var/spool/nagfluxperfdata" that is taking up all the inodes. I tried to delete all the files in this directory but it gives me always this error. Can you help me out with this error?
root@RSB-VWA-T-MON:/usr/local/nagios/var/spool/nagfluxperfdata# rm -f /usr/local/nagios/var/spool/nagfluxperfdata/*
bash: /usr/bin/rm: Argument list too long
root@RSB-VWA-T-MON:/usr/local/nagios/var/spool/nagfluxperfdata# rm -f -r /usr/local/nagios/var/spool/nagfluxperfdata/*
bash: /usr/bin/rm: Argument list too long