- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I speed up the cp command?
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-01-2002 01:32 AM
03-01-2002 01:32 AM
How can I speed up the cp command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 01:42 AM
03-01-2002 01:42 AM
Re: How can I speed up the cp command?
Below are some factors you might want to be concerned with:
1) What is your filesystem block size? The larger the filesystem block size, the faster it takes for cp to complete.
# fstyp /dev/vgXX/lvolYY
2) What is your filesystem type? Is it HFS or JFS? JFS is usually faster than HFS.
# fstyp /dev/vgXX/lvolYY
3) Are there other harddisks on the same controller as the harddisk containing this filesystem? Are the currently writes on this filesystem? How busy is the disk containing the source and destination filesystems before you perform the copy? Worse, you are reading and writing to the same disk (which has only one spindle).
# sar -d 1 100
4) Are you mirroring the source and/or destination filesystems? Are these mirrors on the same controller? How busy are the harddisks containing these filesystems?
# lvdisplay -v /dev/vgXX/lvolYY
# sar -d 1 100
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 02:21 AM
03-01-2002 02:21 AM
Re: How can I speed up the cp command?
If you just want to archive your databases, have a look on snapshots file systems (very fast)
http://docs.hp.com/
and search snapshot
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 02:52 AM
03-01-2002 02:52 AM
Re: How can I speed up the cp command?
Is a maximum of 30 secondes too fast for you ????
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 04:49 AM
03-01-2002 04:49 AM
Re: How can I speed up the cp command?
If the files are in the same volume use mv and not cp. This is instantaneus.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:31 AM
03-01-2002 05:31 AM
Re: How can I speed up the cp command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:35 AM
03-01-2002 05:35 AM
Re: How can I speed up the cp command?
$ cd /source_dir
$ find . | cpio -pudlmv /destination_dir
omit ???v??? (verbose) option from cpio for more speed
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:11 AM
03-01-2002 06:11 AM
Re: How can I speed up the cp command?
Then you can be happy again!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:16 AM
03-01-2002 06:16 AM
Re: How can I speed up the cp command?
And if you have a crash when you break the mirror ???
A snapshot is more secure
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:44 AM
03-01-2002 06:44 AM
Re: How can I speed up the cp command?
Depending upon the timing, this could be true, but the data is on two different disk drives, because most people don't mirror LV's on the same physical disk.
In your scenario, if a piano fell out of the sky and crushed the server and the disk drives losing all of the data, then "snapshot" wouldn't mean much, right ;-))))
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 11:06 AM
03-01-2002 11:06 AM
Re: How can I speed up the cp command?
If you're concerned about the vulnerability window when you split out a mirror to archive - then do what we did back in my admin days at Cat with our OpenMail msg store - USE A TRIPLE MIRROR.
Split it out to archive & you still have 2 copies on-line. The possibility of both drives failing in the same time period is almost up there with Harry's piano theory ;)
This is ideal for any type of dynamic, large datastore. Furthermore you can mount it out to another server if perf degradation on the app server is a concern during backup.
ALSO...you get the added benefit of being able to use that 3rd for other scenarios....like when some bonehead deletes something he/she "absolutely needs back now!" You can incremental restore tape to it, run up the app on another server pointing to it & get it back fairly easily w/o having to climb too many mountains.
Just my thoughts,
Jeff