fdisk /dev/sdbThis will create the "coredump" directory at cd /var/log/cyops
mkfs.xfs /dev/sdb1
mkdir /var/log/cyops/coredump
mount /dev/sdb1 /var/log/cyops/coredumpEdit /etc/fstab to add the following entry.
/dev/sdb1 /var/log/cyops/coredump xfs defaults 0 0Reboot the system.
echo "kernel.core_pattern=/var/log/cyops/coredump/core-%E-sig%s-user%u-group%g-pid%p-time%t" >> /etc/sysctl.d/cyops-core-dump.confReboot the system.
echo "kernel.core_uses_pid = 1" >> /etc/sysctl.d/cyops-core-dump.conf
echo "fs.suid_dumpable = 2" >> /etc/sysctl.d/cyops-core-dump.conf
echo "* hard core unlimited" >> /etc/security/limits.d/cyops-core-dump-limits.conf
echo "* soft core unlimited" >> /etc/security/limits.d/cyops-core-dump-limits.conf
echo "DefaultLimitCORE=infinity" >>/etc/systemd/system.conf
echo "DAEMON_COREFILE_LIMIT='unlimited'" >> /etc/sysconfig/init
systemctl daemon-reexec
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.