1824988 Members
1925 Online
109678 Solutions
New Discussion юеВ

Re: SCP failed I/0 error

 
SOLVED
Go to solution
sam_25_1
Frequent Advisor

SCP failed I/0 error

Hello Everyone,

When i am doing a scp to copy directory from one server to anaother i get the following eror message.

scp: /ohrprod.OFF.Jan-20-2008-014500.1: I/O error.

I was previous able to do a scp copy before, but now I am getting that error message.

The comand format is

scp -r @source ip:/source file / destination file.

The file size is more than 2 gb so i also did a fsadm -F vxfs -o large file /fiel system

I would be greatfully if any one could help me out fro teh same.

Thanks in advance.

Have a nice day.

Sam
8 REPLIES 8
Dave Hutton
Honored Contributor

Re: SCP failed I/0 error

Filesystem full on the remote system?

Are you sure your command took? Can you fsadm -F vxfs /mountpoint on the remote filesystem?

It is -o largefiles no space and plural. Just making sure you had the right -o option.

sam_25_1
Frequent Advisor

Re: SCP failed I/0 error

Hi dave,

thanks a lot for your speedy reply, i sincerly appreciate it.

yes there was i typing error,

the command whihch i executed was

fsadm-F vxfs -o largefiles / filesystem

wheni do a bdf comand there is nearly 20 gb of free space still left in it.

i was able to a scp copy on friday as i manually take a backup of the directory.. but today for soem reasons it goes through 100% and finally gives me I/O error
.

Please let me know what else can i do
Mridul Shrivastava
Honored Contributor

Re: SCP failed I/0 error

You mentioned that you were able to do scp on friday?
what was the file size that day, was it more than 2 GB ??


is the target filesystem of the scp configured to allow large files? Have you tried say a local dd of /dev/random to create 2GB file in the target filesystem to make sure it can take 2GB file?

Is scp the only option to copy over the file ? If yes then,I would:

On source host:
split -b 1024m mybigfill /aaa/bbb/mbf

This will split your file into 1GiB files /aaa/bbb/mbfaa, /aaa/bbb/mbfab, /aaa/bbb/mbfac ...

Now scp these /aaa/bbb/mbf* files to the destination host.

On destination host:
cat /aaa/bbb/mbf* > mybigfile

Man split for details. Split will avoid the all your eggs in one basket problem
Time has a wonderful way of weeding out the trivial
sam_25_1
Frequent Advisor

Re: SCP failed I/0 error

Hi Mirdul,

Thanks alot for your reply, Yes I was able to scp the file on friday and they were larger than 2 gb plus.

i even execute the fsadm command and check the echo $? and theoutput returned 0. so i beleive the fiel got excuted.

I have not tried the split command before, I would go through the man pages for it.

thanks alot for replying to both my querries

sam_25_1
Frequent Advisor

Re: SCP failed I/0 error

When I do a Scp to copy files from one server to another, I finallly get teh follwoing error message

ohrprod.OFF.Jan-20-2008-014500.1 100% 2048MB 1.0MB/s 33:32
scp: /db_backup/ohrprod.OFF.Jan-20-2008-014500.1: I/O error

Please let me know if i could do any changes on it..

thanks everyone for your help
Mridul Shrivastava
Honored Contributor
Solution

Re: SCP failed I/0 error

Sam,

Have a look at the following thread and check the ssh version:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1050424&admit=109447626+1200947693593+28353475
Time has a wonderful way of weeding out the trivial
sam_25_1
Frequent Advisor

Re: SCP failed I/0 error

Hello Everyone,

Thanks a lot for all your inpupts.

Lucky to have someone to assist & guide me.

Have a nice day.

Regards

Sajid
OldSchool
Honored Contributor

Re: SCP failed I/0 error

i found this in another of yours posts....so I assume you're still having issues.....

"When I do a Scp to copy files from one server to another, I finallly get teh follwoing error message

ohrprod.OFF.Jan-20-2008-014500.1 100% 2048MB 1.0MB/s 33:32
scp: /db_backup/ohrprod.OFF.Jan-20-2008-014500.1: I/O error

Please let me know if i could do any changes on it..

thanks everyone for your help "


however, did you ever check the version of ssh as noted previously???