Migrate from ramlog to disk


wurmfood
 Share

1 1

Recommended Posts

Is there an accepted procedure for moving from using ramlog to logging to disk? I've looked but everything I can find is about setting up ramlog.

 

I assume it's more complicated than just creating a partition (or ZFS dataset) and mounting it /var/log, disabling ramlog, and rebooting.

Link to post
Share on other sites

Donate and support the project!

Well, for anyone else interested in trying this, here's the basic order I did:

  • stop armbian-ramlog
  • disable armbian-ramlog
  • create a zfs dataset and mount it at /var/log
  • cp -ar everything from /var/log.hdd to the new /var/log
  • modify /etc/logrotate to disable compression (since the dataset is already using compression)
  • modify /etc/default/armbian-ramlog to disable it there as well
  • modify /etc/default/armbian-zram-config to adjust for new numbers (I have ZRAM_PERCENTAGE and MEM_LIMIT_PERCENTAGE at 15).
  • reboot
Link to post
Share on other sites

 Share

1 1