Operating System - HP-UX
1834604 Members
4581 Online
110069 Solutions
New Discussion

filesystem copy from one host to other

 
SOLVED
Go to solution
vaman
Frequent Advisor

filesystem copy from one host to other

How you move a file system from one host to another. ( Assume that
both are using SAM )
vaman kulkarni
5 REPLIES 5
Darin S. Lory
Advisor

Re: filesystem copy from one host to other

Do you mean copy, or move underlying disks so taht the target system can read them again?

Tom T.
Rick Garland
Honored Contributor

Re: filesystem copy from one host to other

I like using vxdump/dump

/usr/sbin/vxdump 0f - /dev/vgXX/lvolXX | remsh myhost '(cd /apps/mydir; /usr/sbin/vxrestore -rf -)'


Ensure that the systems are trusting one another. The remsh trust can be temporary - remove after complete
Alexander M. Ermes
Honored Contributor

Re: filesystem copy from one host to other

Hi there.
What about the good old fbackup / frestore ?
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Bharat Katkar
Honored Contributor
Solution

Re: filesystem copy from one host to other

Vaman,
Fbackup can do the job for you but then you have to back it up on tape first and then restore the tape back on the other system.

Other way i would see is:

1. Export the filesystem, mount it on the other system and then copy it to new filesystem on that system.

2. Configure rsh/rcp ( you need to set up either .rhosts or hosts.equiv files on both the servers) and simply do the remote copy using rcp. Well if it is huge filesystem then better to backup it up on tape and then proceed with restore on the other system.

Remember both this option will put considerable load on your network.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: filesystem copy from one host to other

By simple and effective, go to Network File System ( NFS )

machine1 ----> machine2

Export the file system with access to machine2

On machine2 mount the file system and use it. If you want to make use remote host (machine1 file system) as an additional resource then no need to copy into the localhost (machine2)

Else after making nfs setup, copy the needed file sytem and umount it there.


Else go for r* commands. Specfically, rcp there. Make setup rhosts file to make remote command execution between two hosts.

I Suggest you to go for NFS*
Easy to suggest when don't know about the problem!