| Summary: | /var/log/lastlog appears to be huge on ipa client | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Mohammed Arafa <bugzilla> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Kaleem <ksiddiqu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | bugzilla, dkupka, kdudka, pvoborni, rcritten |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-24 13:36:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mohammed Arafa
2016-10-15 22:16:38 UTC
If you do not have any entry for /var/log/lastlog in logrotate's configuration, it will not be rotated. Are you saying that the entry used to be included on a default RHEL-7 installation? If yes, which package provided it? In any case, logrotate works as designed. i am saying that on an ipa client before logging in as a user lastlog is only 285k in size after logging in as an ipa user lastlog size becomes 11g I am switching the component to ipa then. Did you try to check the size by du(1) instead of ls(1)? If ls shows big size just because the file is sparse, this is likely NOTABUG. it is indeed 40K from du so why does ipa change this? it shouldnt From man 8 lastlog:
NOTE
The lastlog file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "ls -l" (which can indicate a really big file if you have in passwd users with a high UID). You can display its real size with "ls -s".
IPA server creates ID range starting from random number by default during installation. You can use --idstart (and --idmax) to override this. This means that there's quite high chance that IPA users will have high UIDs and lastlog will appear to take huge amount of disk space.
|