-   Linux - Networking (
-   -   hang when copy file to nfs share (

walterwkh 03-05-2008 12:11 AM

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 :

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-05-2008 12:26 AM


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 09: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 11:26 AM.