Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Migrate from ramlog to disk

Featured Replies

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.

  • Author

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

Hi,

 

I had that same idea and I'm just setting this up based on your suggestions.
Thank you for starting the thread.

Just one thing: There is no option regarding compression in /etc/default/armbian-zram-config, or did you mean to disable another option?

 

  • Author

Sorry, the line about disabling was just to make sure you disable the armbian-zram-config service by setting ENABLED to false.

 

As a warning, though, I found some problems with this if you log to a zfs share. It seems you have to make sure zfs gets loaded before the logging starts up, otherwise you can get a kernel panic on occasion. I didn't really dig into how to fix this, so I just log and swap to a usb drive instead now.

5 hours ago, wurmfood said:

Sorry, the line about disabling was just to make sure you disable the armbian-zram-config service by setting ENABLED to false.

 

As a warning, though, I found some problems with this if you log to a zfs share. It seems you have to make sure zfs gets loaded before the logging starts up, otherwise you can get a kernel panic on occasion. I didn't really dig into how to fix this, so I just log and swap to a usb drive instead now.

Thank you for clarifying and pointing that out.
Logging to a USB drive as a swap seems like a neat workaround.
It would be better though, if we could work out how to avoid the kernel panics without having to change when zfs mounts.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.