Modify

Opened 11 years ago

Closed 11 years ago

#1295 closed defect (fixed)

astrisk database is in flash - should be ram

Reported by: chris@… Owned by: florian
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

I have just discovered that the astrisk database, used to hold phone registrations and other stuff is located in flash. The file is /usr/lib/asterisk/astdb.
depending on the number of phones and the registration period, you could have in excess of 500,000 writes a year to flash.

This is not a problem for people who have a USB drive attached who have install to disk. but for flash only instalations it will be big issue.

I have manualy created a symlink from:

/usr/lib/asterisk/astdb -> /tmp/spool/asterisk/astdb

to solve this issue.

It would be better if the rc script, or the install script took care of it.

Attachments (0)

Change History (9)

comment:1 Changed 11 years ago by chris@…

I checked for existing tickeks before loging this issue, but i didnt check the forum before hand..

This issue is mentioned here.

http://forum.openwrt.org/viewtopic.php?id=1419

I have also check all of the past, and present asterisk ipk'sm and they all have the same problem. I would expect that a few people have worn out their flash with excessive writes

comment:2 Changed 11 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

comment:3 Changed 11 years ago by florian

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with [7122]. Backports/snaphots scheduled

comment:4 Changed 11 years ago by zandbelt

  • Resolution fixed deleted
  • Status changed from closed to reopened

the actual patch /changeset/7122.html does not solve the issue because the symbolic link should be "the other way around" ...

a even better solution (taking care of "upgrading" as well) would be the following:

[ -f /usr/lib/asterisk/astdb ] && mv /usr/lib/asterisk/astdb /var/spool/asterisk/astdb

[ -h /usr/lib/asterisk/astdb ]
ln -s /var/spool/asterisk/astdb /usr/lib/asterisk/astdb

comment:5 Changed 11 years ago by florian

  • Status changed from reopened to new

comment:6 Changed 11 years ago by florian

Should be fixed with [7545], thanks !

comment:7 Changed 11 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

comment:8 Changed 11 years ago by zandbelt

  • Resolution fixed deleted
  • Status changed from closed to reopened

oops; the previously mentioned (and committed solution) only works the first time; once the link and db are in place (all other times) the link will be overwritten with a link to itself.
better change the 2 lines to 1 (-sf):

[ -h /usr/lib/asterisk/astdb ] ln -sf /var/spool/asterisk/astdb /usr/lib/asterisk/astdb

comment:9 Changed 11 years ago by florian

  • Resolution set to fixed
  • Status changed from reopened to closed

Should be fixed with [7818]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.