Re: [lxc-users] kernel messages appear in containers?
On Sun, Feb 03, 2019 at 09:47:25AM +0100, Stéphane Graber wrote: > Hi, > > Yes, this is normal and as pointed out already, can be tweaked with > dmesg_restrict. > > There was some interest a while back in implementing a logging > namespace, which would solve this cleanly, but it's never been enough > of a priority for anyone to actually do the kernel work for it. Well actually there has been a patchset, no? I think it's just that noone really pushed hard enough for it (or long enough for that matter). :) Christian ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] kernel messages appear in containers?
On 3/02/19 3:54 PM, Tomasz Chmielewski wrote: > On 2019-02-03 11:51, Richard Hector wrote: >> Hi all, >> >> I've noticed that some log messages that really belong to the host (like >> those from monthly RAID checks, for example) can appear in arbitrary >> containers instead - so they're spread all over the place. >> >> Is that normal/fixable? > > I'd say it's a "normal, bad default". > > You can fix it by adding this to your sysctl config file: > > kernel.dmesg_restrict = 1 On 3/02/19 9:47 PM, Stéphane Graber wrote:> Yes, this is normal and as pointed out already, can be tweaked with > dmesg_restrict. > > There was some interest a while back in implementing a logging > namespace, which would solve this cleanly, but it's never been enough > of a priority for anyone to actually do the kernel work for it. Thanks to both. Done; will watch for results :-) Cheers, Richard ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] kernel messages appear in containers?
Hi, Yes, this is normal and as pointed out already, can be tweaked with dmesg_restrict. There was some interest a while back in implementing a logging namespace, which would solve this cleanly, but it's never been enough of a priority for anyone to actually do the kernel work for it. Stéphane On Sun, Feb 3, 2019 at 3:52 AM Richard Hector wrote: > > Hi all, > > I've noticed that some log messages that really belong to the host (like > those from monthly RAID checks, for example) can appear in arbitrary > containers instead - so they're spread all over the place. > > Is that normal/fixable? > > Cheers, > Richard > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- Stéphane ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] kernel messages appear in containers?
On 2019-02-03 11:51, Richard Hector wrote: Hi all, I've noticed that some log messages that really belong to the host (like those from monthly RAID checks, for example) can appear in arbitrary containers instead - so they're spread all over the place. Is that normal/fixable? I'd say it's a "normal, bad default". You can fix it by adding this to your sysctl config file: kernel.dmesg_restrict = 1 Tomasz Chmielewski https://lxadm.com ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] kernel messages appear in containers?
Hi all, I've noticed that some log messages that really belong to the host (like those from monthly RAID checks, for example) can appear in arbitrary containers instead - so they're spread all over the place. Is that normal/fixable? Cheers, Richard ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users