1833776 Members
2380 Online
110063 Solutions
New Discussion

Re: copyng data

 
SOLVED
Go to solution
juan ramos_1
Advisor

copyng data

Hi
I need to copy about 400gb of data from one va7400 to eva3000, I need to preserve the data in the VA7410. I will create the same file system structure in the EVA . I like to use cpio for copyng filesystems but there are two many files over 2GB size and cpio don`t support that , what command is as fast as cpio and can copy over 2GB file size and preserve the permission, owner, etc..

Thanks for any help
6 REPLIES 6
Rodney Hills
Honored Contributor

Re: copyng data

If you are copying to tape, then use fbackup.

If you are copying via network connection and are using "remsh" or "ssh" and no one file is over 2G, then you can still use "cpio". You may want to pipe the output through "dd".

HTH

-- Rod Hills
There be dragons...
Steven E. Protter
Exalted Contributor

Re: copyng data

If they are on the same network, you can use scp to copy the data

scp -rp /source /target

scp supports files bigger than 2G

As does fbackup.

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
Robert-Jan Goossens
Honored Contributor
Solution

Re: copyng data

Hi Juan,

This will take a few hours :-)

# vxdump 0f - /orig|remsh target_server "(cd /copy;vxrestore rf -)"

If you have enough free space left

# /usr/local/bin/tar -cf - /orig | compress -c > /copy/data.tar.Z

# rcp -p /copy/data.tar.Z target_server:/copy

uncompress and tar.

Hope this helps,
Robert-Jan
juan ramos_1
Advisor

Re: copyng data

The Arrays are connected to the same server, I don`t have to use the network to copy from one to other.
Robert-Jan Goossens
Honored Contributor

Re: copyng data

vxdump -0 -f - -s 1000000 -b 16 /mount_point | (cd /copy_mount_point ; vxrestore rf -)

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: copyng data

If ssh won't do the copy its not the application. Its the filesystem not being set up on the target for largefiles.

newfs -f vxfs -o largefiles

or use fsadm to convert it.

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