Openhab 3.0 error Could not create rrd4j database file (No space left on device)

Hello,
i want to go from openhab 2 to openhab3 and i did that :install openhab 3 ,at a second rasberry and i have this problem

[04:18:22] openhabian@openHABianDevice:~$ sudo df -h
[sudo] password for openhabian:
Filesystem Size Used Avail Use% Mounted on
/dev/root 30G 5.1G 23G 19% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 1.8M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 54M 199M 22% /boot
/dev/zram1 469M 458M 0 100% /opt/zram/zram1
overlay1 469M 458M 0 100% /var/lib/openhab/persistence
/dev/zram2 469M 35M 399M 9% /opt/zram/zram2
overlay2 469M 35M 399M 9% /var/log
tmpfs 388M 0 388M 0% /run/user/1000
[22:05:09] openhabian@openHABianDevice:~$

i couldn’t find something to help me at the forum

Thank you

zram1 is full.
/var/lib/openhab/persistence seems to be on that “partition”.
Check if the complete space is consumed by the persistence.

I have a lot of items that they don’t have space at the persistence
i don’t know how can i do that

  1. Is there any way that i can create “free space”?
  2. can i choose which items will be in the persistence
    Sorry for my english and thanx again for your help

what is the output of

sudo du -s -h /var/lib/openhab/persistence
sudo ls -lS /var/lib/openhab/persistence

Did you configure anything for persistence ?

no i have not

[22:05:15] openhabian@openHABianDevice:~$ sudo du -s -h /var/lib/openhab/persistence
[sudo] password for openhabian:
532M /var/lib/openhab/persistence
[23:18:06] openhabian@openHABianDevice:~$ sudo ls -lS /var/lib/openhab/persistence
total 68
drwxrwxr-x+ 1 openhab openhab 53248 Jan 6 04:21 rrd4j
drwxrwxr-x+ 2 openhab openhab 4096 Dec 29 23:21 db4o
drwxrwxr-x+ 2 openhab openhab 4096 Dec 29 23:21 mapdb
[23:18:18] openhabian@openHABianDevice:~$

configure the files and saw that the
\OPENHABIANDEVIC\openHAB-userdata\persistence\rrd4j
that now saves only the files I want.
i did it for the first time and i’m not sure about that.

rrd4j.persist

Strategies {

// for rrd charts, we need a cron strategy, every Minute is a must have.

everyMinute : "0 * * * * ?"

// get the data reduced for older values to keep database small

everyHour : "0 0 * * * ?"

everyDay : "0 0 0 * * ?"

default = everyChange

}

Items {

// additionally persist Items

gpersistence* : strategy = everyMinute

}

mapdb.persist

Strategies {

    default = everyUpdate

}

Items {

    // persist all items on every change and restore them from the db at startup

    gpersistence* : strategy = everyChange, restoreOnStartup

}

rrd4j.cfg

configure specific rrd properties for given items in this file.

please refer to the documentation available at

rrd4j - Persistence Services | openHAB

default_numeric and default_other are internally defined defnames and are used as

defaults when no other defname applies

#.def=[ABSOLUTE|COUNTER|DERIVE|GAUGE],,[|U],[|U],

#.archives=[AVERAGE|MIN|MAX|LAST|FIRST|TOTAL],,,

#.items=

.items= gpersistence

ctr24h.def=COUNTER,900,0,U,60

ctr24h.archives=AVERAGE,0.5,1,480:AVERAGE,0.5,10,144

ctr24h.items=Item1,Item2

ctr7d.def=COUNTER,900,0,U,60

ctr7d.archives=AVERAGE,0.5,1,480:AVERAGE,0.5,10,144:AVERAGE,0.5,60,672

ctr7d.items=Item3,Item4

[04:04:47] openhabian@openHABianDevice:~$ sudo df -h
[sudo] password for openhabian:
Filesystem Size Used Avail Use% Mounted on
/dev/root 30G 5.1G 23G 19% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 2.3M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 54M 199M 22% /boot
/dev/zram1 469M 68M 366M 16% /opt/zram/zram1
overlay1 469M 68M 366M 16% /var/lib/openhab/persistence
/dev/zram2 469M 40M 394M 10% /opt/zram/zram2
overlay2 469M 40M 394M 10% /var/log
tmpfs 388M 0 388M 0% /run/user/1000
[04:04:57] openhabian@openHABianDevice:~$ sudo du -s -h /var/lib/openhab/persist ence
67M /var/lib/openhab/persistence
[04:05:13] openhabian@openHABianDevice:~$ sudo ls -lS /var/lib/openhab/persisten ce
total 76
drwxrwxr-x+ 1 openhab openhab 61440 Jan 7 03:53 rrd4j
drwxrwxr-x+ 2 openhab openhab 4096 Dec 29 23:21 db4o
drwxrwxr-x+ 2 openhab openhab 4096 Dec 29 23:21 mapdb

could you help me with the configuration
thanks

good evening the memory problem is ok.
but it does not show me records of the items I have in the group
could someone help me

I have a setting

// persistence strategies have a name and definition and are referred to in the “Items” section

Strategies {

    everyHour : "0 0 * * * ?"

    everyDay  : "0 0 0 * * ?"

    // if no strategy is specified for an Item entry below, the default list will be used

   default = everyChange

}

/*

  • Each line in this section defines for which Item(s) which strategy(ies) should be applied.

  • You can list single items, use “" for all items or "groupitem” for all members of a group

  • Item (excl. the group Item itself).

*/

Items {

    // persist the Item state of Heating_Mode and Notifications_Active on every change and restore them from the db at startup

  //  Heating_Mode, Notifications_Active: strategy = everyChange, restoreOnStartup

    gpersistence* : strategy = everyChange, restoreOnStartup

    // additionally, persist all temperature and weather values every hour

    gpersistence* : strategy = everyHour

}

now my problem is that I do not have recorded temperatures

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.