Operating System - HP-UX
1833863 Members
1945 Online
110063 Solutions
New Discussion

best commands to move data to new storage

 
SOLVED
Go to solution
Ricky_4
Frequent Advisor

best commands to move data to new storage

Hi All,

We are moving all data from SC10 to EVA3000. Data from sc10 are oracle and applications binaries and also oracle datafiles. We will do it while database is offline. Please assist us of what is the best command should we use to to successfully migrate those data. This comamand should preserve permission, symbolic links and date of the datafile.

Will highly appreciate your assistance.

Regards,

Adriatico
7 REPLIES 7
Bill Hassell
Honored Contributor
Solution

Re: best commands to move data to new storage

cpio will be the fastest. Use the puddle-mov e options:

cd /old_directory
find . | cpio -pudlmv /new_directory

find , assumes that there are no 'hidden' files, those that start with a period such as .profile and .exrc. If there are such files, use:

find . [.!]* | cpio -pudlmv /new_directory

The .[!.]* makes sure that .. is not matched and sent to the new location, yet finds all the 'dot-files'.


Bill Hassell, sysadmin
Geoff Wild
Honored Contributor

Re: best commands to move data to new storage

Actually, I have found vxdump/vxrestore to be fastest:

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

Where /zmnt is old filesystem and /oracle is new.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sยภเl Kย๓คг
Respected Contributor

Re: best commands to move data to new storage

cpio would be the best.

regards
SK
Your imagination is the preview of your life's coming attractions
Geoff Wild
Honored Contributor

Re: best commands to move data to new storage

Also, I believe cpio won't handle files bigger then 2GB.....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ricky_4
Frequent Advisor

Re: best commands to move data to new storage

Hi All,

The oracle datafiles from SC10 are more than 2 Gb. Aside from that, Oracle and applications will also move to EVA3000. So if cpio could not handle this what should be the command are appropriate in our migration. Please also consider oracle and applications binaries in the command you will provide.

Thanks in advance.

Adriatico
Sยภเl Kย๓คг
Respected Contributor

Re: best commands to move data to new storage

Yes i forgot to mention that cpio will not handle files with bigger sized files.I would prefer u can use either IgniteUX or fbackup to backup and restore it into ur newstorage.The advantage is that u can have a back up too before the migration

regards
SK
Your imagination is the preview of your life's coming attractions
Prashant Zanwar_4
Respected Contributor

Re: best commands to move data to new storage

Also you can try rdist using various options. This basically helps in maintaining copies of files to different hosts.
Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."