LinuxQuestions.org
Visit Jeremy's Blog.
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, 05: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 09:47 PM. Reason: The problem was solved by myself
 
Old 09-08-2009, 06: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, 06: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, 06: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, 07:21 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 09:17 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,658
Blog Entries: 56

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

Rep: Reputation: 191Reputation: 191
Moderator note: I have changed the thread title to be more connected to the post contents.
 
Old 09-08-2009, 09: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, 09: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, 10: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, 09:03 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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, 02: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


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

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

All times are GMT -5. The time now is 10:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration