Problem with NFS and new SUSE installs

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problem with NFS and new SUSE installs

Postby timesharesoftware » Fri Jan 23, 2015 12:51 pm

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?
timesharesoftware
 
Posts: 3
Joined: Fri Jan 23, 2015 12:35 pm

Re: Problem with NFS and new SUSE installs

Postby gardo » Fri Jan 23, 2015 3:12 pm

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.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Re: Problem with NFS and new SUSE installs

Postby DomeDan » Thu Jan 29, 2015 9:38 am

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.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 88 guests