[OpenSIPS-Users] Flatstore files missing calls

Ben Newlin Ben.Newlin at genesys.com
Fri Oct 2 15:29:08 EST 2020


You need to move the file locally first and then issue the MI command. Once OpenSIPS is writing to the new file, then you can move the old file off the box or do whatever you like with it.

If you issue the rotate MI command without moving/renaming the file, OpenSIPS will just re-open the same file and continue writing to it.

Ben Newlin

From: Users <users-bounces at lists.opensips.org>
Date: Friday, October 2, 2020 at 10:47 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Flatstore files missing calls
But I move the file to another box, via an NFS mount.
That's why my approach is better. I build a list of files, rotate, and then move the files across the Internet.


On Fri, Oct 2, 2020 at 10:32 AM Liviu Chircu <liviu at opensips.org<mailto:liviu at opensips.org>> wrote:
On 02.10.2020 17:23, Saint Michael wrote:
the order of actions seems to be problematic. what if I issue a rename, move command, and opensips is actually at the same time writing to the file?

:) that is the part which confuses everyone when working with this module (myself included, when I began using it).

The answer: it simply works!  OpenSIPS will continue writing to the moved file until you rotate it, as the "move" operation simply changes the inode of the file (its reference, hook, pointer, etc.), without touching its contents.  This seems to work well on ext filesystems, such as ext4.  I have a feeling this is not the case for all filesystems, though.

--

Liviu Chircu

www.twitter.com/liviuchircu<http://www.twitter.com/liviuchircu> | www.opensips-solutions.com<http://www.opensips-solutions.com>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201002/94c32c1c/attachment.html>


More information about the Users mailing list