Operating System - HP-UX
1753720 Members
4852 Online
108799 Solutions
New Discussion юеВ

Re: What is the best command to copy file from one system to the other

 
Jeongbae Min
Advisor

What is the best command to copy file from one system to the other

Hello,

I'd like to move HP server from EMC DMX to EMC NS40. When I move file from DMX to NS40, I'd like to us cpio command. What is the right syntax to use it? if it is not good command, what it the best command to use it?

please let me know exact syntax for me.

Thank you in advance,

Jeong
20 REPLIES 20
Steven E. Protter
Exalted Contributor

Re: What is the best command to copy file from one system to the other

Shalom,

If the arrays can be connected, perhaps to the same fiber network, you should use EMC commands.

If that won't work you should investigate the symclone command that ships with EMC software.

The syntax depends on the relationship between the disks, which hopefully someone has set up on the target server.

You could if both systems present disk to the system at the same time be as simple as cp -rn

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeongbae Min
Advisor

Re: What is the best command to copy file from one system to the other

Hello Steven,

Unfortunately, We can connect two EMC boxes.

Can you provide me other solution?

Thank you for your input.

Jeong
Kapil Jha
Honored Contributor

Re: What is the best command to copy file from one system to the other

do you have both the disks presented on the server then there are a few commands...

cpio,rsync and dd.

If this is a data disk and your application is running rsync is the best I suppose.

If apps is not running dd and cpio is good.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Jeeshan
Honored Contributor

Re: What is the best command to copy file from one system to the other

You can either use Openmigrator

Or

use Vgextend with the new disk of new storage then mirror and finally vgreduce.
a warrior never quits
Prasanth V Aravind
Trusted Contributor

Re: What is the best command to copy file from one system to the other


Mirroring & unmirroring is a gud option , But there are some limits.

When you do mirroring the disks can get very busy & which impacts server performance. Also there is no option for roll back.

I suggest to go for any hostbase data migration tool.

You can go for softek.

Gudluck
Prasanth
Bill Hassell
Honored Contributor

Re: What is the best command to copy file from one system to the other

>> I'd like to us cpio command.

cpio is a good choice as long as you will not be copying files larger than 2GB. The man page warns you about this limitation. The commands would be (after creating an lvol on the new disk array):

# mkdir /newmount
# mount /dev/vgnew/lvolX /newmount
# cd /oldmount
# find . | cpio -pudlmv /newmount

The verify the counts:

find /oldmount -type f | wc -l
find /newmount -type f | wc -l
find /oldmount -type d | wc -l
find /newmount -type d | wc -l

The sizes (reported by du and bdf) for the source and destination will usually not match due to sparse file and directory optimization.


Bill Hassell, sysadmin
R.O.
Esteemed Contributor

Re: What is the best command to copy file from one system to the other

Another option is with fbackup-frecover:

(cd ; fbackup -i . -vf -) | (cd destination; frecover -Xrf -)

But if you have HP-UX 11.31 i think fbackup is no longer supported.

Regard,
"When you look into an abyss, the abyss also looks into you"
James R. Ferguson
Acclaimed Contributor

Re: What is the best command to copy file from one system to the other

Hi:

> R.O. : But if you have HP-UX 11.31 i think fbackup is no longer supported.

That's not true. The 'fbackup'/'frecover' utilities are deprecated in 11.31 but are still available.

Another alternative to everything mentioned thus far is to use 'pax'.

Regards!

...JRF...
R.O.
Esteemed Contributor

Re: What is the best command to copy file from one system to the other

"That's not true. The 'fbackup'/'frecover' utilities are deprecated in 11.31 but are still available."

It's good to know it !!!

Regards,
"When you look into an abyss, the abyss also looks into you"