Changing log file location

  • Is it possible to change the /var/log files location and create a symlink for it ?

    ie /var/log symlink to /udder/drive/logfiles

    Purpose: limited OMV OS drive size, during some vm conversions the debug log file freaks out growing to 50GB sometimes, log-rotate that a few times and there can be several 100GB of log files.

    • Offizieller Beitrag

    To answer your question more directly however, I believe the symlink plugin should make this fairly easy...


    1. Install the symlink plugin

    2. Delete the directory you want to symlink at the command line level (ie, rm -R /var/log)

    3. Create a directory in the webUi on one of your storage drives

    4. Create a symlink with the plugin, the shared folder you created in the webUI as the source, and /var/log (or whatever folder you deleted)... as the target


    It will write to /var/log still, but the actual data will be stored on your data drive.

  • Hi,

    I need to move the log files to another path too.. As you can see /var/logs does not have much space


    But if I try


    rm -R /var/log


    I get "Device or resource busy" and I can't create a symlink if the directory exists.

  • But if I try


    rm -R /var/log


    I get "Device or resource busy" and I can't create a symlink if the directory exists.

    exchange line 2. Delete the directory you want to symlink at the command line level (ie, rm -R /var/log)

    to do a copy of /var/log to new location, then proceed with step 4 only of KM0201 instructions above.

    When that's complete, you can delete the original /var/log directory.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!