Operating System - HP-UX
1833707 Members
2392 Online
110063 Solutions
New Discussion

Copying filesystem with links to other filesystems in different hosts.

 
Chern Jian Leaw
Regular Advisor

Copying filesystem with links to other filesystems in different hosts.

HI,

I have scenario whereby a filesystem /fs13/md6.uecommon.2/wmt8/utils/ resides on 1 fileserver, i.e fs13:

#cd /fs13/md6.uecommon.2/wmt8/utils/
# ls -l
lrwxrwxrwx ... bin->/fs12/md6.uecommon.1/utils/bin/

lrwxrwxrwx ... tools->/fs12/md6.uecommon.1/utils/tool_utils

However, the /fs12/md6.uecommon.1/ filesystems to which the contents of /fs13/md6.uecommon.2/wmt8/utils/ are pointing to resides on another fileserver, i.e fs12.

/fs12/md6.uecommon.1/ filesystems volumes are not mounted on the fileserver fs13, hence not available on fs13 fileserver.

I would like to do a rsync(differential copying), or even an rcp of the /fs13/md6.uecommon.2/wmt8/utils/ to another fileserver i.e sgfs.

Could anyone tell me how I could actually do this copying?

Note that the pointed to filesystems i.e. /fs12/md6.uecommon.2/ actually reside on a different fileserver.



2 REPLIES 2
Heiner E. Lennackers
Respected Contributor

Re: Copying filesystem with links to other filesystems in different hosts.

Hi,

i think the most simple way of copying a directory to another server with taking care of hard- and softlinks is using tar or cpio with remsh or rexec:

on (fs13), with = sgfs

cd /path/from/;tar cf - . | rexec "cd /path/to/;tar xf -"

You may want to change some options or use cpio or pax to do it.

If you can rlogin from to without entering a password you may user remsh insteat of rexec.

You have to make sure that the third server (fs12) is mounted on with using the same mountpoints as on

Heiner
if this makes any sense to you, you have a BIG problem
harry d brown jr
Honored Contributor

Re: Copying filesystem with links to other filesystems in different hosts.

Chern,

Make a symbolic link on fs13 and fs12:

fs13:

/fs12 -> /fs13

on fs12:

/fs13 -> /fs12

then they can easy rsync to each other.

live free or die
harry
Live Free or Die