Page 1 of 1

Problem with NFS and new SUSE installs

PostPosted: Fri Jan 23, 2015 12:51 pm
by timesharesoftware
Running
ViciBox Redux v.6.0.1-140722

I am posting this to see if anyone has a solution other than modifying the AST_update.cgi script.

We use an NFS mounted archive server for various things on all the dialing machines in a cluster. Normally when the NFS mounted machine goes offline, such as maintenance, that drive becomes inaccessible.

This is not a problem as the dialer continues to run, unless you try to stat the NFS drive, example df, however df -x nfs normally ignores these NFS mounted drives.

BUT now 'df -x nfs' does not ignore them! YIKES AST_update.cgi uses that exactly and when it does it locks hard. I can kill the df process but it just happens again.

I found out if you do 'mount' and look for the mount type it has 'nfs4' and therefore df -x nfs still reads it, YIKES!

However 'df -x nfs4' does do the job, there for I have to edit line 684 from:
Code: Select all
@serverDISK = `$dfbin -B 1048576 -x nfs -x cifs -x sshfs -x ftpfs`;


to:
Code: Select all
@serverDISK = `$dfbin -B 1048576 -x nfs -x nfs4 -x cifs -x sshfs -x ftpfs`;


Next update it will be wiped out. How do I get this to work correctly?

Re: Problem with NFS and new SUSE installs

PostPosted: Fri Jan 23, 2015 3:12 pm
by gardo
Just a question: why not just use the FTP archiver script of Vicidial? Instead of mounting an NFS drive, it can upload to a FTP server. It's more resilient to errors since the recordings gets saved locally and remotely. So if something happens to the connection, the recordings don't get lost.

What else are you using the NFS drive for (aside from storing the recordings)? One major issue that most users encounter is when the drive becomes inaccessible as your case is, running scripts crashes or get stuck.

Re: Problem with NFS and new SUSE installs

PostPosted: Thu Jan 29, 2015 9:38 am
by DomeDan
timesharesoftware: I encounter the same problem as you http://vicidial.org/VICIDIALforum/viewt ... =4&t=27605
my solution was to only check / but the vicidial team added the -x flags instead 8)

You could post this to the issue tracker with a diff -u patch file with the change so it will be fixed in the trunk

gardo: a NFS mount is great if you want to keep files on a separate server but be able to access them easily.
and it is as resilient as FTP because (at least I) only copy recordings to the NFS mount. I agree that its not a good idea to let vicidial write directly to the NFS drive.