- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Fastest copy method
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
03-22-2004 02:30 AM
03-22-2004 02:30 AM
Fastest copy method
My question: Is this the fastest way to copy the data? Is there another 'copy' command that works faster?
Thanks for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:33 AM
03-22-2004 02:33 AM
Re: Fastest copy method
vxdump 0f - /emc_mnt|(cd /clarion;vxrestore rf -)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:35 AM
03-22-2004 02:35 AM
Re: Fastest copy method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:38 AM
03-22-2004 02:38 AM
Re: Fastest copy method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:44 AM
03-22-2004 02:44 AM
Re: Fastest copy method
1) Create a new LVOL on the new array (as big as you like so long as it is at least as large as the LVOL on the old array).
2) Umount filesystem on old array.
3) dd if=/dev/vg02/rlvol1 of=/dev/vg05/rlvol1
bs=1000k
4) Change /etc/fstab so that the mountpoint is changed to reflect the new VG.
5) Mount the filesystem on new array.
where vg02 is the "old" VG and vg05 is the "new". You probably need to play with bs to get optimum transfer speed. Because we are raw copying the underlying filesystem data structures come over exactly as they were. You can also use fsadm -b after the dd to "grow" the filesystem to fit the larger LVOL so that you can set up the filesystem to be as big as you like.
Obviously, you could have as many of these dd's goinmg as you like.
One "gotcha" with cp is preservation of owner/group and permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:48 AM
03-22-2004 02:48 AM
Re: Fastest copy method
Another disadvantage to using "cp -rp" is it does not cleanly copy "special" files.
So there you go:
1. vxdump / vxrestore
2. dd method
3. cpio
all of these preserve ownerships and file integrity...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:49 AM
03-22-2004 02:49 AM
Re: Fastest copy method
vxdump -0 -f - -s 1000000 -b 16 /data/work | (cd /data/worknew ; vxrestore rf -)
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 02:55 AM
03-22-2004 02:55 AM
Re: Fastest copy method
I agree with A. Clay about being careful with the "cp" command which is why I would suggest you "cd" to the filesystem you want to copy and then do "cp -rp . /newlocation".
We decided renaming volume groups was the easiest thing to do so created new volume groups on the EVA with identical logical volumes to the ones we were copying. We created new filesystems and mounted them to tempory locations. We then did the "cp .rp .". When we were happy, we remounted the new filesystems on the old mountpoints. When we were happy everything was OK, we exported the old XP volumes groups, exported the new ones and imported them again with the old names.
This way we could be sure that the system looked exactly the same and any script anywhere on the system doing things that it shouldn't be, i.e depending on the filesystem device name would still work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 03:02 AM
03-22-2004 03:02 AM
Re: Fastest copy method
Besides, if the intent is to have the migrated filesystems look exactly like the old (meaning it's LVOLS as well are named the same).. the fix is easy.. export with the map file option.. edit the map file and re-import your migrated VG with the orginal names.
We should be careful here IMHO.. I've seen a number of Junior admins out there that followed a track that "..hey this worked! so this should work for all cases...". And I've been burned once trusting that one solution fits all...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 03:05 AM
03-22-2004 03:05 AM
Re: Fastest copy method
I must admit, the mirroring option seems attractive to me, especially as we have to export and re-import our volume groups anyway. I might try this for our next move next week.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 03:08 AM
03-22-2004 03:08 AM
Re: Fastest copy method
dd would be the fastest
vxdump just a tad slower
cpio would come last
and forget "cp -rp" from now on. If it's not whole filesystems that you are copying/migrating -- the dd and vxdump/vxrestore* is out of the question... your friend here is "cpio".
(Although VxFs 3.5 I think now supports vxdump/vxrestore of directories on VxFS filesystems....)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 03:14 AM
03-22-2004 03:14 AM
Re: Fastest copy method
That is why I did not suggest it in the first place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 03:19 AM
03-22-2004 03:19 AM
Re: Fastest copy method
But is there even an iota of possibility that he's using VxVM instead of LVM? For which LUN sizes will not matter much if using the mirroring approach..
Or if they are indeed using LVM.. possible that the good Admin has set up VGs that was "forward looking".. meaning expecting the biggest of LUNs.. We do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 04:06 AM
03-22-2004 04:06 AM
Re: Fastest copy method
Do you have the capability to map BCVs from one frame to the other? Are they both assigned to the same Server?
The only flaw to my plan would be if the BCV compatibility is not good...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 04:18 AM
03-22-2004 04:18 AM
Re: Fastest copy method
An even elegant solution...
I keep on forgetting Clarion is now part of EMC.. Last I've heard BCV's can extend to Clarions as well..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 04:21 AM
03-22-2004 04:21 AM
Re: Fastest copy method
Every once in a while even a blind squirrel can find a nut!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 05:00 AM
03-22-2004 05:00 AM
Re: Fastest copy method
As far as the BCV issue is concerned, what EMC is telling us is that the LUNs have to be the same size for a SANcopy to work. Mapping the BCV from the Symmetrix to the Clariion was never discussed and if it can be done might be a solution for at least one server's worth of data (we only have one using BCVs). The rest of the data will have to be copied as I described in my original post (unless there is some other magical method that EMC hasn't talked about yet.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 05:03 AM
03-22-2004 05:03 AM
Re: Fastest copy method
Of course that is a lot of legwork and can be tricky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 05:10 AM
03-22-2004 05:10 AM
Re: Fastest copy method
Just do it. Don't even worry. Just 80 GB? Running at say 80MB/sec? That'll be 1000 seconds. Is that a problem? If it is please explain as that knowledge will help define a better solution.
Mind you, I would encourage to basic base performance test, possibly using the real data, but perhaps better use /dev/null to write to and /dev/zero to read from. Just make sure you can run at the expecteed speeds, notably on the new device. You want to know for a fact that it is performing as expected before putting it into production no? So be sure not to find out during the real, can not go back in time, copy but find out now while you can still tweak and/or fix.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 05:20 AM
03-22-2004 05:20 AM
Re: Fastest copy method
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 06:59 AM
03-22-2004 06:59 AM
Re: Fastest copy method
dd with a 1K blocksize , and then dont forget to do the extendfs so that the newer size is reflected.
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:00 AM
03-22-2004 08:00 AM
Re: Fastest copy method
That's abous as slow as you can possibly make it (512b being the slowest :-).
Now if you had said ... 1024k
If dd is the weapon of your choice, IMHO you should use at least 64K blocks, but preferably more in order to hit a good bandwith and not be bogged dwn on exsessive IO/sec rates.
JMHO,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:09 AM
03-22-2004 08:09 AM
Re: Fastest copy method
The other thing if using dd for this task is to NOT USE the seemingly equivalent ibs=64k obs=64k but rather use bs=64k. When using ibs= and obs= there is a copy operation from the input buffer to the output buffer that must be done whereas when using bs= there is but one buffer for both operations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:28 AM
03-22-2004 08:28 AM
Re: Fastest copy method
I used dd to migrate LVs from FC60 to VA7410 recently. I did some tests & saw that as you block size doubled the migration time halved up to about 512K or 1MB.. I decided to use 4MB as that is the extent size and got a pritty good transfer rates.
The only bit of advice is enable pre-fetch (if it exists on your storage device)
Regards
Tim