Skip to contentSkip to conversation

opensm logs can go anywhere in size?

DISCUSSION Or Gerlitz 2 participants 2 messages Jul 7, 2011 – Jul 8, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore

Or Gerlitz

author
#0 lore raw

Hi Alex,

I just noted that opensm logs can go anywhere in size when one of my nodes had no space left on device after the opensm log level was raised...

I see that the rpm provided with RHEL6 is setting an /etc/logrotate.d/opensm entry which is a copy of ./scripts/opensm.logrotate from the opensm git saying

/var/log/opensm.log {
missingok
notifempty
copytruncate
weekly
compress
}

this lacks size limitation, isn't that?

I opened ofa bz ticket #2280 to track that,

Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4E157735.1040901-VPRAkNaXOzVWk0Htik3J/[email protected]

#2 lore raw

Hi Or,

Quoted 18 lines · Or Gerlitz

Hi Alex,

I just noted that opensm logs can go anywhere in size when one of my nodes had no space left on device after the opensm log level was raised...

I see that the rpm provided with RHEL6 is setting an /etc/logrotate.d/opensm
entry which is a copy of ./scripts/opensm.logrotate from the opensm git saying

/var/log/opensm.log {
missingok
notifempty
copytruncate
weekly
compress
}

Quoted 4 lines

this lacks size limitation, isn't that?

I opened ofa bz ticket #2280 to track that,

It's a good point. What should be the limit? 1MB, 10MB, 100MB? How many history files (rotate) should be kept?
Moreover, this flooding would also happen if you don't enable logroatate, so should we enable some default limit to opensm log (--log_limit)?

-- Alex.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html