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.

  • If you have a log file that is 50gigs, you have a serious problem.


    I'd personally address the problem rather than the symptom.

    Air Conditioners are a lot like PC's... They work great until you open Windows.


  • 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.

    Air Conditioners are a lot like PC's... They work great until you open Windows.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!