- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copy thousands and thousands of file
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-24-2004 07:13 PM
05-24-2004 07:13 PM
Copy thousands and thousands of file
I have a VG with 1 filesystem, 28GB in size, stripped across 4 EMC 8GB luns. I wanted to migrate this filesystem to a 35GB XP lun.
The problem is since this filesystem is striped, I could not pvmove or perform a mirror extend and reduce online to migrate the data. We are forced to perform a manual copy offline.
The we realised that there are a few directories in the filesystem contains thousands of file. Several directories contain excess of 50k number of files. One directory contains 150k number of files and the one contains 600k files. We could not possibly copy all the files within the limited downtime.
Is there a faster way to migrate the filesystem? Or can we use dd command on the LV device file to copy?
Any suggestion is appreciated. Currently we are using "find
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 08:38 PM
05-24-2004 08:38 PM
Re: Copy thousands and thousands of file
This is always a problem; if you have a good backup product I would use it. Backup to tape, and restore to the new filesystem.
the find in combination with cpio is quit fast, but with a few hunderd thousand files this will take hours. I would remove any verbose output from the command to increase speed.
# find /souce -xdev | cpio -pcmud /target
Hope this helps a bit,
Kind regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 08:41 PM
05-24-2004 08:41 PM
Re: Copy thousands and thousands of file
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 12:58 AM
05-25-2004 12:58 AM
Re: Copy thousands and thousands of file
vxdump -0 -f - -s 1000000 -b 16 /zmnt/emc/mount | (cd /xpmount ; vxrestore rf -)&
where /zmnt/emc/mount is the mount point on the old frame and /xpmount is the mout on the new one.
I've done frame to frame migrations in the past, and when mirroring wasn't available, vxdump was the fastest.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 07:57 AM
05-25-2004 07:57 AM
Re: Copy thousands and thousands of file
I never did this for a striped filesystem, but for database-containers on rawdevices. A dd on lvol-level should work. The filesystem attributes should remain the same. You need to create an lvol of the same size as source in your 35G LUN, which you can extend later on.
LE-sizes and physical attributes should be the same. Unmount, dd the source-r(!)lvol to the target, fsck, mount (of course with same filesystem attributes) and there you are.
Of course you should do a test before, may be with a smaller filesystem of 1GB.
Good luck
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 08:55 AM
05-25-2004 08:55 AM
Re: Copy thousands and thousands of file
I would think the:
cd fromdir ; tar cf - . | ( cd todir ; tar xf - )
would work...
Not sure if DD would be faster, Just make sure the extent size is the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 07:53 PM
05-25-2004 07:53 PM
Re: Copy thousands and thousands of file
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=27681
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 10:30 PM
05-25-2004 10:30 PM