Logs - Log Details
-
I have a cluster, it was using DHCP as resource to allocate from DHCP, but was shutdown for maintenance for a few days.. When it came back up, vms got different IPs from DHCP server. But cluster won't substantiate itself unless the IPs go back to what they were. My bad.. sure.. BUT... I figured I could go into DHCP server lease logs and review lease logs, filter by MAC, to find its old lease and convert to static reservation.
Issues:
- Logs only went back four or so days. I have to imagine the data is there, just not within current log (Disk space currently used by log files: 6.3M Worst case disk usage for base system logs based on current global settings: 58.11 MiB) So not for lack of disk space.
- When I try to set reservation, it must be outside DHCP scope (Error: The IP address must not be within the DHCP range for this interface."), which is not goal, but more of pinning what is current DHCP lease to be permanent
Questions:
- How to I export more detail logs and logs that go farther back?
- Can I redirect logs to NFS mount that logrotate runs out and would then save to NFS path? (only option I see is to use forking to syslog)
- How can I bind what is an IP lease within DHCP scope range to set to static
-
@penguinpages said in Logs - Log Details:
How to I export more detail logs and logs that go farther back?
Set up a syslog server and point the logs to that.
I use my Synology NAS.
-
You should see old leases in /var/dhcpd/var/db/dhcpd.leases if they still exist anywhere.
Though if clients are getting a new lease they may not.
You can choose to backup the leases in Diag > Backup > Backup extra data.
Steve