1836053 Members
2950 Online
110089 Solutions
New Discussion

swcopy problems

 
SOLVED
Go to solution
Greta Blamire
Frequent Advisor

swcopy problems

I getting errors with swcopy, the process is:
1. Download patches from web onto PC.
2. FTP to 9000 server (K and/ or R), using binary transfer.
3. Change the name from PHCO_13387.html to PHCO_13387.
4. Do a sh PHCO_13387 to get the depot.
5. Bring up swcopy and attempt to copy, always get a "an I/O error occured" from the R servers, the K copied one patch and then started the "I/O error" problem.
I have quite a few patches to put on and need to bundle them up. Thanks for your help!
If you can't face the facts, change them!
12 REPLIES 12
Patrick Wallek
Honored Contributor
Solution

Re: swcopy problems

Are you getting any messages other than I/O error occurred? Can you post them, perhaps as an attachment?
Rita C Workman
Honored Contributor

Re: swcopy problems

OK..I prefer to do an ftp download right from My server to the HP FTP Server. That way I avoid having to move anything and I download from their HPUX_patches so I don't have to rename. I just:

cd /tmp/patches
ftp
login as anonymous
cd hp-ux_patches
cd down through there
('get' the patches I want)
*************
Now just sh them and swcopy.
Generally I have less problems this way then when I would do from the website...
But it's just a suggestion,
Regards,
sung-hoon chang
Advisor

Re: swcopy problems

Hello

I think, your steps are perfect.

But I recommand some check,
1) If you use nfs mount for /var/tmp, the swcopy will be failed. SD format does not support nfs mount for /var/tmp.
2) If you use read-only filesystem for target dir, the I/O error will be occured.
3) If you have not enough /var space, these kind of problem will be occured.
John Eaton
Frequent Advisor

Re: swcopy problems

I'm stuck with this process (ftp to PC then to UNIX) as well. The process you describe should work fine.
I've found that when you unpack the depot file (sh filename...) if it did not transfer properly, you will get an error then.
I've done this for hundreds of megs ove the last 2 years without any problems.
Gary Seibak
Advisor

Re: swcopy problems

It sounds like the .depot is corrupted. vi the .depot to see if there are any funky characters in the file like "^H or ^M" at the end of each line. If there are then you need to get rid of these characters. In vi mode you can do :%s/^M//g Please note that the "^M" characters are actually created by holding the control key down and pressing the "v" key and then the "m" key. save the file and rerun swcopy.
Greta Blamire
Frequent Advisor

Re: swcopy problems

Thanks for all the replies, here is what I've come up with so far:

Patrick- it's the only error I get, and it's attached in the swcopyerror attachment.

Rita- my server isn't connected to ftp from the server directly

Sung-hoon - Thanks for the reality check, but it's not nfs mounted or read only and there is plenty of room.

John- That's what confuses me, I'm not getting an error with the unpack.

Gary- Great idea, but I can't vi the .depot, they aren't readable, are they normally? I attached my attempt to vi one. It's the vi attachement.

Again, thanks everybody, if you have any more ideas, I appreciate it!
If you can't face the facts, change them!
Greta Blamire
Frequent Advisor

Re: swcopy problems

Thanks for all the help!
Patrick - No, unfortunatly only one error, it's attached named swcopy error
Rita - I'm not connected to do ftp from the server
Sung-hoon - Thanks for the reality check, but it's not nfs-mounted or read only, and there is lots of room.
John - That's what confuses me, I don't get an error with unpack.
Gary - I can't vi the .depot, it's not readable, should it be? Attached is my attempt at this, name vi.
If you can't face the facts, change them!
Timothy Czarnik
Esteemed Contributor

Re: swcopy problems

Greta,

This has happened to me before when I don't use binary transfer in ftp, as opposed to ASCII.

-Tim
Hey! Who turned out the lights!
Timothy Czarnik
Esteemed Contributor

Re: swcopy problems

Greta,

This has happened to me when I didn't use binary mode with ftp to transfer the files.

-Tim
Hey! Who turned out the lights!
Greta Blamire
Frequent Advisor

Re: swcopy problems

Thanks for all the replies!
Patrick, no just the one error, which reads, "an I/O error occured when performing this task".
Rita, I'm not connected to ftp from the server
Sung-hoon, thanks for the reality check but it's not nfs mounted or read only and there's plenty of room in the directory.
John, That's what confuses me, I don't get an error with the unpack.
Gary, I can vi the .depot, they aren't readable, should they be? It looks like it's binary.
If you can think of anything else I sure would appreciate it!
If you can't face the facts, change them!
James R. Ferguson
Acclaimed Contributor

Re: swcopy problems

James R. Ferguson
Acclaimed Contributor

Re: swcopy problems