- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What is the best command to copy file from one sys...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2010 03:15 PM
05-12-2010 03:15 PM
What is the best command to copy file from one system to the other
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2010 03:18 PM
05-12-2010 03:18 PM
Re: What is the best command to copy file from one system to the other
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2010 03:22 PM
05-12-2010 03:22 PM
Re: What is the best command to copy file from one system to the other
Unfortunately, We can connect two EMC boxes.
Can you provide me other solution?
Thank you for your input.
Jeong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2010 06:43 PM
05-12-2010 06:43 PM
Re: What is the best command to copy file from one system to the other
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+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2010 07:56 PM
05-12-2010 07:56 PM
Re: What is the best command to copy file from one system to the other
Or
use Vgextend with the new disk of new storage then mirror and finally vgreduce.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2010 11:44 PM
05-12-2010 11:44 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 03:13 AM
05-13-2010 03:13 AM
Re: What is the best command to copy file from one system to the other
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 03:35 AM
05-13-2010 03:35 AM
Re: What is the best command to copy file from one system to the other
(cd
But if you have HP-UX 11.31 i think fbackup is no longer supported.
Regard,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 03:51 AM
05-13-2010 03:51 AM
Re: What is the best command to copy file from one system to the other
> 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 03:54 AM
05-13-2010 03:54 AM
Re: What is the best command to copy file from one system to the other
It's good to know it !!!
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 05:48 AM
05-13-2010 05:48 AM
Re: What is the best command to copy file from one system to the other
Actually it is more like "no longer recommended". And unfortunately, changes were made to fbackup for 11.31 that affect compatibility with all previous versions of fbackup. I think fbackup is being deprecated in order to push sales for Data Protector. The alternative utilities such as pax, tar and cpio cannot handle ultra-high speed tape drives like the LTO4. fbackup can handle any size file, runs up to 6 separate reader processes to keep the tape drive busy and adds high speed search marks for very fast restores of selected files.
So the fbackup-frecover pair continues to work at 11.31 and would be the fastest file-by-file transfer method with no limits on file size. rsync is also a great choice, especially if you must keep the machine online as long as possible. rsync (after the initial pass) will update only the changed files and directories and can scan millions of files in terabytes of filesystems in just a few minutes when there are just a few differences. rsync is probably not on your system -- get a copy from http://software.hp.com
dd is by far the fastest but requires a little more thought. It is a raw disk copy and with a block size of 1 to 4 MB, can run as fast as the arrays allow. You create lvols on the new array that match the current lvols, being careful to handle the boot disk for vg00 correctly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 08:18 AM
05-13-2010 08:18 AM
Re: What is the best command to copy file from one system to the other
Thank you for your input.
We had files bigger than 2 GByte. then only option is DD.
I don't need to copy root volume group. what should I be careful and what is the exact command to copy files system from one to the other box.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2010 08:43 AM
05-13-2010 08:43 AM
Re: What is the best command to copy file from one system to the other
The fbackup/frecover given above by R.O. will work just fine. Filesystems simply sit inside an lvol, so if you want the same physical layout, you'll need to create the same volume group(s) and lvol(s) for the destination array. Naturally, the VG name will be different but can be changed later. Or you can rearrange the VG and lvol names and sizes but this assumes you can keep track of everything.
If you use fbackup+frecover, then use newfs for each lvol, then mount them under temporary directories and copy the files. Then verify the file and directory count with find+wc mentioned above.
With dd, you will still create the destination lvols and then for each of the volumes:
dd if=/dev/vg01/lvol1 of=/dev/vgnew01/lvol1 bs=2048k
Repeat for each lvol.
For the dd command, you'll be copying an active mountpoint and therefore the destination will need fsck to clear up incomplete pointers. For both methods, files will change during the copy so you need to understand if some files depend on others (like matching records) and resolve this with your applications -- or run the commands during a quiet maintenance period.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2010 01:36 PM
05-14-2010 01:36 PM
Re: What is the best command to copy file from one system to the other
i will post the syntax soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2010 01:45 PM
05-14-2010 01:45 PM
Re: What is the best command to copy file from one system to the other
> We had files bigger than 2 GByte. then only option is DD.
Not true. 'fbackup'/'frecover' handle largefiles just fine. Too, using 'pax' this can be accommodated also.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2010 03:51 PM
05-18-2010 03:51 PM
Re: What is the best command to copy file from one system to the other
If I used a commend as below "cp -rp old_mount_point new_mount_point" instead of dd, cpio commands
do you think it has any problems ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2010 04:06 PM
05-18-2010 04:06 PM
Re: What is the best command to copy file from one system to the other
> if I used a commend as below "cp -rp old_mount_point new_mount_point" instead of dd, cpio commands do you think it has any problems ?
Make sure that the 'new_mount_point' doesn't exist when you begin the process. Since 'cp' creates the new directory, the destination directory should not already exist.
You will not preserve sparse files with 'cp'. Instead, they wilk be "un-sparsed".
The use of 'fbackup/frecover' as R.O. noted is a better alternative than 'cp' in my opinion.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2010 04:18 PM
05-18-2010 04:18 PM
Re: What is the best command to copy file from one system to the other
Can you give me a good syntax for fbackup/fresore command to copy from one storage system to the other?
Thank you in advance
Jeong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2010 04:26 PM
05-18-2010 04:26 PM
Re: What is the best command to copy file from one system to the other
If you wish to use 'fbackup'/'frecover' you could do:
# # cd srcdir && fbackup -i . -f - | ( cd dstdir && frecover -Xsrf - )
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2010 08:05 PM
05-18-2010 08:05 PM
Re: What is the best command to copy file from one system to the other
If you satisfied with the answer and your problem got solved then
please make a habit to assign points,
Those people who give there valuable time for your problem they
should expect some apparition from you in terms of points.
To know how to assign points please go through the below link
http://forums13.itrc.hp.com/service/forums/helptips.do?admit=1094476
27+1256027208667+28353475#33
Thanks
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2010 08:07 PM
05-18-2010 08:07 PM
Re: What is the best command to copy file from one system to the other
Here is the link
http://forums13.itrc.hp.com/service/forums/helptips.do?admit=109447627+1274241943888+28353475#33
Suarj