LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 03-05-2008, 12:11 AM   #1
walterwkh
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
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 ?
 
Old 03-05-2008, 12:26 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.
 
Old 03-05-2008, 09:34 PM   #3
walterwkh
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS File Share - Cannot Mount Ingla Linux - Software 6 08-06-2007 08:56 PM
file permission problems on nfs-share Falafel Linux - Networking 3 12-05-2006 02:57 PM
cant copy file from samba's share apeacez Linux - General 1 10-11-2004 11:06 AM
Bad file naming during copy over NFS shares Tarrasque Linux - Networking 0 03-22-2004 07:26 AM
Is it better to use sftp to trasfer a file than to use NFS share? mphreddy Linux - Networking 1 01-02-2004 09:34 AM


All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration