Jump to content

/var/log is 100% full - how to move to HDD?


Schlotze83!

Recommended Posts

Gents,

 

installed Armbian Bullseye successfully to my Banana Pi M2 Berry. In second step i moved the OS to my attached 2,5 WD RED Sata Harddrive. This was easily possible with the command "sudo nand-sata-install".

 

But now, i see that my /var/log is full, because its located in ZRAM.

 

root@BananaPiM2Berry:/etc/systemd/system# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            431M     0  431M   0% /dev
tmpfs           100M   11M   90M  11% /run
/dev/sda1       687G  1,3G  651G   1% /
tmpfs           500M     0  500M   0% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           500M     0  500M   0% /tmp
/dev/mmcblk0p1  1,7G  1,3G  385M  77% /media/mmcboot
/dev/zram1       49M   48M     0 100% /var/log
tmpfs           100M     0  100M   0% /run/user/1000

 

As you can see i hve more than 650 GB avail in my root parttiion on /dev/sda1. But how can i setup /var/log to wirte on /dev/sda1 ?

 

i believed to find it in /etc/fstab, but its not there.

# <file system>                                 <mount point>   <type>  <options>                                                       <dump>  <pass>
tmpfs                                           /tmp            tmpfs   defaults,nosuid                                                 0       0
UUID=7fe45d82-d362-438a-9b7a-baa3678fcab4       /media/mmcboot  ext4    defaults,noatime,commit=600,errors=remount-ro,x-gvfs-hide       0       1
/media/mmcboot/boot                             /boot           none    bind                                                            0       0
UUID=614c4feb-de66-4b2c-a046-ce72aaf2e600       /               ext4    defaults,noatime,commit=600,errors=remount-ro,x-gvfs-hide       0       1

 

Right now, the device is unuseable, i cant even install system updates, since no more logs can be written. Since i have so much storage avail on my HDD, i wonder how to move /var/log there...

 

Greatings

Schlotze

Link to comment
Share on other sites

Thanks so much, looks like i made it , wa?

 


udev            431M       0  431M    0% /dev
tmpfs           100M    724K  100M    1% /run
/dev/sda1       687G    1,3G  651G    1% /
tmpfs           500M       0  500M    0% /dev/shm
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           500M    4,0K  500M    1% /tmp
/dev/mmcblk0p1  1,7G    1,3G  385M   77% /media/mmcboot
tmpfs           100M       0  100M    0% /run/user/1000

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines