1846861 Members
26852 Online
110256 Solutions
New Discussion

Re: rcp issues

 
joe_91
Super Advisor

rcp issues

I have to copy /opt/oracle directory from machine A to machine B. command i use is rcp -rp machine A:/opt/oracle/* /opt/oracle/

what happens is it goes thru but gets stuck in the middle with /opt at 100% full. (/opt and /opt/oracle are seperate filesystems)I am not sure why it copies data into /opt also. Am i doing something wrong?

Thanks

Joe
6 REPLIES 6
Matthew_50
Valued Contributor

Re: rcp issues

1. On the machine B, check if /opt and /opt/oracle are seperate filesystems, using `bdf` to verify.

2. if so, login to the machine B,
switch working directory to /opt, use
`rcp -rp machineA:/opt/oracle .`

this should be okay :-)
Ninad_1
Honored Contributor

Re: rcp issues

Hi Joe,

If /opt/oracle is a separate filesystem on machine B then the free space left before copying may not be sufficient to copy the /opt/oracle from machine A - Is the /opt/oracle on machine B empty before copying ? - if not then there may be already some dirs in /opt/oracle on machine B which are extra to those on machine A and hence space is not enough to copy contents from machine A

Regs,
Nad.
Todd McDaniel_1
Honored Contributor

Re: rcp issues

Joe,

Depending on how big you /opt/oracle mount point is...

I would suggest copying your data over to a temporary space say in /tmp or /var/adm/crash on the new box then you can rule out any issues with rcp b/t the 2 boxes.

Then you can move the data to the correct filesystem under /opt/oracle on the same box.
Unix, the other white meat.
Rita C Workman
Honored Contributor

Re: rcp issues

Well first off, I usually don't rcp Oracle.

You may be better off to tarball the /opt/oracle with a tar cvf of the directories - then rcp the tarball file over to the other machine. Drop it where you want the files and untar them with a tar xvf command...
That way you get every little permission and link, etc. all nice and clean.

Just a thought,
Rita
morganelan
Trusted Contributor

Re: rcp issues

Hi Joe,
I think you must create file system with another name so system can not confuse to it.
Let say currently you have /opt/oracle on machine A so you must create /oracle/opt on machine B so this folder is really separate file syatem from /opt.
Kamal Mirdad
Rajesh R_2
Frequent Advisor

Re: rcp issues

Hi Joe,

Create a filesystem in system B by name /opt/oracle and this filesystem size should be same as that of the filesystem /opt/oracle in system A. Now do the rcp -pr from system A to system B. It should be fine.

Issue the following command from system A:

rcp -pr /opt/oracle/* systemB:/opt/oracle/

Regards
Rajesh