LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2009, 04:55 AM   #1
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Rep: Reputation: 15
nfs: copying file


I used suse v10 sp2 linux. I encountered a strange problem and need your kind help.
mount -o rw,soft,timeo=10 192.168.56.220(server_ip):/suse2 /nfs(local mount point)
When I want to cp a big file from server to local and simultaneously stop the nfsserver service of the server. The cp command is just hanging(ctrl+c no use!).And after more than 10 seconds, the cp command was still hanging. I used soft mount, but why it is still hanging ? It was said in the book that the system should give some wrong information like input/output error and then stopped working.
Please help me!

Last edited by jcky; 09-10-2009 at 08:47 PM. Reason: The problem was solved by myself
 
Old 09-08-2009, 05:04 AM   #2
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
If its a real big file then its normal to stop responding for a while. It would take some minutes or so.

So wait for some time, after the copying is complete it will be back to prompt
 
Old 09-08-2009, 05:08 AM   #3
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
Sorry, you may misunderstand my meaning.
Normally, the system should give some wrong information, because the nfsserver service was stopped and I used soft mount.
Thanks for your help!
 
Old 09-08-2009, 05:14 AM   #4
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
Quote:
Originally Posted by jcky View Post
Sorry, you may misunderstand my meaning.
Normally, the system should give some wrong information, because the nfsserver service was stopped and I used soft mount.
Thanks for your help!
Is your console giving some error or something? please post it
 
Old 09-08-2009, 06:21 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you want cp to continue the operation while nfs server restarts, this is a bit problem. Instead you can use scp to copy from server.
 
Old 09-08-2009, 08:17 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I thought you needed help because your finger was stuck on the ! key.
 
Old 09-08-2009, 01:36 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moderator note: I have changed the thread title to be more connected to the post contents.
 
Old 09-08-2009, 08:20 PM   #8
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
What I want to test is that rthe soft mount test could be ok. But failed.
Thanks for all.
Anyone can explain the problem?
Thanks!
 
Old 09-08-2009, 08:56 PM   #9
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
Very strange!
I used scp instead of cp. Also failed.(soft mount)
And ps aux checked.
It showed S status on scp command. But when I used ctrl+c, it is still hanging.(i.e no use)
Who can help me!!!!!
 
Old 09-08-2009, 09:07 PM   #10
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
what does hanging means? your whole system or just the console( I suppose just the console) ?

How big is the file and how much time did you wait ?
 
Old 09-09-2009, 08:03 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Check this page http://www.linuxtopia.org/online_boo...g-options.html . I reckon you need the 'intr' option as well.
 
Old 09-11-2009, 01:12 AM   #12
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jcky View Post
I used suse v10 sp2 linux. I encountered a strange problem and need your kind help.
mount -o rw,soft,timeo=10 192.168.56.220(server_ip):/suse2 /nfs(local mount point)
When I want to cp a big file from server to local and simultaneously stop the nfsserver service of the server. The cp command is just hanging(ctrl+c no use!).And after more than 10 seconds, the cp command was still hanging. I used soft mount, but why it is still hanging ? It was said in the book that the system should give some wrong information like input/output error and then stopped working.
Please help me!

Hi all,
Because the soft mount based on RPC. So if I closed the nfs server, the soft mount would not take effect. But if I stopped the network service or shutdowned the server that meant the rpc port was closed. The soft mount took effect.Last time, I misunderstod the meaning of soft mount so that I got confused. That is the problem.
 
  


Reply



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
error copying nfs folder jkeertir Linux - Hardware 3 03-27-2008 11:08 PM
problem copying nfs folder of NAS jkeertir Linux - Hardware 0 03-25-2008 06:47 AM
NFS Trouble on copying large files (400Mb+) Yalla-One Slackware 2 03-17-2007 08:29 AM
NIS, NFS and file copying (or not) throbgristle Linux - Networking 1 01-28-2004 09:57 AM
copying files to NFS share goes into uninterruptible sleep damien Linux - Networking 1 10-05-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 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
Open Source Consulting | Domain Registration