Skip to content

localmount unmount /var/log on shutdown preventing rc_logger from saving messages and throwing "Unable to.." errors #977

@e-pirate

Description

@e-pirate

Hi everyone.
This is a fallow up bug report after a small investigation described on Gentoo forums here.

Long story short: recently I found that there is no shutdown messages in /var/log/rc.log anymore. After some digging I found, that localmount now unmount /var on reboot making /var/log/* inaccessible and therefore preventing rc_logger from saving messages also throwing "Unable to.." red asterisk errors to console.

Temporary moving/redirecting rc.log to /opt directory solved the problem: I see full shutdown logs and no "Unable to" errors during shutdown process.

I have /var as a separate partition on this particular system since 2009 AFAIR (this, a believe, very common case for production systems that may have unpredictable log and data grows that could potentially break the system if located on root partition) and previously had no this issue. I remember to have full shutdown logs having "Stopping.." messages down to udev on this system with /var mounted as separate partition. Unfortunately, I have no evidence because this was perfectly-working and therefore abandoned system until month ago when I upgraded it to a newer platform and had a closer look at what is going on. All logs are rotated and gone, so I have no exact date when things changed.

I believe we should add /var/log to no_umounts_r variable and have it be RW accessible till the very end just as we have root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions