nfs

Java Library to Monitor Remote NFS Directory Event on Linux

I need to be notified when files are created or renamed in a remotely mounted NFS directory recursively. After some google search, I found jnotify and jpathwatch, which work great on local directory but not NFS directory. These two library use the host platform’s native OS functions to avoid polling. On Linux, they use inotify, which doe...

Starting a file server (possibly NFSD) in snow leopard without requiring root?

I want my OS X app to share files via the loopback device. I want to do this so that my app can make a directory of frequently changing, read only files available to the user without messing with the users home directory. The files will be severed from the Application Support directory but the user will not have to concern themselves wit...

Ensure that file state on the client is in sync with NFS server

I'm trying to find proper way to handle stale data on NFS client. Consider following scenario: Two servers mount same NFS shared storage with number of files Client application on 1 server deletes some files Client application on 2 server tries to access deleted files and fails with: Stale NFS file handle (nothing strange, error is ex...

NFS home / .profile / 3 flavors of UNIX : best practices?

Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory. I'd like to have a (slightly) different .profile behavior based on the OS that I'm connecting to. I can hack something together, but I'd like to not re-invent the wheel if it's not necessary. Is there a best practice for splitting out .profiles sections base...

How to write reliable file management code on NFS

Please give me some general advises on how to write reliable file management code using NFS. How to avoid or handle ESTALE errors? Programming language doesn't really matter. Thanks. ...

Using couchdb on NFS

I am planning to use couchdb on a Linux VM with some limited local storage and a huge amount of NFS storage. What I would like to do is run one couchdb instance, but keep some databases on the local storage and some on the NFS. -If the NFS goes down and the couchdb process enters the 'D' state, will I still be able to talk to couch over...

open O_CREAT | O_EXCL on NFS in Linux?

When in the Linux 2.6 kernel and in NFSv3 did open("fname", O_CREAT|O_EXCL) became valid? The current canonical open(2) system call documentation (http://www.kernel.org/doc/man-pages/online/pages/man2/open.2.html) says everything is fine: O_EXCL ... On NFS, O_EXCL is only supported when using NFSv3 or later on kernel 2.6 or later. I...

I got an error when starting mysql: Unable to lock ./ibdata1, error: 11

when removed the ibdata1 it worked, and I cant understand how it happened. I checked with ps and there was no mysql process. also permissions were ok. Is there a way to check the integrity of this file? ...

rpcinfo -p hostname hangs for root user

Hi, I am trying to set up NFS but I am having some issues. What I don't understand is that if I try 'rpcinfo -p hostname' as a regular user, I get the result. However, if I run the same command as root user, it just hangs. Is there anything I should do? Thank you very much! ...

Determine whether a file is on NFS using system programming.

I need to determine if a file resides in NFS in my C program. I know there are several ways to do that differently on Linux, Solaris etc but I need to write a program which works on all Unix platforms like Solaris, AIX, HPUX along with Linux and Windows (if possible). I don't think i will be able to find something compatible with Window...

Zend_Search_Lucene, how to share an index storage folder over network

Hi, I am running web application on two different servers with load balancing, and using Zend_Search_Lucene for indexing documents. Now I am facing indexing issue which a user comes to the site through server #1 and stores information, Zend_Search_Lucene stores index only server #1. So once another user comes to the site through serv...

Track changes in nfs / sync nfs over multiple datacenters

We have two datacenters, each with a number of Linux servers that share a large EMC-based nfs. The challenge is to keep the two nfs' in sync. For the moment assume that writes will only occur to nfs1, which then has to propagate the changes to nfs2. Periodic generic rsyncs have proved too slow - each rsync takes several hours to comple...

Why is VMWare ESXi Performance over NFS Slow?

I am in the process of setting up a storage network for our Vmware ESXi Servers. The way it is set up, is as follows: Dell P200 Dual Core Xeon @3Ghz Server running Openfiler 2.3 Dell MD1000 DAS Unit Perc 6 SAS Controller, 512MB Battery Backed Cache 7 x 2TB SAS 7.2K Disks in RAID-10 (one hot-spare) 8 x Gigabit Ethernet Ports (Intel 100...

Can I get fcntl and Perl alarms to cooperate?

I'm on linux, nfs, with multiple machines involved. I'm trying to use fcntl to implement filelocking. I was using flock until I discovered it only works between processes on the same machine. Now when I call fcntl with F_SETLKW, perl alarms (for adding a timeout) don't work as before. This would normally be ok, but ctrl-c doesn't reall...

What happens in NFS if 2 or more servers try to write the same file simultaneously?

I'm working on a PHP webapp that does automatic resizing of images and I'm thinking of storing the cached copies on the NFS mounted NAS so it's easy for me to flush the cache when images are updated. The only thing I'm worried about is what happens in general with NFS if 2 or more of the servers in the cluster are trying to create the s...

where does qtcreator with cmake store run and build settings, and how to set via script?

In my usage at least, I sometimes delete my CMake build folder and create a new one, or have multiple build folders (one per computer) but only one source folder (nfs mount). From what I can tell, QT Creator saves settings into CMakeLists.txt.user inside the source tree, and some others settings into the 'project.cbp' file in the buil...

Is it possible to serve static files with nginx/ubuntu from an nfs mount?

I've been getting "403 permission denied" while using a nfs mount. Any ideas? NB: Disabled sendfile. ...

FreeBSD iostat - How to tell if there's a problem?

Hi, I run a FreeBSD NFS server and recently I've been having odd issues throughout the cluster (the Apache servers are hanging in "lockf" state when loading files from the NFS share, etc). I'm fairly new to this, so my question is how can I tell if a server's IO is getting overloaded? Here is my current iostat: [root@host ~]# iostat...

What is the simplest way of parallelization over a cluster with SSH and NFS?

I have a lot of trivially parallelizable computations and a lot (100s) of cores distributed overs SSH + NFS network. What is the simplest way of parallelization. The problem is that I don't know how long each task will take so I need some kind of queue. Is there something that is very easy to use? ...