LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   hang when copy file to nfs share (http://www.linuxquestions.org/questions/linux-networking-3/hang-when-copy-file-to-nfs-share-625778/)

walterwkh 03-04-2008 11:11 PM

hang when copy file to nfs share
 
Hi, for some reasons, I have to create a nfs share on my linux share and then mount it to the server :

here is the /etc/exports :
/share/test 127.0.0.1/32(rw,no_root_squash) 192.168.1.0/24(rw,no_root_squash)

and restarted the nfs server and mount the share locally :
mount -t nfs -o rw localhost:/share/test /mnt/t1

after these, I dd a file to it :
dd if=/dev/zero of=/mnt/t1/oneg.txt bs=1M count=1024

this have 2 outcomes :
- only half of the files are copied
- the copy is hanged and the whole system hang

my kernel is 2.6.9-67.0.4.ELsmp
Please advise whether there is a bug involved and any patches available ?

jschiwal 03-04-2008 11:26 PM

Code:

/share/test 127.0.0.1/32(rw,no_root_squash) 192.168.1.0/24(rw,no_root_squash)
Why do you have a local directory exported to localhost?
If it is because you need to access the files from the same path on all hosts, simply create a symbolic link from /mnt/t1 to /share/test.

walterwkh 03-05-2008 08:34 PM

thanks jschiwal.

the reason is i need to setup a HA of several nodes, and each of them have the same configuration, therefore they have the same nfs share exported. And I can mount to each of them, from any of the node, so one of the possibility is mount to the local nfs share.


All times are GMT -5. The time now is 12:30 AM.